mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-12-15 19:40:07 +01:00
lavc: deprecate CODEC_FLAG_EMU_EDGE and avcodec_get_edge_width().
This commit is contained in:
@@ -127,10 +127,12 @@ av_cold void avcodec_register(AVCodec *codec)
|
||||
codec->init_static_data(codec);
|
||||
}
|
||||
|
||||
#if FF_API_EMU_EDGE
|
||||
unsigned avcodec_get_edge_width(void)
|
||||
{
|
||||
return EDGE_WIDTH;
|
||||
}
|
||||
#endif
|
||||
|
||||
#if FF_API_SET_DIMENSIONS
|
||||
void avcodec_set_dimensions(AVCodecContext *s, int width, int height)
|
||||
@@ -1089,6 +1091,11 @@ int attribute_align_arg avcodec_open2(AVCodecContext *avctx, const AVCodec *code
|
||||
ret = AVERROR(EINVAL);
|
||||
goto free_and_end;
|
||||
}
|
||||
|
||||
#if FF_API_EMU_EDGE
|
||||
/* force the emu edge flag on, since it's now always active */
|
||||
avctx->flags |= CODEC_FLAG_EMU_EDGE;
|
||||
#endif
|
||||
}
|
||||
end:
|
||||
entangled_thread_counter--;
|
||||
|
||||
Reference in New Issue
Block a user