Skip to content

Commit 13fee82

Browse files
committed
lavc_common: insufficient include guard
fixed include guard (commit 8b94de5 from yesterday)
1 parent 352eab7 commit 13fee82

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/libavcodec/lavc_common.c

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -354,11 +354,11 @@ get_avpixfmts_names(const enum AVPixelFormat *pixfmts)
354354
*
355355
* If passed ctx, values such as `strict_std_compliance` may afect the result.
356356
*/
357+
#if LIBAVCODEC_VERSION_INT > AV_VERSION_INT(61, 13, 100)
357358
static const void *
358359
avc_get_supported_config(const AVCodecContext *ctx, const AVCodec *codec,
359360
enum AVCodecConfig config)
360361
{
361-
#if LIBAVCODEC_VERSION_INT > AV_VERSION_INT(61, 13, 100)
362362
const void *ret = NULL;
363363
int unused_count = 0;
364364
const int rc = avcodec_get_supported_config(
@@ -371,10 +371,8 @@ avc_get_supported_config(const AVCodecContext *ctx, const AVCodec *codec,
371371
}
372372

373373
return ret;
374-
#else
375-
abort(); // cannot reach here (shouldn't be called)
376-
#endif
377374
}
375+
#endif
378376
///< @copydoc avc_get_supported_config
379377
const enum AVPixelFormat *
380378
avc_get_supported_pix_fmts(const AVCodecContext *ctx, const AVCodec *codec)

0 commit comments

Comments
 (0)