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 | 51 | AVFilterBufferRef *buf; |
| 52 | 52 | int ret; |
| 53 | 53 | |
| 54 | − if (!buf) { | |
| 54 | + if (!frame) { | |
| 55 | 55 | c->eof = 1; |
| 56 | 56 | return 0; |
| 57 | 57 | } else if (c->eof) |