Merge remote-tracking branch 'qatar/master'
* qatar/master: swscale: fix NULL checking in sws_alloc_context() mxfdec: fix NULL checking in mxf_get_sorted_table_segments() finalize changelog for version 9 Conflicts: Changelog libavformat/mxfdec.c Merged-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
commit
bb4fb7715c
@ -888,8 +888,10 @@ SwsContext *sws_alloc_context(void)
|
|||||||
{
|
{
|
||||||
SwsContext *c = av_mallocz(sizeof(SwsContext));
|
SwsContext *c = av_mallocz(sizeof(SwsContext));
|
||||||
|
|
||||||
c->av_class = &sws_context_class;
|
if (c) {
|
||||||
av_opt_set_defaults(c);
|
c->av_class = &sws_context_class;
|
||||||
|
av_opt_set_defaults(c);
|
||||||
|
}
|
||||||
|
|
||||||
return c;
|
return c;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user