[vlc-commits] mediacodec: init i_csd_sent in CSDDup
Thomas Guillem
git at videolan.org
Thu Sep 3 14:30:24 CEST 2015
vlc | branch: master | Thomas Guillem <thomas at gllm.fr> | Wed Aug 26 16:20:34 2015 +0200| [60e59d2e2506ad1c1150d85cc9c9b239d69e2b36] | committer: Thomas Guillem
mediacodec: init i_csd_sent in CSDDup
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=60e59d2e2506ad1c1150d85cc9c9b239d69e2b36
---
modules/codec/omxil/mediacodec.c | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/modules/codec/omxil/mediacodec.c b/modules/codec/omxil/mediacodec.c
index 5faee3e..2437a0f 100644
--- a/modules/codec/omxil/mediacodec.c
+++ b/modules/codec/omxil/mediacodec.c
@@ -210,6 +210,8 @@ static int CSDDup(decoder_t *p_dec, const struct csd *p_csd, size_t i_count)
memcpy(p_sys->pp_csd[i]->p_buffer, p_csd[i].p_buf, p_csd[i].i_size);
p_sys->i_csd_count++;
}
+
+ p_sys->i_csd_send = 0;
return VLC_SUCCESS;
}
@@ -276,7 +278,6 @@ static int H264SetCSD(decoder_t *p_dec, void *p_buf, size_t i_size,
*p_size_changed = (sps.i_width != p_sys->u.video.i_width
|| sps.i_height != p_sys->u.video.i_height);
- p_sys->i_csd_send = 0;
p_sys->u.video.i_width = sps.i_width;
p_sys->u.video.i_height = sps.i_height;
return VLC_SUCCESS;
@@ -355,8 +356,6 @@ static int StartMediaCodec(decoder_t *p_dec)
csd.i_size = p_dec->fmt_in.i_extra;
CSDDup(p_dec, &csd, 1);
}
-
- p_sys->i_csd_send = 0;
}
if (p_dec->fmt_in.i_cat == VIDEO_ES)
More information about the vlc-commits
mailing list