mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-04-26 06:54:49 +00:00
codecmap: correctly set height in AVCodecContext
https://bugzilla.gnome.org/show_bug.cgi?id=674899
This commit is contained in:
parent
f0a411235a
commit
35cf2e84f2
1 changed files with 1 additions and 1 deletions
|
@ -2300,7 +2300,7 @@ gst_ffmpeg_videoinfo_to_context (GstVideoInfo * info, AVCodecContext * context)
|
||||||
gint i, bpp = 0;
|
gint i, bpp = 0;
|
||||||
|
|
||||||
context->width = GST_VIDEO_INFO_WIDTH (info);
|
context->width = GST_VIDEO_INFO_WIDTH (info);
|
||||||
context->height = GST_VIDEO_INFO_WIDTH (info);
|
context->height = GST_VIDEO_INFO_HEIGHT (info);
|
||||||
for (i = 0; i < GST_VIDEO_INFO_N_COMPONENTS (info); i++)
|
for (i = 0; i < GST_VIDEO_INFO_N_COMPONENTS (info); i++)
|
||||||
bpp += GST_VIDEO_INFO_COMP_DEPTH (info, i);
|
bpp += GST_VIDEO_INFO_COMP_DEPTH (info, i);
|
||||||
context->bits_per_coded_sample = bpp;
|
context->bits_per_coded_sample = bpp;
|
||||||
|
|
Loading…
Reference in a new issue