mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-04-26 06:54:49 +00:00
avviddec: Initialise opaque from the start
https://bugzilla.gnome.org/show_bug.cgi?id=693581
This commit is contained in:
parent
9b2577ea2b
commit
2556cb325a
1 changed files with 1 additions and 2 deletions
|
@ -250,6 +250,7 @@ gst_ffmpegviddec_init (GstFFMpegVidDec * ffmpegdec)
|
||||||
|
|
||||||
/* some ffmpeg data */
|
/* some ffmpeg data */
|
||||||
ffmpegdec->context = avcodec_alloc_context3 (klass->in_plugin);
|
ffmpegdec->context = avcodec_alloc_context3 (klass->in_plugin);
|
||||||
|
ffmpegdec->context->opaque = ffmpegdec;
|
||||||
ffmpegdec->picture = avcodec_alloc_frame ();
|
ffmpegdec->picture = avcodec_alloc_frame ();
|
||||||
ffmpegdec->opened = FALSE;
|
ffmpegdec->opened = FALSE;
|
||||||
ffmpegdec->skip_frame = ffmpegdec->lowres = 0;
|
ffmpegdec->skip_frame = ffmpegdec->lowres = 0;
|
||||||
|
@ -1057,8 +1058,6 @@ gst_ffmpegviddec_video_frame (GstFFMpegVidDec * ffmpegdec,
|
||||||
|
|
||||||
*ret = GST_FLOW_OK;
|
*ret = GST_FLOW_OK;
|
||||||
|
|
||||||
ffmpegdec->context->opaque = ffmpegdec;
|
|
||||||
|
|
||||||
/* in case we skip frames */
|
/* in case we skip frames */
|
||||||
ffmpegdec->picture->pict_type = -1;
|
ffmpegdec->picture->pict_type = -1;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue