]> git.sesse.net Git - ffmpeg/blobdiff - libavcodec/pictordec.c
h264: set ref_count to 0 for intra slices.
[ffmpeg] / libavcodec / pictordec.c
index e769537706b53ba3714cdf47db100eeed3d1f701..16f930730b7ebf74298c963a63f01cdc7325cb51 100644 (file)
@@ -123,7 +123,7 @@ static int decode_frame(AVCodecContext *avctx,
     bpp            = bits_per_plane * s->nb_planes;
     if (bits_per_plane > 8 || bpp < 1 || bpp > 32) {
         av_log_ask_for_sample(s, "unsupported bit depth\n");
-        return AVERROR_INVALIDDATA;
+        return AVERROR_PATCHWELCOME;
     }
 
     if (bytestream2_peek_byte(&s->g) == 0xFF) {