[FFmpeg-devel] [PATCH] avformat/mux: skip parameter and pts checks for data muxer

Michael Niedermayer michael at niedermayer.cc
Fri Apr 26 23:02:22 EEST 2019


On Fri, Apr 26, 2019 at 06:38:37PM +0530, Gyan wrote:
> 

>  mux.c |    9 ++++++++-
>  1 file changed, 8 insertions(+), 1 deletion(-)
> d94a699f5dbc31a8ee8b7d1bdb33004d9cd95d46  0001-avformat-mux-skip-parameter-and-pts-checks-for-data-.patch
> From 5ec154870d9c559037598b41736bf5b216a756e0 Mon Sep 17 00:00:00 2001
> From: Gyan Doshi <ffmpeg at gyani.pro>
> Date: Fri, 26 Apr 2019 18:31:33 +0530
> Subject: [PATCH] avformat/mux: skip parameter and pts checks for data muxer
> 
> Allows to dump a malformed stream for external inspection or repair.
> ---
>  libavformat/mux.c | 9 ++++++++-
>  1 file changed, 8 insertions(+), 1 deletion(-)
> 
> diff --git a/libavformat/mux.c b/libavformat/mux.c
> index 83fe1de78f..3699b572f2 100644
> --- a/libavformat/mux.c
> +++ b/libavformat/mux.c
> @@ -290,6 +290,9 @@ FF_ENABLE_DEPRECATION_WARNINGS
>          goto fail;
>      }
>  
> +    if (!strcmp(of->name, "data"))
> +        goto bypass;
> +
>      for (i = 0; i < s->nb_streams; i++) {
>          st  = s->streams[i];
>          par = st->codecpar;
> @@ -409,6 +412,7 @@ FF_ENABLE_DEPRECATION_WARNINGS
>          av_dict_set(&s->metadata, e->key, NULL, 0);
>      }
>  
> +bypass:

I think this skips a bit more than what would make sense
(for example priv_data allocation but thats not the only odd thing)

also iam not sure this is the ideal approuch.
I mean "I want to dump inavlid data in a data muxer for debug"
that seems a potentially valid request for other muxers too
like the image muxer producing individual files per frame and
so on


[...]

-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

When you are offended at any man's fault, turn to yourself and study your
own failings. Then you will forget your anger. -- Epictetus
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 181 bytes
Desc: not available
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20190426/697e36ab/attachment.sig>


More information about the ffmpeg-devel mailing list