]> git.sesse.net Git - ffmpeg/blobdiff - libavformat/concatdec.c
avcodec: rewrite gif muxing and encoding
[ffmpeg] / libavformat / concatdec.c
index 8fff9cc2cbca889177191c41c8f13bf01321ae0d..bbe13136fa297d24eaa976398af42613e9648f87 100644 (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;
 }