Browse Source

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>
tags/n4.0
Marton Balint 8 years ago
parent
commit
37d472a906
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      libavformat/concatdec.c

+ 1
- 1
libavformat/concatdec.c View File

@@ -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;
}



Loading…
Cancel
Save