changeset 4330:41dbef7900d0

vo_pts fix (10l)
author arpi
date Thu, 24 Jan 2002 00:08:22 +0000
parents 783bad5ec316
children ce1e3668fa2b
files libvo/vo_mpegpes.c
diffstat 1 files changed, 3 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/libvo/vo_mpegpes.c	Wed Jan 23 20:19:01 2002 +0000
+++ b/libvo/vo_mpegpes.c	Thu Jan 24 00:08:22 2002 +0000
@@ -428,10 +428,11 @@
 #ifdef USE_LIBAVCODEC
   if(picture_buf){ // YV12 only:
     int out_size;
-    static int fno=0;
+//    static int fno=0;
     /* encode the image */
     out_size = avcodec_encode_video(&codec_context, outbuf, outbuf_size, &picture);
-    send_pes_packet(outbuf,out_size,0x1E0,fno*(90000/25));++fno;
+//    send_pes_packet(outbuf,out_size,0x1E0,fno*(90000/25));++fno;
+    send_pes_packet(outbuf,out_size,0x1E0,vo_pts);
 //    printf("frame size: %d  \n",out_size);
   }
 #endif