[vlc-commits] packetizer: mpeg4audio: remove useless code
Francois Cartegnie
git at videolan.org
Thu Feb 21 20:27:14 CET 2019
vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Thu Feb 21 18:02:51 2019 +0100| [6995d963848a25bdfeda1f682d5f64094d3f58f6] | committer: Francois Cartegnie
packetizer: mpeg4audio: remove useless code
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=6995d963848a25bdfeda1f682d5f64094d3f58f6
---
modules/packetizer/mpeg4audio.c | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/modules/packetizer/mpeg4audio.c b/modules/packetizer/mpeg4audio.c
index a8d3303705..f81587f5cd 100644
--- a/modules/packetizer/mpeg4audio.c
+++ b/modules/packetizer/mpeg4audio.c
@@ -443,10 +443,8 @@ static int ADTSSyncInfo(decoder_t * p_dec, const uint8_t * p_buf,
/* Build the decoder specific info header */
if (!p_dec->fmt_out.i_extra) {
p_dec->fmt_out.p_extra = malloc(2);
- if (!p_dec->fmt_out.p_extra) {
- p_dec->fmt_out.i_extra = 0;
+ if (!p_dec->fmt_out.p_extra)
return 0;
- }
p_dec->fmt_out.i_extra = 2;
((uint8_t *)p_dec->fmt_out.p_extra)[0] =
(i_profile + 1) << 3 | (i_sample_rate_idx >> 1);
More information about the vlc-commits
mailing list