Mercurial > libavformat.hg
changeset 5488:033545e4dfd0 libavformat
Use av_guess_format() in place of the deprecated guess_format().
author | stefano |
---|---|
date | Fri, 01 Jan 2010 12:58:03 +0000 |
parents | 06b9ae377c25 |
children | 611a8e6209be |
files | utils.c |
diffstat | 1 files changed, 3 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/utils.c Fri Jan 01 12:52:20 2010 +0000 +++ b/utils.c Fri Jan 01 12:58:03 2010 +0000 @@ -201,7 +201,7 @@ if (!short_name && filename && av_filename_number_test(filename) && av_guess_image2_codec(filename) != CODEC_ID_NONE) { - return guess_format("image2", NULL, NULL); + return av_guess_format("image2", NULL, NULL); } #endif /* Find the proper file type. */ @@ -231,14 +231,14 @@ AVOutputFormat *guess_stream_format(const char *short_name, const char *filename, const char *mime_type) { - AVOutputFormat *fmt = guess_format(short_name, filename, mime_type); + AVOutputFormat *fmt = av_guess_format(short_name, filename, mime_type); if (fmt) { AVOutputFormat *stream_fmt; char stream_format_name[64]; snprintf(stream_format_name, sizeof(stream_format_name), "%s_stream", fmt->name); - stream_fmt = guess_format(stream_format_name, NULL, NULL); + stream_fmt = av_guess_format(stream_format_name, NULL, NULL); if (stream_fmt) fmt = stream_fmt;