Skip to content

Commit

Permalink
encode: add AV_BUFFERSINK_FLAG_NO_REQUEST to av_buffersink_get_frame
Browse files Browse the repository at this point in the history
Fixes what seems to be a false positive tsan issue.
  • Loading branch information
cyanreg committed Jun 21, 2023
1 parent f9b2b4c commit daf8161
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/cyanrip_encode.c
Original file line number Diff line number Diff line change
Expand Up @@ -453,7 +453,8 @@ static int filter_frame(cyanrip_ctx *ctx, cyanrip_enc_ctx **enc_ctx,
goto fail;
}

ret = av_buffersink_get_frame(dec_ctx->buffersink_ctx, dec_frame);
ret = av_buffersink_get_frame_flags(dec_ctx->buffersink_ctx, dec_frame,
AV_BUFFERSINK_FLAG_NO_REQUEST);
if (ret == AVERROR(EAGAIN)) {
av_frame_free(&dec_frame);
ret = 0;
Expand Down

0 comments on commit daf8161

Please sign in to comment.