History

lavf/sr: Don't need to check NULL before sws_freeContext

sws_freeContext have check the NULL pointer, so don't need to check NULL before sws_freeContext.

Jun Zhao committed 7 years ago

Commit 5c1fbc41 parent 51b0e811 file · +1 −3Browse files

Unified · Split

libavfilter/vf_sr.c+1−3
@@ -286,9 +286,7 @@ static av_cold void uninit(AVFilterContext *context) · 285 unmodified lines
286 }286 }
287 287
288 for (i = 0; i < 3; ++i){288 for (i = 0; i < 3; ++i){
289 if (sr_context->sws_contexts[i]){289 sws_freeContext(sr_context->sws_contexts[i]);
290 sws_freeContext(sr_context->sws_contexts[i]);
291 }
292 }290 }
293}291}
294 292

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t