mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-01-16 12:21:18 +00:00
avcodec/nvdec_mjpeg: Remove always-true #if CONFIG_MJPEG_NVDEC_HWACCEL
This file is built iff said hwaccel is enabled. Reviewed-by: Philip Langdale <philipl@overt.org> Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
This commit is contained in:
parent
f18f8a561c
commit
20a1296bb4
@ -20,8 +20,6 @@
|
||||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
*/
|
||||
|
||||
#include "config_components.h"
|
||||
|
||||
#include "avcodec.h"
|
||||
#include "internal.h"
|
||||
#include "mjpegdec.h"
|
||||
@ -71,7 +69,6 @@ static int nvdec_mjpeg_frame_params(AVCodecContext *avctx,
|
||||
return ff_nvdec_frame_params(avctx, hw_frames_ctx, 1, 0);
|
||||
}
|
||||
|
||||
#if CONFIG_MJPEG_NVDEC_HWACCEL
|
||||
AVHWAccel ff_mjpeg_nvdec_hwaccel = {
|
||||
.name = "mjpeg_nvdec",
|
||||
.type = AVMEDIA_TYPE_VIDEO,
|
||||
@ -85,4 +82,3 @@ AVHWAccel ff_mjpeg_nvdec_hwaccel = {
|
||||
.uninit = ff_nvdec_decode_uninit,
|
||||
.priv_data_size = sizeof(NVDECContext),
|
||||
};
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user