]> git.sesse.net Git - vlc/blobdiff - modules/demux/nuv.c
fix teletext framing code in DVB PES packets ignored
[vlc] / modules / demux / nuv.c
index 9d534e4c6d3cd3d8c0db1baec82a865453d39553..be4008dc1e89fc55b7a87c0dfa4c56253ea06858 100644 (file)
@@ -249,7 +249,7 @@ static int Open( vlc_object_t * p_this )
     {
         if( fh.i_compression == 'F' || fh.i_compression == 'R' )
         {
-            /* ffmpeg extra data */
+            /* libavcodec extra data */
             p_sys->i_extra_f = fh.i_length;
             p_sys->p_extra_f = malloc( fh.i_length );
             if( p_sys->p_extra_f == NULL || stream_Read( p_demux->s,
@@ -364,9 +364,6 @@ static int Demux( demux_t *p_demux )
 
     for( ;; )
     {
-        if( !vlc_object_alive (p_demux) )
-            return -1;
-
         if( FrameHeaderLoad( p_demux, &fh ) )
             return 0;
 
@@ -573,7 +570,7 @@ static int ControlSetPosition( demux_t *p_demux, int64_t i_pos, bool b_guess )
         }
     }
 
-    while( vlc_object_alive (p_demux) )
+    for( ;; )
     {
         frame_header_t fh;
         int64_t i_tell;