You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-15 14:13:16 +02:00
avoid uninitialised variable warning and clarify code
Originally committed as revision 9543 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
@@ -608,7 +608,7 @@ resync:
|
|||||||
/* for AC3, needs to swap bytes */
|
/* for AC3, needs to swap bytes */
|
||||||
if (st->codec->codec_id == CODEC_ID_AC3) {
|
if (st->codec->codec_id == CODEC_ID_AC3) {
|
||||||
ptr = pkt->data;
|
ptr = pkt->data;
|
||||||
for(j=0;j<len;j+=2) {
|
for(j=0;j<pkt->size;j+=2) {
|
||||||
FFSWAP(int, ptr[0], ptr[1]);
|
FFSWAP(int, ptr[0], ptr[1]);
|
||||||
ptr += 2;
|
ptr += 2;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user