[FFmpeg-devel] [PATCH 2/2] doc/examples/muxing: Fix packet duration

Gonzalo ggarra13 at gmail.com
Sun Jul 17 20:35:44 EEST 2016



El 16/07/16 a las 23:10, Michael Niedermayer escribiĆ³:
> Set needed fields in st->codec
>
> Fixes Ticket5684
>
> Signed-off-by: Michael Niedermayer <michael at niedermayer.cc>
> ---
> @@ -434,6 +434,8 @@ static void open_video(AVFormatContext *oc, AVCodec *codec, OutputStream *ost, A
>           fprintf(stderr, "Could not copy the stream parameters\n");
>           exit(1);
>       }
> +    ost->st->codec->ticks_per_frame = c->ticks_per_frame;
> +    ost->st->codec->time_base       = c->time_base;
>   }
>   
I can verify it fixes the ticket, but creates warnings of 
AVStream::codec being deprecated.

-- 
Gonzalo GarramuƱo
ggarra13 at gmail.com



More information about the ffmpeg-devel mailing list