summaryrefslogtreecommitdiffstats
path: root/libavformat
diff options
context:
space:
mode:
authorBaptiste Coudurier <baptiste.coudurier@gmail.com>2006-12-11 13:31:20 +0000
committerBaptiste Coudurier <baptiste.coudurier@gmail.com>2006-12-11 13:31:20 +0000
commit1aad0dfd624992b821354e015773ac3c794df773 (patch)
treeac9efe828e9a2f731c5c60dea41d59320a5c4b0a /libavformat
parentb596102e7e5bdd5207f0a62e7b76b730bd9623be (diff)
downloadffmpeg-streaming-1aad0dfd624992b821354e015773ac3c794df773.zip
ffmpeg-streaming-1aad0dfd624992b821354e015773ac3c794df773.tar.gz
remove useless sampleDuration
Originally committed as revision 7281 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat')
-rw-r--r--libavformat/movenc.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/libavformat/movenc.c b/libavformat/movenc.c
index 1cc2719..0d1b8f8 100644
--- a/libavformat/movenc.c
+++ b/libavformat/movenc.c
@@ -54,7 +54,6 @@ typedef struct MOVIndex {
long time;
int64_t trackDuration;
long sampleCount;
- long sampleDuration;
long sampleSize;
int hasKeyframes;
int hasBframes;
@@ -1501,12 +1500,10 @@ static int mov_write_header(AVFormatContext *s)
if(st->codec->codec_type == CODEC_TYPE_VIDEO){
track->tag = mov_find_video_codec_tag(s, track);
track->timescale = st->codec->time_base.den;
- track->sampleDuration = st->codec->time_base.num;
av_set_pts_info(st, 64, 1, st->codec->time_base.den);
}else if(st->codec->codec_type == CODEC_TYPE_AUDIO){
track->tag = mov_find_audio_codec_tag(s, track);
track->timescale = st->codec->sample_rate;
- track->sampleDuration = st->codec->frame_size;
av_set_pts_info(st, 64, 1, st->codec->sample_rate);
switch(track->enc->codec_id){
case CODEC_ID_MP3:
OpenPOWER on IntegriCloud