[FFmpeg-soc] [soc]: r4877 - concat/libavformat/playlist.c
gkovacs
subversion at mplayerhq.hu
Sat Aug 1 03:40:15 CEST 2009
Author: gkovacs
Date: Sat Aug 1 03:40:15 2009
New Revision: 4877
Log:
use avformat_alloc_context rather than av_mallocz to allocate AVFormatContext
Modified:
concat/libavformat/playlist.c
Modified: concat/libavformat/playlist.c
==============================================================================
--- concat/libavformat/playlist.c Sat Aug 1 03:38:26 2009 (r4876)
+++ concat/libavformat/playlist.c Sat Aug 1 03:40:15 2009 (r4877)
@@ -37,7 +37,7 @@
AVFormatContext *ff_playlist_alloc_formatcontext(char *filename)
{
int err;
- AVFormatContext *ic = av_mallocz(sizeof(*ic));
+ AVFormatContext *ic = avformat_alloc_context();
err = av_open_input_file(&(ic), filename, ic->iformat, 0, NULL);
if (err < 0)
av_log(ic, AV_LOG_ERROR, "Error during av_open_input_file\n");
More information about the FFmpeg-soc
mailing list