aboutsummaryrefslogtreecommitdiffstats
path: root/ffmpeg.c
diff options
context:
space:
mode:
authorStefano Sabatini <stefano.sabatini-lala@poste.it>2010-01-30 19:10:26 +0000
committerStefano Sabatini <stefano.sabatini-lala@poste.it>2010-01-30 19:10:26 +0000
commit718c7b18c91c3eca21d7028bc6581045b22b32a4 (patch)
tree63c666a2c3b3f81ff618b765d57624ea848997cf /ffmpeg.c
parent22bf4592c8c17f6dbd5e3e6afaa896587d4d69fd (diff)
downloadffmpeg-718c7b18c91c3eca21d7028bc6581045b22b32a4.tar.gz
Use av_get_pix_fmt() instead of the deprecated avcodec_get_pix_fmt()
function. Originally committed as revision 21550 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'ffmpeg.c')
-rw-r--r--ffmpeg.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/ffmpeg.c b/ffmpeg.c
index e82194f311..9f19b06e5d 100644
--- a/ffmpeg.c
+++ b/ffmpeg.c
@@ -38,6 +38,7 @@
#include "libavcodec/audioconvert.h"
#include "libavcodec/colorspace.h"
#include "libavutil/fifo.h"
+#include "libavutil/pixdesc.h"
#include "libavutil/avstring.h"
#include "libavformat/os_support.h"
@@ -2581,7 +2582,7 @@ static void opt_frame_pad_right(const char *arg)
static void opt_frame_pix_fmt(const char *arg)
{
if (strcmp(arg, "list")) {
- frame_pix_fmt = avcodec_get_pix_fmt(arg);
+ frame_pix_fmt = av_get_pix_fmt(arg);
if (frame_pix_fmt == PIX_FMT_NONE) {
fprintf(stderr, "Unknown pixel format requested: %s\n", arg);
av_exit(1);