Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mpc-hc/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'libavformat/h264dec.c')
-rw-r--r--libavformat/h264dec.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/libavformat/h264dec.c b/libavformat/h264dec.c
index 76073dda78..4adc234a41 100644
--- a/libavformat/h264dec.c
+++ b/libavformat/h264dec.c
@@ -47,8 +47,10 @@ static int h264_probe(AVProbeData *p)
return 0;
if (ref_zero[type] == -1 && !ref_idc)
return 0;
- if (ref_zero[type] == 2)
- res++;
+ if (ref_zero[type] == 2) {
+ if (!(code == 0x100 && !p->buf[i + 1] && !p->buf[i + 2]))
+ res++;
+ }
switch (type) {
case 1: