mirror of
https://gitee.com/openharmony/third_party_ffmpeg
synced 2024-11-27 21:20:41 +00:00
avformat/utils: Do not update programs streams from program-less streams in update_wrap_reference()
Fixes Ticket3686 Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
8ddfc00ab7
commit
a29524bf2e
@ -594,6 +594,8 @@ static int update_wrap_reference(AVFormatContext *s, AVStream *st, int stream_in
|
|||||||
int default_stream_index = av_find_default_stream_index(s);
|
int default_stream_index = av_find_default_stream_index(s);
|
||||||
if (s->streams[default_stream_index]->pts_wrap_reference == AV_NOPTS_VALUE) {
|
if (s->streams[default_stream_index]->pts_wrap_reference == AV_NOPTS_VALUE) {
|
||||||
for (i = 0; i < s->nb_streams; i++) {
|
for (i = 0; i < s->nb_streams; i++) {
|
||||||
|
if (av_find_program_from_stream(s, NULL, i))
|
||||||
|
continue;
|
||||||
s->streams[i]->pts_wrap_reference = pts_wrap_reference;
|
s->streams[i]->pts_wrap_reference = pts_wrap_reference;
|
||||||
s->streams[i]->pts_wrap_behavior = pts_wrap_behavior;
|
s->streams[i]->pts_wrap_behavior = pts_wrap_behavior;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user