Skip to content

Commit 39b2b47

Browse files
committed
Fix frame properties when hw decoding is used (#103)
1 parent 8bb5b65 commit 39b2b47

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

common/video_output.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -154,6 +154,11 @@ int transfer_frame_data(AVFrame* dst, AVFrame* src)
154154
{
155155
if (src->hw_frames_ctx) {
156156
int ret = av_hwframe_transfer_data(dst, src, 0);
157+
if (ret) {
158+
av_frame_unref(src);
159+
return ret;
160+
}
161+
ret = av_frame_copy_props(dst, src);
157162
av_frame_unref(src);
158163
return ret;
159164
} else {

0 commit comments

Comments
 (0)