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

Michael Niedermayer michaelni at gmx.at
Tue Mar 31 22:38:33 CEST 2015


On Tue, Mar 31, 2015 at 10:21:05AM +0200, Carl Eugen Hoyos wrote:
> Hi!
> 
> Attached patch fixes audio in a cctv recording a user uploaded.
> 
> Please comment, Carl Eugen

>  mpeg.c |    3 +++
>  1 file changed, 3 insertions(+)
> f03e9ec0eb1e90c97c74d0ed51d61849cb8703dd  patchcctvaac.diff
> 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;

i think its better to do this only in the mp2 case where its needed
not for all types

otherwise LGTM

[...]

-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

Those who are best at talking, realize last or never when they are wrong.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 181 bytes
Desc: Digital signature
URL: <https://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20150331/2428f31f/attachment.asc>


More information about the ffmpeg-devel mailing list