summaryrefslogtreecommitdiff
path: root/libavformat/mpegts.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2012-12-03 17:29:56 +0100
committerMichael Niedermayer <michaelni@gmx.at>2012-12-03 17:29:56 +0100
commit8897b5aa4c09906e4d43157fdcd7042f47fe15cf (patch)
treef43a1f311830888e29341c50de5f4d53b4c793f5 /libavformat/mpegts.c
parent4c160b68cca2001101b3286877bf286ff0dd7873 (diff)
mpegts_set_stream_info: remove unneeded codec id check
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavformat/mpegts.c')
-rw-r--r--libavformat/mpegts.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/mpegts.c b/libavformat/mpegts.c
index 9e3f3420d7..7380a807fd 100644
--- a/libavformat/mpegts.c
+++ b/libavformat/mpegts.c
@@ -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;
}