]> git.sesse.net Git - vlc/commitdiff
sdl_image: use VLC_TS_INVALID (refs #3135)
authorRafaël Carré <rafael.carre@gmail.com>
Mon, 7 Dec 2009 16:37:17 +0000 (17:37 +0100)
committerRafaël Carré <rafael.carre@gmail.com>
Mon, 7 Dec 2009 16:37:17 +0000 (17:37 +0100)
modules/codec/sdl_image.c

index 711d87bf2e8ef471e565dce7c1b17853e2121720..6f2154769a4b9227794ded2c798a0a91917ceb73 100644 (file)
@@ -263,7 +263,8 @@ static picture_t *DecodeBlock( decoder_t *p_dec, block_t **pp_block )
         }
     }
 
-    p_pic->date = p_block->i_pts > 0 ? p_block->i_pts : p_block->i_dts;
+    p_pic->date = (p_block->i_pts > VLC_TS_INVALID) ?
+        p_block->i_pts : p_block->i_dts;
 
     SDL_FreeSurface( p_surface );
     block_Release( p_block ); *pp_block = NULL;