]> git.sesse.net Git - ffmpeg/blobdiff - libavcodec/h264.c
build: avcodec: order cosmetics
[ffmpeg] / libavcodec / h264.c
index a191bc74de576bc9b6a6bd38ce7eb23852fafdd1..2c4f07d601e9b6609208a60400c46ab20b23e5d4 100644 (file)
@@ -3876,7 +3876,8 @@ again:
 
                 if (avctx->bits_per_raw_sample != h->sps.bit_depth_luma ||
                     h->cur_chroma_format_idc   != h->sps.chroma_format_idc) {
-                    if (s->avctx->codec->capabilities & CODEC_CAP_HWACCEL_VDPAU
+                    if (s->avctx->codec &&
+                        s->avctx->codec->capabilities & CODEC_CAP_HWACCEL_VDPAU
                         && (h->sps.bit_depth_luma != 8 ||
                             h->sps.chroma_format_idc > 1)) {
                         av_log(avctx, AV_LOG_ERROR,