OSDN Git Service
(root)
/
coroid
/
ffmpeg_saccubus.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b474d1f
)
avoid uninitialised variable warning and clarify code
author
Måns Rullgård
<mans@mansr.com>
Sun, 8 Jul 2007 13:42:52 +0000
(13:42 +0000)
committer
Måns Rullgård
<mans@mansr.com>
Sun, 8 Jul 2007 13:42:52 +0000
(13:42 +0000)
Originally committed as revision 9543 to svn://svn.ffmpeg.org/ffmpeg/trunk
libavformat/rmdec.c
patch
|
blob
|
history
diff --git
a/libavformat/rmdec.c
b/libavformat/rmdec.c
index
7ce21e9
..
100d512
100644
(file)
--- a/
libavformat/rmdec.c
+++ b/
libavformat/rmdec.c
@@
-608,7
+608,7
@@
resync:
/* for AC3, needs to swap bytes */
if (st->codec->codec_id == CODEC_ID_AC3) {
ptr = pkt->data;
- for(j=0;j<
len
;j+=2) {
+ for(j=0;j<
pkt->size
;j+=2) {
FFSWAP(int, ptr[0], ptr[1]);
ptr += 2;
}