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>
pull/283/head
Marton Balint 7 years ago
parent 5710fdaeae
commit 37d472a906
  1. 2
      libavformat/concatdec.c

@ -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…
Cancel
Save