History

avcodec/libxevd: Fix "if (ret = ff_foo() < 0)" precedence problem

Andreas Rheinhardt committed 2 years ago

Commit fbf1e511 parent 0c92c8e1 file · +2 −1Browse files

Showing the changes to libavcodec (1 of 1 file). Show all

Unified · Split

libavcodec/libxevd.c+2−1
@@ -204,7 +204,8 @@ static int libxevd_image_copy(struct AVCodecContext *avctx, XEVD_IMGB *imgb, str · 203 unmodified lines
204 }204 }
205 }205 }
206 206
207 if (ret = ff_get_buffer(avctx, frame, 0) < 0)207 ret = ff_get_buffer(avctx, frame, 0);
208 if (ret < 0)
208 return ret;209 return ret;
209 210
210 av_image_copy(frame->data, frame->linesize, (const uint8_t **)imgb->a,211 av_image_copy(frame->data, frame->linesize, (const uint8_t **)imgb->a,

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t