avformat/concatdec: only set output stream index before returning packet
Fixes ticket #6434. Reviewed-by: Nicolas George <george@nsup.org> Signed-off-by: Marton Balint <cus@passwd.hu>
This commit is contained in:
parent
5710fdaeae
commit
37d472a906
@ -603,7 +603,6 @@ static int concat_read_packet(AVFormatContext *avf, AVPacket *pkt)
|
|||||||
av_packet_unref(pkt);
|
av_packet_unref(pkt);
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
pkt->stream_index = cs->out_stream_index;
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
if ((ret = filter_packet(avf, cs, pkt)))
|
if ((ret = filter_packet(avf, cs, pkt)))
|
||||||
@ -646,6 +645,7 @@ static int concat_read_packet(AVFormatContext *avf, AVPacket *pkt)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
pkt->stream_index = cs->out_stream_index;
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user