diff options
author | Paul B Mahol <onemda@gmail.com> | 2019-09-27 12:38:23 +0200 |
---|---|---|
committer | Paul B Mahol <onemda@gmail.com> | 2019-09-27 12:39:21 +0200 |
commit | 35a12d2071efa5c408e6dd4a4a6d0cf930fb3eb3 (patch) | |
tree | f91a475222aa428b8081da4dbc7c878ca6453ea1 /libavformat/g729dec.c | |
parent | 044167a171d5fafdea75046759e3bfcc2d8889b6 (diff) |
avformat/g729dec: set packet duration and correctly set timebase info
Fixes #6704.
Diffstat (limited to 'libavformat/g729dec.c')
-rw-r--r-- | libavformat/g729dec.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libavformat/g729dec.c b/libavformat/g729dec.c index 7b67fc488c..c58855cb99 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; } |