[FFmpeg-devel] Allow MPEGTS and KLV metadata remuxing

Marton Balint cus at passwd.hu
Thu Jan 21 21:11:57 CET 2016


On Sun, 17 Jan 2016, Stefano Sabatini wrote:

[...]

> diff --git a/libavformat/mpegts.c b/libavformat/mpegts.c
> index 22874e6..5f5de62 100644
> --- a/libavformat/mpegts.c
> +++ b/libavformat/mpegts.c
> @@ -862,14 +863,21 @@ static void reset_pes_packet_state(PESContext *pes)
>      av_buffer_unref(&pes->buffer);
>  }
> 
> -static void new_pes_packet(PESContext *pes, AVPacket *pkt)
> +static int new_pes_packet(PESContext *pes, AVPacket *pkt)

If you change the type to int from void, then you should check the return 
value everywhere this function is called.

Regards,
Marton


More information about the ffmpeg-devel mailing list