Author: gkovacs
Date: Wed Aug 26 21:03:45 2009
New Revision: 5317
Log:
remove superfluous null-pointer checks when calling av_free
Modified:
concat/libavformat/avplaylist.c
Modified: concat/libavformat/avplaylist.c
==============================================================================
--- concat/libavformat/avplaylist.c Wed Aug 26 21:00:42 2009 (r5316)
+++ concat/libavformat/avplaylist.c Wed Aug 26 21:03:45 2009 (r5317)
@@ -160,14 +160,10 @@ int av_playlist_close(AVPlaylistContext
return err;
}
}
- if (ctx->flist)
- av_free(ctx->flist);
- if (ctx->durations)
- av_free(ctx->durations);
- if (ctx->nb_streams_list)
- av_free(ctx->nb_streams_list);
- if (ctx->formatcontext_list)
- av_free(ctx->formatcontext_list);
+ av_free(ctx->flist);
+ av_free(ctx->durations);
+ av_free(ctx->nb_streams_list);
+ av_free(ctx->formatcontext_list);
av_free(ctx);
return 0;
}
_______________________________________________
FFmpeg-soc mailing list
[email protected]
https://lists.mplayerhq.hu/mailman/listinfo/ffmpeg-soc