]> git.sesse.net Git - vlc/commitdiff
revert 24090 and add fix for including sps/pps in every keyframe without
authorIlkka Ollakka <ileoo@videolan.org>
Fri, 11 Jan 2008 17:42:54 +0000 (17:42 +0000)
committerIlkka Ollakka <ileoo@videolan.org>
Fri, 11 Jan 2008 17:42:54 +0000 (17:42 +0000)
breaking ts/h264 writing, so it waits until sps/pps are received before
handing stuff onward (as it did earlier). thanks to jpsaman for spotting
this.

modules/packetizer/h264.c

index 132e3c371918e80a69e26e4f3f1a66d82dc93c91..0cd1f3a9704892d38dc85029ee82549d7ba32fa5 100644 (file)
@@ -532,6 +532,9 @@ static block_t *ParseNALBlock( decoder_t *p_dec, block_t *p_frag )
 
 #define OUTPUT \
     do {                                                      \
+        if( !p_sys->b_header && p_sys->slice.i_frame_type != BLOCK_FLAG_TYPE_I) \
+            break;                                            \
+                                                              \
         if( p_sys->slice.i_frame_type == BLOCK_FLAG_TYPE_I && p_sys->p_sps && p_sys->p_pps ) \
         { \
             block_t *p_sps = block_Duplicate( p_sys->p_sps ); \