aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat/asf-enc.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2004-05-21 20:43:21 +0000
committerMichael Niedermayer <michaelni@gmx.at>2004-05-21 20:43:21 +0000
commit9ee91c2f53dbc7cc61e65805d57e0a805b5752d7 (patch)
tree8b9419fb7d80a440bacf3d2783b3599648ee1c3d /libavformat/asf-enc.c
parente8733cc4d9b866643009342ec6839795a059fe53 (diff)
downloadandroid_external_ffmpeg-9ee91c2f53dbc7cc61e65805d57e0a805b5752d7.tar.gz
android_external_ffmpeg-9ee91c2f53dbc7cc61e65805d57e0a805b5752d7.tar.bz2
android_external_ffmpeg-9ee91c2f53dbc7cc61e65805d57e0a805b5752d7.zip
move time_base (pts_num/pts_den) from AVFormatContext -> AVStream
Originally committed as revision 3148 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/asf-enc.c')
-rw-r--r--libavformat/asf-enc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libavformat/asf-enc.c b/libavformat/asf-enc.c
index cd8f803b91..3dcf43e862 100644
--- a/libavformat/asf-enc.c
+++ b/libavformat/asf-enc.c
@@ -285,6 +285,8 @@ static int asf_write_header1(AVFormatContext *s, int64_t file_size, int64_t data
for(n=0;n<s->nb_streams;n++) {
enc = &s->streams[n]->codec;
+ av_set_pts_info(s->streams[n], 32, 1, 1000); /* 32 bit pts in ms */
+
bit_rate += enc->bit_rate;
}
@@ -469,8 +471,6 @@ static int asf_write_header(AVFormatContext *s)
{
ASFContext *asf = s->priv_data;
- av_set_pts_info(s, 32, 1, 1000); /* 32 bit pts in ms */
-
asf->packet_size = PACKET_SIZE;
asf->nb_packets = 0;