[vlc-devel] commit: png: use VLC_TS_INVALID (refs #3135) ( Rafaël Carré )
git version control
git at videolan.org
Mon Dec 7 08:50:43 CET 2009
vlc | branch: master | Rafaël Carré <rafael.carre at gmail.com> | Mon Dec 7 08:47:26 2009 +0100| [d86392476a1349404554ac97b09df0e0d35ba0fd] | committer: Rafaël Carré
png: use VLC_TS_INVALID (refs #3135)
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=d86392476a1349404554ac97b09df0e0d35ba0fd
---
modules/codec/png.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/modules/codec/png.c b/modules/codec/png.c
index 61c9226..081c32c 100644
--- a/modules/codec/png.c
+++ b/modules/codec/png.c
@@ -227,7 +227,7 @@ static picture_t *DecodeBlock( decoder_t *p_dec, block_t **pp_block )
png_destroy_read_struct( &p_png, &p_info, &p_end_info );
free( p_row_pointers );
- 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;
block_Release( p_block ); *pp_block = NULL;
return p_pic;
More information about the vlc-devel
mailing list