]> git.sesse.net Git - vlc/commitdiff
png: encoder: set pts and dts
authorTristan Matthews <tristan.matthews@savoirfairelinux.com>
Tue, 18 Mar 2014 15:56:58 +0000 (11:56 -0400)
committerTristan Matthews <tristan.matthews@savoirfairelinux.com>
Tue, 18 Mar 2014 15:56:58 +0000 (11:56 -0400)
modules/codec/png.c

index 4381f4797ab57c4e7360da7ae46b63e46b29ffce..54a90fc307aa1c7186e47d176b47c26cb9873b3b 100644 (file)
@@ -422,6 +422,9 @@ static block_t *EncodeBlock(encoder_t *p_enc, picture_t *p_pic)
     /* restore original buffer position */
     p_block->p_buffer = p_start;
     p_block->i_buffer = i_start;
+
+    p_block->i_dts = p_block->i_pts = p_pic->date;
+
     return p_block;
 
  error: