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: ...@@ -450,13 +450,14 @@ redo:
return ret; return ret;
startcode = avio_r8(s->pb); startcode = avio_r8(s->pb);
if (startcode == 0x0b && avio_r8(s->pb) == 0x77) { m->raw_ac3 = 0;
startcode = 0x80; if (startcode == 0x0b) {
m->raw_ac3 = 1; if (avio_r8(s->pb) == 0x77) {
avio_skip(s->pb, -2); startcode = 0x80;
m->raw_ac3 = 1;
avio_skip(s->pb, -2);
}
} else { } else {
m->raw_ac3 = 0;
avio_skip(s->pb, -1);
len--; 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