mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-04-14 00:58:38 +02:00
avcodec/mpeg12dec: Don't create side data when current picture ptr is NULL.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
7a994d777a
commit
fe285b04bb
@ -2226,7 +2226,11 @@ static void mpeg_decode_user_data(AVCodecContext *avctx,
|
|||||||
S3D_video_format_type == 0x23) {
|
S3D_video_format_type == 0x23) {
|
||||||
Mpeg1Context *s1 = avctx->priv_data;
|
Mpeg1Context *s1 = avctx->priv_data;
|
||||||
MpegEncContext *s = &s1->mpeg_enc_ctx;
|
MpegEncContext *s = &s1->mpeg_enc_ctx;
|
||||||
AVStereo3D *stereo = av_stereo3d_create_side_data(&s->current_picture_ptr->f);
|
AVStereo3D *stereo;
|
||||||
|
if (!s->current_picture_ptr)
|
||||||
|
return;
|
||||||
|
|
||||||
|
stereo = av_stereo3d_create_side_data(&s->current_picture_ptr->f);
|
||||||
if (!stereo)
|
if (!stereo)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user