mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-01-24 13:56:33 +02:00
avcodec: only warn about hwaccel with frame threads
VLC uses hwaccel with frame threads and it works fine, but returning an error here made it fail. This regression was introduced in commit 31741ae. Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com> Warning message text by nevcairiel Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
parent
09b8e97ab6
commit
5edd1f62ca
@ -1016,9 +1016,8 @@ static int setup_hwaccel(AVCodecContext *avctx,
|
||||
int ret = 0;
|
||||
|
||||
if (avctx->active_thread_type & FF_THREAD_FRAME) {
|
||||
av_log(avctx, AV_LOG_ERROR,
|
||||
"Hardware accelerated decoding with frame threading is not supported.\n");
|
||||
return AVERROR(EINVAL);
|
||||
av_log(avctx, AV_LOG_WARNING,
|
||||
"Hardware accelerated decoding with frame threading is known to be unstable and its use is discourage.\n");
|
||||
}
|
||||
|
||||
if (!hwa) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user