[vlc-commits] codec/mediacodec: update visible size from sps
Thomas Guillem
git at videolan.org
Tue Dec 13 17:11:04 CET 2016
vlc | branch: master | Thomas Guillem <thomas at gllm.fr> | Tue Dec 13 15:43:47 2016 +0100| [f6d9e3b6eb0e91f874abc2efb5ba766eb1b09fd6] | committer: Thomas Guillem
codec/mediacodec: update visible size from sps
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=f6d9e3b6eb0e91f874abc2efb5ba766eb1b09fd6
---
modules/codec/omxil/mediacodec.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/modules/codec/omxil/mediacodec.c b/modules/codec/omxil/mediacodec.c
index 386e2d0..f1839b0 100644
--- a/modules/codec/omxil/mediacodec.c
+++ b/modules/codec/omxil/mediacodec.c
@@ -298,7 +298,6 @@ static int H264SetCSD(decoder_t *p_dec, void *p_buf, size_t i_size,
unsigned vsize[4];
(void) h264_get_picture_size(p_sps, &vsize[0], &vsize[1], &vsize[2],
&vsize[3]);
- /* FIXME: what to do with visible width/height ? */
if (i_sps_size && RestoreSyncCode(p_buf, &p_sps_buf, &i_sps_size) == 4)
{
@@ -332,7 +331,9 @@ static int H264SetCSD(decoder_t *p_dec, void *p_buf, size_t i_size,
*p_size_changed = (vsize[0] != p_dec->fmt_out.video.i_width
|| vsize[1] != p_dec->fmt_out.video.i_height);
+ p_dec->fmt_out.video.i_visible_width =
p_dec->fmt_out.video.i_width = vsize[0];
+ p_dec->fmt_out.video.i_visible_height =
p_dec->fmt_out.video.i_height = vsize[1];
h264_release_sps(p_sps);
More information about the vlc-commits
mailing list