X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=libavformat%2Fg729dec.c;h=c58855cb998d2ba81d6fad5d6d2389a63e49e036;hb=ef6a9e5e311f09fa8032974fa4d0c1e166a959bb;hp=7b67fc488ce4dd2f1fc8fe64002031896d2f50c4;hpb=762c2b5dcd99a08452299cd1f83070f88115f1f3;p=ffmpeg diff --git a/libavformat/g729dec.c b/libavformat/g729dec.c index 7b67fc488ce..c58855cb998 100644 --- a/libavformat/g729dec.c +++ b/libavformat/g729dec.c @@ -61,8 +61,7 @@ static int g729_read_header(AVFormatContext *s) return AVERROR(EINVAL); } - avpriv_set_pts_info(st, st->codecpar->block_align << 3, 1, - st->codecpar->sample_rate); + avpriv_set_pts_info(st, 64, 80, st->codecpar->sample_rate); return 0; } @@ -76,6 +75,7 @@ static int g729_read_packet(AVFormatContext *s, AVPacket *pkt) pkt->stream_index = 0; pkt->dts = pkt->pts = pkt->pos / st->codecpar->block_align; + pkt->duration = 1; return 0; }