Commit 1f7705e5 authored by Paul B Mahol's avatar Paul B Mahol

avformat/mpeg: fix logic failure

Signed-off-by: 's avatarPaul B Mahol <onemda@gmail.com>
parent 7643e275
......@@ -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--;
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment