diff options
author | Marton Balint <cus@passwd.hu> | 2018-03-25 22:19:28 +0200 |
---|---|---|
committer | Marton Balint <cus@passwd.hu> | 2018-04-02 20:41:53 +0200 |
commit | 37d472a906bd9112225129fc35d9c94ae2ee9c3e (patch) | |
tree | 617fefcbd19d0147310d2aa5ac436bab98f798a4 /libavformat/concatdec.c | |
parent | 5710fdaeae09529282862c984317bd9347d0865d (diff) | |
download | ffmpeg-37d472a906bd9112225129fc35d9c94ae2ee9c3e.tar.gz |
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>
Diffstat (limited to 'libavformat/concatdec.c')
-rw-r--r-- | libavformat/concatdec.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/concatdec.c b/libavformat/concatdec.c index 8fff9cc2cb..bbe13136fa 100644 --- a/libavformat/concatdec.c +++ b/libavformat/concatdec.c @@ -603,7 +603,6 @@ static int concat_read_packet(AVFormatContext *avf, AVPacket *pkt) av_packet_unref(pkt); continue; } - pkt->stream_index = cs->out_stream_index; break; } 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; } |