On 19.03.20 21:40, Timo Rothenpieler wrote:
For what I'm aware, make_writable does not work on hardware frames.
And the nvdec hwaccel returns frames that are mapped device memory,
and thus hard read-only.
You will need to manually allocate output frames from the hw_frames_ctx.
Yes I see. So it seems we can safely remove this call.
Also, I was thinking that output frame allocation is not needed because
we can safely operate on input frame in-place saving extra memory
allocation and copy. It seems works well. Is it ok, or should we always
allocate output frame?
If removing call to av_frame_make_writable would be enough, I could send
updated patch then.
P.S. Also it just strange why it worked well with h264_cuvid.
_______________________________________________
ffmpeg-devel mailing list
ffmpeg-devel@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
To unsubscribe, visit link above, or email
ffmpeg-devel-requ...@ffmpeg.org with subject "unsubscribe".