Fixes segfaults since cbbc927a67f142a02bfc5d047c03587599ee5b55.
Unified · Split
| @@ -3087,7 +3087,7 @@ static int filter_thread(void *arg) · 3086 unmodified lines | ||
| 3087 | 3087 | |
| 3088 | 3088 | while (1) { |
| 3089 | 3089 | InputFilter *ifilter; |
| 3090 | − InputFilterPriv *ifp; | |
| 3090 | + InputFilterPriv *ifp = NULL; | |
| 3091 | 3091 | enum FrameOpaque o; |
| 3092 | 3092 | unsigned input_idx = fgt.next_in; |
| 3093 | 3093 | |
| @@ -3149,7 +3149,7 @@ read_frames: · 55 unmodified lines | ||
| 3149 | 3149 | ret = read_frames(fg, &fgt, fgt.frame); |
| 3150 | 3150 | if (ret == AVERROR_EOF) { |
| 3151 | 3151 | av_log(fg, AV_LOG_VERBOSE, "All consumers returned EOF\n"); |
| 3152 | − if (ifp->opts.flags & IFILTER_FLAG_DROPCHANGED) | |
| 3152 | + if (ifp && ifp->opts.flags & IFILTER_FLAG_DROPCHANGED) | |
| 3153 | 3153 | av_log(fg, AV_LOG_INFO, "Total changed input frames dropped : %"PRId64"\n", ifp->nb_dropped); |
| 3154 | 3154 | break; |
| 3155 | 3155 | } else if (ret < 0) { |