Skip to content

Commit

Permalink
lavc_common: insufficient include guard
Browse files Browse the repository at this point in the history
fixed include guard (commit 8b94de5 from yesterday)
  • Loading branch information
MartinPulec committed Nov 13, 2024
1 parent 352eab7 commit 13fee82
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/libavcodec/lavc_common.c
Original file line number Diff line number Diff line change
Expand Up @@ -354,11 +354,11 @@ get_avpixfmts_names(const enum AVPixelFormat *pixfmts)
*
* If passed ctx, values such as `strict_std_compliance` may afect the result.
*/
#if LIBAVCODEC_VERSION_INT > AV_VERSION_INT(61, 13, 100)
static const void *
avc_get_supported_config(const AVCodecContext *ctx, const AVCodec *codec,
enum AVCodecConfig config)
{
#if LIBAVCODEC_VERSION_INT > AV_VERSION_INT(61, 13, 100)
const void *ret = NULL;
int unused_count = 0;
const int rc = avcodec_get_supported_config(
Expand All @@ -371,10 +371,8 @@ avc_get_supported_config(const AVCodecContext *ctx, const AVCodec *codec,
}

return ret;
#else
abort(); // cannot reach here (shouldn't be called)
#endif
}
#endif
///< @copydoc avc_get_supported_config
const enum AVPixelFormat *
avc_get_supported_pix_fmts(const AVCodecContext *ctx, const AVCodec *codec)
Expand Down

0 comments on commit 13fee82

Please sign in to comment.