This website works better with JavaScript.
Home
Help
Sign In
falkTX
/
FFmpeg
mirror of
https://github.com/falkTX/FFmpeg.git
Watch
1
Star
0
Fork
0
Code
Issues
0
Releases
338
Wiki
Activity
Browse Source
avformat/mpeg: fix logic failure
Signed-off-by: Paul B Mahol <onemda@gmail.com>
tags/n4.0
Paul B Mahol
7 years ago
parent
7643e27528
commit
1f7705e5b1
1 changed files
with
7 additions
and
6 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+7
-6
libavformat/mpeg.c
+ 7
- 6
libavformat/mpeg.c
View File
@@ -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--;
}
}
Write
Preview
Loading…
Cancel
Save