[vlc-commits] packetizer: h264: fix AUD dequeuing
Francois Cartegnie
git at videolan.org
Mon Dec 17 20:34:04 CET 2018
vlc/vlc-3.0 | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Mon Dec 17 20:17:28 2018 +0100| [689b2e752a3cf82b2bac3087c923094183eb7b53] | committer: Francois Cartegnie
packetizer: h264: fix AUD dequeuing
(cherry picked from commit c5eef850753f4bd139bafdc6f78d4fe4fd90c5bf)
> http://git.videolan.org/gitweb.cgi/vlc/vlc-3.0.git/?a=commit;h=689b2e752a3cf82b2bac3087c923094183eb7b53
---
modules/packetizer/h264.c | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
diff --git a/modules/packetizer/h264.c b/modules/packetizer/h264.c
index 14a622f7cc..efefc57e6f 100644
--- a/modules/packetizer/h264.c
+++ b/modules/packetizer/h264.c
@@ -841,10 +841,11 @@ static block_t *OutputPicture( decoder_t *p_dec )
}
/* Now rebuild NAL Sequence, inserting PPS/SPS if any */
- if( p_sys->frame.p_head->i_flags & BLOCK_FLAG_PRIVATE_AUD )
+ if( p_sys->leading.p_head &&
+ (p_sys->leading.p_head->i_flags & BLOCK_FLAG_PRIVATE_AUD) )
{
- block_t *p_au = p_sys->frame.p_head;
- p_sys->frame.p_head = p_au->p_next;
+ block_t *p_au = p_sys->leading.p_head;
+ p_sys->leading.p_head = p_au->p_next;
p_au->p_next = NULL;
block_ChainLastAppend( &pp_pic_last, p_au );
}
More information about the vlc-commits
mailing list