This website works better with JavaScript.
Home
Help
Sign In
falkTX
/
FFmpeg
mirror of
https://github.com/falkTX/FFmpeg.git
Watch
1
Star
0
Fork
0
Code
Issues
0
Releases
338
Wiki
Activity
Browse Source
avcodec/imgconvert: fix possible null pointer dereference
regression since
354b26a394
(cherry picked from commit
8c2c97403b
)
tags/n3.4.4
Simon Thelen
Jan Ekström
7 years ago
parent
8935558536
commit
c1e172c2e1
1 changed files
with
3 additions
and
2 deletions
Unified View
Diff Options
Show Stats
Download Patch File
Download Diff File
+3
-2
libavcodec/imgconvert.c
+ 3
- 2
libavcodec/imgconvert.c
View File
@@ -72,11 +72,12 @@ enum AVPixelFormat avcodec_find_best_pix_fmt_of_list(const enum AVPixelFormat *p
int loss;
int loss;
for (i=0; pix_fmt_list[i] != AV_PIX_FMT_NONE; i++) {
for (i=0; pix_fmt_list[i] != AV_PIX_FMT_NONE; i++) {
loss = *loss_ptr;
loss =
loss_ptr ?
*loss_ptr
: 0
;
best = avcodec_find_best_pix_fmt_of_2(best, pix_fmt_list[i], src_pix_fmt, has_alpha, &loss);
best = avcodec_find_best_pix_fmt_of_2(best, pix_fmt_list[i], src_pix_fmt, has_alpha, &loss);
}
}
*loss_ptr = loss;
if (loss_ptr)
*loss_ptr = loss;
return best;
return best;
}
}
Write
Preview
Loading…
Cancel
Save