[FFmpeg-devel] [PATCH] [Trac ticket #3220] Don't create side data when current picture ptr is NULL.
Tomer Barletz
barletz at gmail.com
Sun Dec 15 09:18:05 CET 2013
---
libavcodec/mpeg12dec.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/libavcodec/mpeg12dec.c b/libavcodec/mpeg12dec.c
index e50f518..fbcce5a 100644
--- a/libavcodec/mpeg12dec.c
+++ b/libavcodec/mpeg12dec.c
@@ -2226,6 +2226,9 @@ static void mpeg_decode_user_data(AVCodecContext *avctx,
S3D_video_format_type == 0x23) {
Mpeg1Context *s1 = avctx->priv_data;
MpegEncContext *s = &s1->mpeg_enc_ctx;
+ if (!s->current_picture_ptr)
+ return;
+
AVStereo3D *stereo = av_stereo3d_create_side_data(&s->current_picture_ptr->f);
if (!stereo)
return;
--
1.8.3.1
More information about the ffmpeg-devel
mailing list