diff options
author | Juanjo <pulento@users.sourceforge.net> | 2002-05-14 21:50:00 +0000 |
---|---|---|
committer | Juanjo <pulento@users.sourceforge.net> | 2002-05-14 21:50:00 +0000 |
commit | 76c0441b10bccad512e967be194cd4c882739f7a (patch) | |
tree | 138c94dd586f30bb8dab70ed1825b52f1f641821 /libav/mpeg.c | |
parent | e0a3d744a0d5a9a25fb85c9bba17e3b07d3ba29b (diff) | |
download | ffmpeg-76c0441b10bccad512e967be194cd4c882739f7a.tar.gz |
- Added r_frame_rate in AVStream to store the real frame rate.
- This stuff could be done in AVCodecContext and the real frame rate
calculated in utils.c, but we don't changes in that by now ;)
Originally committed as revision 497 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libav/mpeg.c')
-rw-r--r-- | libav/mpeg.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/libav/mpeg.c b/libav/mpeg.c index 91136e6091..6443b18bb3 100644 --- a/libav/mpeg.c +++ b/libav/mpeg.c @@ -376,6 +376,10 @@ static int mpeg_mux_write_packet(AVFormatContext *ctx, int stream_index, } stream->pts += ticker_tick(&stream->pts_ticker, 1); + //if (st->codec.codec_type == CODEC_TYPE_VIDEO) + // fprintf(stderr,"\nVideo PTS: %6lld", stream->pts); + //else + // fprintf(stderr,"\nAudio PTS: %6lld", stream->pts); return 0; } |