]> git.sesse.net Git - ffmpeg/blobdiff - libavformat/flvenc.c
Merge commit '9c9b0218e85fcd969308632f75af48a4ce229541'
[ffmpeg] / libavformat / flvenc.c
index 7d3a0ca99f44cef39c181c1a8576960aba5df402..e19374fd79e4d4a4c650e98382ba1292ab30d623 100644 (file)
@@ -537,7 +537,7 @@ static int flv_write_packet(AVFormatContext *s, AVPacket *pkt)
         avio_w8(pb, FLV_TAG_TYPE_VIDEO);
 
         flags = enc->codec_tag;
-        if (flags == 0) {
+        if (flags <= 0 || flags > 15) {
             av_log(s, AV_LOG_ERROR,
                    "Video codec '%s' is not compatible with FLV\n",
                    avcodec_get_name(enc->codec_id));