[vlc-commits] png: encoder: set pts and dts

Tristan Matthews git at videolan.org
Tue Mar 18 16:59:10 CET 2014


vlc | branch: master | Tristan Matthews <tristan.matthews at savoirfairelinux.com> | Tue Mar 18 11:56:58 2014 -0400| [1928d1bfdd9cf3ae79a47d16e7e8b8d22161651d] | committer: Tristan Matthews

png: encoder: set pts and dts

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=1928d1bfdd9cf3ae79a47d16e7e8b8d22161651d
---

 modules/codec/png.c |    3 +++
 1 file changed, 3 insertions(+)

diff --git a/modules/codec/png.c b/modules/codec/png.c
index 4381f47..54a90fc 100644
--- a/modules/codec/png.c
+++ b/modules/codec/png.c
@@ -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:



More information about the vlc-commits mailing list