[FFmpeg-devel] [PATCH]Fix error condition in idcin demuxer
Carl Eugen Hoyos
cehoyos at ag.or.at
Sat Jan 7 12:58:10 CET 2012
Hi!
I believe attached fixes an error condition in the idcin demuxer.
Please comment, Carl Eugen
-------------- next part --------------
diff --git a/libavformat/idcin.c b/libavformat/idcin.c
index 878378f..4a062c5 100644
--- a/libavformat/idcin.c
+++ b/libavformat/idcin.c
@@ -266,8 +266,8 @@ static int idcin_read_packet(AVFormatContext *s,
pal = av_packet_new_side_data(pkt, AV_PKT_DATA_PALETTE,
AVPALETTE_SIZE);
- if (ret < 0)
- return ret;
+ if (!pal)
+ return AVERROR(ENOMEM) ;
memcpy(pal, palette, AVPALETTE_SIZE);
}
pkt->stream_index = idcin->video_stream_index;
More information about the ffmpeg-devel
mailing list