Skip to content

Commit

Permalink
f--- around
Browse files Browse the repository at this point in the history
  • Loading branch information
Mr-Z-2697 committed Oct 4, 2024
1 parent f41e8d5 commit 0bc64e9
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions common/decode.c
Original file line number Diff line number Diff line change
Expand Up @@ -220,6 +220,11 @@ int decode_video_packet
&& ret != AVERROR( EAGAIN ) ) /* Must receive output frames before sending new packets if true. */
return ret;
}
while ( ret == AVERROR( EAGAIN ) )
{
ret = avcodec_receive_frame( ctx, av_frame );
ret = avcodec_send_packet( ctx, pkt );
}
ret = avcodec_receive_frame( ctx, av_frame );
if( ret < 0
&& ret != AVERROR( EAGAIN ) /* Must send new packets before receiving frames if true. */
Expand Down

0 comments on commit 0bc64e9

Please sign in to comment.