aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJames Almer <jamrial@gmail.com>2021-12-24 14:24:07 -0300
committerJames Almer <jamrial@gmail.com>2021-12-24 14:24:07 -0300
commit2497a45562f6439f7d0002319d53d925f0c51535 (patch)
tree0ae20901cc6ccf04113f87a36bf5e9b0385f5adb
parentc147f7962c2a6634608531bdd14052e836bc860c (diff)
downloadffmpeg-2497a45562f6439f7d0002319d53d925f0c51535.tar.gz
avdevice/dshow: don't mix declarations and code
Signed-off-by: James Almer <jamrial@gmail.com>
-rw-r--r--libavdevice/dshow.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavdevice/dshow.c b/libavdevice/dshow.c
index 0929ad9316..30f1be1ead 100644
--- a/libavdevice/dshow.c
+++ b/libavdevice/dshow.c
@@ -915,6 +915,7 @@ dshow_cycle_formats(AVFormatContext *avctx, enum dshowDeviceType devtype,
}
if (!pformat_set) {
+ const char *chroma = av_chroma_location_name(fmt_info->chroma_loc);
if (fmt_info->pix_fmt == AV_PIX_FMT_NONE) {
const AVCodec *codec = avcodec_find_decoder(fmt_info->codec_id);
if (fmt_info->codec_id == AV_CODEC_ID_NONE || !codec) {
@@ -931,7 +932,6 @@ dshow_cycle_formats(AVFormatContext *avctx, enum dshowDeviceType devtype,
vcaps->MaxOutputSize.cx, vcaps->MaxOutputSize.cy,
1e7 / vcaps->MinFrameInterval);
- const char *chroma = av_chroma_location_name(fmt_info->chroma_loc);
if (fmt_info->col_range != AVCOL_RANGE_UNSPECIFIED ||
fmt_info->col_space != AVCOL_SPC_UNSPECIFIED ||
fmt_info->col_prim != AVCOL_PRI_UNSPECIFIED ||