[FFmpeg-cvslog] lavf/mpeg: Support more audio codecs in Hikvision CCTV recordings.

Carl Eugen Hoyos git at videolan.org
Sat Apr 4 02:22:28 CEST 2015


ffmpeg | branch: master | Carl Eugen Hoyos <cehoyos at ag.or.at> | Fri Apr  3 20:58:20 2015 +0200| [f8413f74a1847db161a3443b1740b2659cd48753] | committer: Carl Eugen Hoyos

lavf/mpeg: Support more audio codecs in Hikvision CCTV recordings.

Fixes a sample from ticket #4182.

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=f8413f74a1847db161a3443b1740b2659cd48753
---

 libavformat/mpeg.c |    2 ++
 1 file changed, 2 insertions(+)

diff --git a/libavformat/mpeg.c b/libavformat/mpeg.c
index a0b5738..dbe5f10 100644
--- a/libavformat/mpeg.c
+++ b/libavformat/mpeg.c
@@ -549,6 +549,8 @@ redo:
             request_probe = 50;
         } else {
             codec_id = AV_CODEC_ID_MP2;
+            if (m->imkh_cctv)
+                request_probe = 25;
         }
     } else if (startcode >= 0x80 && startcode <= 0x87) {
         type     = AVMEDIA_TYPE_AUDIO;



More information about the ffmpeg-cvslog mailing list