Message ID | 20240902081605.75094-1-jiangjie618@gmail.com |
---|---|
State | New |
Headers | show |
Series | [FFmpeg-devel] avformat/dashdec: The segments in dash file doesn't read completely when segment's size and duration is very small. | expand |
Context | Check | Description |
---|---|---|
yinshiyou/make_loongarch64 | success | Make finished |
yinshiyou/make_fate_loongarch64 | success | Make fate finished |
andriy/make_x86 | success | Make finished |
andriy/make_fate_x86 | success | Make fate finished |
diff --git a/libavformat/dashdec.c b/libavformat/dashdec.c index 63070b77be..12960d0312 100644 --- a/libavformat/dashdec.c +++ b/libavformat/dashdec.c @@ -2207,9 +2207,9 @@ static int dash_read_packet(AVFormatContext *s, AVPacket *pkt) if (cur->is_restart_needed) { cur->cur_seg_offset = 0; cur->init_sec_buf_read_offset = 0; + cur->is_restart_needed = 0; ff_format_io_close(cur->parent, &cur->input); ret = reopen_demux_for_component(s, cur); - cur->is_restart_needed = 0; } } return AVERROR_EOF;