]> git.sesse.net Git - ffmpeg/commitdiff
mpegts_set_stream_info: remove unneeded codec id check
authorMichael Niedermayer <michaelni@gmx.at>
Mon, 3 Dec 2012 16:29:56 +0000 (17:29 +0100)
committerMichael Niedermayer <michaelni@gmx.at>
Mon, 3 Dec 2012 16:29:56 +0000 (17:29 +0100)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavformat/mpegts.c

index 9e3f3420d7f3d2faa2fecc277d2921ca83369ee7..7380a807fd3f1c18db0e229bf6a69a52feabc494 100644 (file)
@@ -614,7 +614,7 @@ static int mpegts_set_stream_info(AVStream *st, PESContext *pes,
     int old_codec_type= st->codec->codec_type;
     int old_codec_id  = st->codec->codec_id;
 
-    if (old_codec_id != AV_CODEC_ID_NONE && avcodec_is_open(st->codec)) {
+    if (avcodec_is_open(st->codec)) {
         av_log(pes->stream, AV_LOG_DEBUG, "cannot set stream info, codec is open\n");
         return 0;
     }