You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-07-11 14:30:22 +02:00
avformat/mpeg: fix logic failure
Signed-off-by: Paul B Mahol <onemda@gmail.com>
This commit is contained in:
@ -450,13 +450,14 @@ redo:
|
||||
return ret;
|
||||
|
||||
startcode = avio_r8(s->pb);
|
||||
if (startcode == 0x0b && avio_r8(s->pb) == 0x77) {
|
||||
startcode = 0x80;
|
||||
m->raw_ac3 = 1;
|
||||
avio_skip(s->pb, -2);
|
||||
m->raw_ac3 = 0;
|
||||
if (startcode == 0x0b) {
|
||||
if (avio_r8(s->pb) == 0x77) {
|
||||
startcode = 0x80;
|
||||
m->raw_ac3 = 1;
|
||||
avio_skip(s->pb, -2);
|
||||
}
|
||||
} else {
|
||||
m->raw_ac3 = 0;
|
||||
avio_skip(s->pb, -1);
|
||||
len--;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user