The user submitted variable in this function is frame, not buf.
Unified · Split
| @@ -51,7 +51,7 @@ int av_vsrc_buffer_add_frame(AVFilterContext *buffer_filter, AVFrame *frame, · 50 unmodified lines | |||
| 51 | AVFilterBufferRef *buf; | 51 | AVFilterBufferRef *buf; |
| 52 | int ret; | 52 | int ret; |
| 53 | 53 | ||
| 54 | if (!buf) { | 54 | if (!frame) { |
| 55 | c->eof = 1; | 55 | c->eof = 1; |
| 56 | return 0; | 56 | return 0; |
| 57 | } else if (c->eof) | 57 | } else if (c->eof) |