mirror of
https://github.com/nyanmisaka/ffmpeg-rockchip.git
synced 2025-10-12 20:20:47 +08:00
Replace deprecated guess_format() with av_guess_format().
Patch by Martin Storsjö reverse(<ts.nitram@nitram>). Originally committed as revision 21387 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:

committed by
Stefano Sabatini

parent
3deb53849e
commit
a52ce57d4e
@@ -447,10 +447,10 @@ int main(int argc, char **argv)
|
|||||||
|
|
||||||
/* auto detect the output format from the name. default is
|
/* auto detect the output format from the name. default is
|
||||||
mpeg. */
|
mpeg. */
|
||||||
fmt = guess_format(NULL, filename, NULL);
|
fmt = av_guess_format(NULL, filename, NULL);
|
||||||
if (!fmt) {
|
if (!fmt) {
|
||||||
printf("Could not deduce output format from file extension: using MPEG.\n");
|
printf("Could not deduce output format from file extension: using MPEG.\n");
|
||||||
fmt = guess_format("mpeg", NULL, NULL);
|
fmt = av_guess_format("mpeg", NULL, NULL);
|
||||||
}
|
}
|
||||||
if (!fmt) {
|
if (!fmt) {
|
||||||
fprintf(stderr, "Could not find suitable output format\n");
|
fprintf(stderr, "Could not find suitable output format\n");
|
||||||
|
Reference in New Issue
Block a user