Skip to content
Snippets Groups Projects
Commit 37d472a9 authored by Marton Balint's avatar Marton Balint
Browse files

avformat/concatdec: only set output stream index before returning packet


Fixes ticket #6434.

Reviewed-by: default avatarNicolas George <george@nsup.org>
Signed-off-by: default avatarMarton Balint <cus@passwd.hu>
parent 5710fdae
No related branches found
No related tags found
No related merge requests found
...@@ -603,7 +603,6 @@ static int concat_read_packet(AVFormatContext *avf, AVPacket *pkt) ...@@ -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) ...@@ -646,6 +645,7 @@ static int concat_read_packet(AVFormatContext *avf, AVPacket *pkt)
} }
} }
pkt->stream_index = cs->out_stream_index;
return ret; return ret;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment