[SCM] libav/experimental: - 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 ; )
siretart at users.alioth.debian.org
siretart at users.alioth.debian.org
Sun Jun 30 15:31:46 UTC 2013
The following commit has been merged in the experimental branch:
commit 76c0441b10bccad512e967be194cd4c882739f7a
Author: Juanjo <pulento at users.sourceforge.net>
Date: Tue May 14 21:50:00 2002 +0000
- 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
diff --git a/libav/avformat.h b/libav/avformat.h
index 3b20a2d..c982336 100644
--- a/libav/avformat.h
+++ b/libav/avformat.h
@@ -76,6 +76,7 @@ typedef struct AVFormat {
typedef struct AVStream {
int id; /* internal stream id */
AVCodecContext codec; /* codec context */
+ int r_frame_rate; /* real frame rate of the stream */
void *priv_data;
} AVStream;
diff --git a/libav/mpeg.c b/libav/mpeg.c
index 91136e6..6443b18 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;
}
--
Libav/FFmpeg packaging
More information about the pkg-multimedia-commits
mailing list