comparison libvo/vo_mpegpes.c @ 4330:41dbef7900d0

vo_pts fix (10l)
author arpi
date Thu, 24 Jan 2002 00:08:22 +0000
parents f11e25b77c1e
children d407c8734ffe
comparison
equal deleted inserted replaced
4329:783bad5ec316 4330:41dbef7900d0
426 static void flip_page (void) 426 static void flip_page (void)
427 { 427 {
428 #ifdef USE_LIBAVCODEC 428 #ifdef USE_LIBAVCODEC
429 if(picture_buf){ // YV12 only: 429 if(picture_buf){ // YV12 only:
430 int out_size; 430 int out_size;
431 static int fno=0; 431 // static int fno=0;
432 /* encode the image */ 432 /* encode the image */
433 out_size = avcodec_encode_video(&codec_context, outbuf, outbuf_size, &picture); 433 out_size = avcodec_encode_video(&codec_context, outbuf, outbuf_size, &picture);
434 send_pes_packet(outbuf,out_size,0x1E0,fno*(90000/25));++fno; 434 // send_pes_packet(outbuf,out_size,0x1E0,fno*(90000/25));++fno;
435 send_pes_packet(outbuf,out_size,0x1E0,vo_pts);
435 // printf("frame size: %d \n",out_size); 436 // printf("frame size: %d \n",out_size);
436 } 437 }
437 #endif 438 #endif
438 } 439 }
439 440