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
_______________________________________________
ffmpeg-devel mailing list
ffmpeg-devel@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-devel

Reply via email to