mirror of
https://github.com/nyanmisaka/ffmpeg-rockchip.git
synced 2025-10-07 09:41:32 +08:00
avformat_new_stream: fix initial last_dts value
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
@@ -2869,6 +2869,7 @@ AVStream *avformat_new_stream(AVFormatContext *s, AVCodec *c)
|
|||||||
av_free(st);
|
av_free(st);
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
st->info->last_dts = AV_NOPTS_VALUE;
|
||||||
|
|
||||||
st->codec = avcodec_alloc_context3(c);
|
st->codec = avcodec_alloc_context3(c);
|
||||||
if (s->iformat) {
|
if (s->iformat) {
|
||||||
|
Reference in New Issue
Block a user