changeset 313:a0124152c89d libavcodec

- Added force_pts to av_write_packet() to be able to force PTS, this helps (and fix) stream copying. By now force_pts it's just honoured by the MPEG muxer. ASF could honour this also, but it should be fixed to use Tickers first. - MPEG audio decoder exports it's frame size in bytes. - Hope this fix the floating point exception found in ffserver.
author pulento
date Sun, 07 Apr 2002 21:44:29 +0000
parents 8cf5507e6ca5
children 289eb941b8ba
files mpeg12.c mpegaudiodec.c
diffstat 2 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/mpeg12.c	Sun Apr 07 02:03:32 2002 +0000
+++ b/mpeg12.c	Sun Apr 07 21:44:29 2002 +0000
@@ -1403,6 +1403,7 @@
 
     for(;;) {
         clear_blocks(s->block[0]);
+        emms_c();
         ret = mpeg_decode_mb(s, s->block);
         dprintf("ret=%d\n", ret);
         if (ret < 0)
--- a/mpegaudiodec.c	Sun Apr 07 02:03:32 2002 +0000
+++ b/mpegaudiodec.c	Sun Apr 07 21:44:29 2002 +0000
@@ -2314,6 +2314,7 @@
                         avctx->sample_rate = s->sample_rate;
                         avctx->channels = s->nb_channels;
 			avctx->bit_rate = s->bit_rate;
+			avctx->frame_size = s->frame_size;
                     }
 		}
 	    }