Fixes: CID1520677 Uninitialized pointer read
Showing the changes to fftools (1 of 1 file). Show all
Unified · Split
| @@ -474,7 +474,7 @@ void enc_stats_write(OutputStream *ost, EncStats *es, · 473 unmodified lines | ||
| 474 | 474 | AVRational tbi = (AVRational){ 0, 1}; |
| 475 | 475 | int64_t ptsi = INT64_MAX; |
| 476 | 476 | |
| 477 | − const FrameData *fd; | |
| 477 | + const FrameData *fd = NULL; | |
| 478 | 478 | |
| 479 | 479 | if (frame ? frame->opaque_ref : pkt->opaque_ref) { |
| 480 | 480 | fd = (const FrameData*)(frame ? frame->opaque_ref->data : pkt->opaque_ref->data); |