[FFmpeg-devel] [PATCH]Support more audio in Hikvision recordings

Carl Eugen Hoyos cehoyos at ag.or.at
Tue Mar 31 10:21:05 CEST 2015


Hi!

Attached patch fixes audio in a cctv recording a user uploaded.

Please comment, Carl Eugen
-------------- next part --------------
diff --git a/libavformat/mpeg.c b/libavformat/mpeg.c
index a0b5738..af47652 100644
--- a/libavformat/mpeg.c
+++ b/libavformat/mpeg.c
@@ -501,6 +501,9 @@ redo:
             goto found;
     }
 
+    if (m->imkh_cctv)
+        request_probe = 25;
+
     es_type = m->psm_es_type[startcode & 0xff];
         if (es_type == STREAM_TYPE_VIDEO_MPEG1) {
             codec_id = AV_CODEC_ID_MPEG2VIDEO;


More information about the ffmpeg-devel mailing list