simplify AVFormatParameters NULL checks
Originally committed as revision 5146 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
@@ -465,6 +465,12 @@ int av_open_input_stream(AVFormatContext **ic_ptr,
|
||||
{
|
||||
int err;
|
||||
AVFormatContext *ic;
|
||||
AVFormatParameters default_ap;
|
||||
|
||||
if(!ap){
|
||||
ap=&default_ap;
|
||||
memset(ap, 0, sizeof(default_ap));
|
||||
}
|
||||
|
||||
ic = av_alloc_format_context();
|
||||
if (!ic) {
|
||||
|
Reference in New Issue
Block a user