On 01/24/2012 12:18 PM, Kostya Shishkov wrote: > On Tue, Jan 24, 2012 at 11:57:15AM -0500, Justin Ruggles wrote: >> The format has no coded timestamps and must use packet durations to generate >> them. >> --- >> libavformat/westwood_vqa.c | 2 ++ >> 1 files changed, 2 insertions(+), 0 deletions(-) >> >> diff --git a/libavformat/westwood_vqa.c b/libavformat/westwood_vqa.c >> index 2eff4cc..20462d9 100644 >> --- a/libavformat/westwood_vqa.c >> +++ b/libavformat/westwood_vqa.c >> @@ -94,6 +94,7 @@ static int wsvqa_read_header(AVFormatContext *s, >> st = avformat_new_stream(s, NULL); >> if (!st) >> return AVERROR(ENOMEM); >> + st->start_time = 0; >> avpriv_set_pts_info(st, 33, 1, VQA_FRAMERATE); >> wsvqa->video_stream_index = st->index; >> st->codec->codec_type = AVMEDIA_TYPE_VIDEO; >> @@ -120,6 +121,7 @@ static int wsvqa_read_header(AVFormatContext *s, >> st = avformat_new_stream(s, NULL); >> if (!st) >> return AVERROR(ENOMEM); >> + st->start_time = 0; >> avpriv_set_pts_info(st, 33, 1, VQA_FRAMERATE); >> st->codec->codec_type = AVMEDIA_TYPE_AUDIO; >> if (AV_RL16(&header[0]) == 1) >> -- > > shouldn't it be zero by default?
default is AV_NOPTS_VALUE. -Justin _______________________________________________ libav-devel mailing list [email protected] https://lists.libav.org/mailman/listinfo/libav-devel
