On Thu, Apr 14, 2011 at 01:32:42PM +0200, Luca Barbato wrote:
> It follows the same codepath as video.
> ---
> libavformat/utils.c | 2 ++
> 1 files changed, 2 insertions(+), 0 deletions(-)
>
> diff --git a/libavformat/utils.c b/libavformat/utils.c
> index 6b38e66..bb44364 100644
> --- a/libavformat/utils.c
> +++ b/libavformat/utils.c
> @@ -2920,6 +2920,7 @@ int av_write_header(AVFormatContext *s)
> den = (int64_t)st->time_base.num * st->codec->sample_rate;
> break;
> case AVMEDIA_TYPE_VIDEO:
> + case AVMEDIA_TYPE_DATA:
> den = (int64_t)st->time_base.num * st->codec->time_base.den;
> break;
> default:
> @@ -3002,6 +3003,7 @@ static int compute_pkt_fields2(AVFormatContext *s,
> AVStream *st, AVPacket *pkt){
> }
> break;
> case AVMEDIA_TYPE_VIDEO:
> + case AVMEDIA_TYPE_DATA:
> av_frac_add(&st->pts, (int64_t)st->time_base.den *
> st->codec->time_base.num);
> break;
> default:
> --
probably ok
_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel