]> git.sesse.net Git - ffmpeg/blobdiff - libavcodec/error_resilience.c
libkvazaar: Replace asserts with proper errors
[ffmpeg] / libavcodec / error_resilience.c
index b3b46d15595d131151e199b10934bb0fe9ece681..2c741a4a1608f8ef4cba269a53980c069d9922c6 100644 (file)
@@ -777,7 +777,9 @@ void ff_er_frame_start(ERContext *s)
 static int er_supported(ERContext *s)
 {
     if(s->avctx->hwaccel && s->avctx->hwaccel->decode_slice           ||
+#if FF_API_CAP_VDPAU
        s->avctx->codec->capabilities&AV_CODEC_CAP_HWACCEL_VDPAU          ||
+#endif
        !s->cur_pic.f                                                  ||
        s->cur_pic.field_picture
     )