Showing the changes to libavcodec (1 of 1 file). Show all
Unified · Split
| @@ -292,12 +292,9 @@ fail: · 291 unmodified lines | |||
| 292 | 292 | ||
| 293 | int ff_find_unused_picture(AVCodecContext *avctx, Picture *picture, int shared) | 293 | int ff_find_unused_picture(AVCodecContext *avctx, Picture *picture, int shared) |
| 294 | { | 294 | { |
| 295 | int i; | 295 | for (int i = 0; i < MAX_PICTURE_COUNT; i++) |
| 296 | 296 | if (!picture[i].f->buf[0]) | |
| 297 | for (i = 0; i < MAX_PICTURE_COUNT; i++) { | 297 | return i; |
| 298 | if (!picture[i].f->buf[0]) | ||
| 299 | return i; | ||
| 300 | } | ||
| 301 | 298 | ||
| 302 | av_log(avctx, AV_LOG_FATAL, | 299 | av_log(avctx, AV_LOG_FATAL, |
| 303 | "Internal error, picture buffer overflow\n"); | 300 | "Internal error, picture buffer overflow\n"); |