mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-28 04:31:06 +00:00
vaapidecode: Fix buffer copy assertion
Don't try to copy the NULL buffer-codec_data.
This commit is contained in:
parent
0681da9670
commit
087e549c1e
1 changed files with 2 additions and 1 deletions
|
@ -147,7 +147,8 @@ copy_video_codec_state (const GstVideoCodecState * in_state)
|
|||
state->ref_count = 1;
|
||||
state->info = in_state->info;
|
||||
state->caps = gst_caps_copy (in_state->caps);
|
||||
state->codec_data = gst_buffer_copy_deep (in_state->codec_data);
|
||||
if (in_state->codec_data)
|
||||
state->codec_data = gst_buffer_copy_deep (in_state->codec_data);
|
||||
|
||||
return state;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue