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

Showing the changes to libavfilter (1 of 1 file). Show all

Unified · Split

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

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