Fallback for hardware accelerated decode to software decode in case

the GPU can noy handle the dimensions of the frame.
Not yet working, va_config not yet set.
This commit is contained in:
eisneinechse
2018-09-11 20:18:11 -07:00
parent f8fed171ce
commit 4db2217f0d
2 changed files with 86 additions and 51 deletions

View File

@@ -71,12 +71,6 @@ static int set_hwframe_ctx(AVCodecContext *ctx, AVBufferRef *hw_device_ctx, int6
}
#endif
#if IS_FFMPEG_3_2
//#if defined(__linux__)
#pragma message "You are compiling with experimental hardware encode"
//#endif
#endif
FFmpegWriter::FFmpegWriter(string path) :
path(path), fmt(NULL), oc(NULL), audio_st(NULL), video_st(NULL), audio_pts(0), video_pts(0), samples(NULL),
audio_outbuf(NULL), audio_outbuf_size(0), audio_input_frame_size(0), audio_input_position(0),