mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-24 18:51:11 +00:00
libav: viddec: provide details if meta has the wrong resolution
Will produce a more useful assert error message. Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/7913>
This commit is contained in:
parent
0e2efb2de4
commit
7d49740269
1 changed files with 6 additions and 2 deletions
|
@ -2026,8 +2026,12 @@ gst_ffmpegviddec_video_frame (GstFFMpegVidDec * ffmpegdec,
|
|||
gst_buffer_get_video_meta (output_frame->output_buffer);
|
||||
if (vmeta) {
|
||||
GstVideoInfo *info = &ffmpegdec->output_state->info;
|
||||
g_assert ((gint) vmeta->width == GST_VIDEO_INFO_WIDTH (info));
|
||||
g_assert ((gint) vmeta->height == GST_VIDEO_INFO_HEIGHT (info));
|
||||
if (vmeta->width != GST_VIDEO_INFO_WIDTH (info) ||
|
||||
vmeta->height != GST_VIDEO_INFO_HEIGHT (info)) {
|
||||
g_error ("video meta uses %dx%d instead of %dx%d",
|
||||
vmeta->width, vmeta->height, GST_VIDEO_INFO_WIDTH (info),
|
||||
GST_VIDEO_INFO_HEIGHT (info));
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
|
Loading…
Reference in a new issue