Project

General

Profile

Actions

Feature #2486

open

ffmpeg 3.x has Warning deprecated declarations

Added by anbr over 7 years ago. Updated over 7 years ago.

Status:
New
Priority:
Normal
Assignee:
-
Target version:
Start date:
03/27/2017
Due date:
% Done:

10%

Estimated time:

Description

g++ -g -O3 -Wall -Werror=overloaded-virtual -Wno-parentheses -fPIC -c -DHAVE_SWSCALER -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -Ivdr-2.2.0/include -Ivdr-2.2.0/include -I. -Ivdr-2.2.0/include -I. -I/usr/include/x86_64-linux-gnu encode.c
encode.c: In member function ‘bool cEncode::ConvertImageToFrame(AVFrame*)’:
encode.c:174:9: warning: ‘int avpicture_fill(AVPicture*, const uint8_t*, AVPixelFormat, int, int)’ is deprecated [-Wdeprecated-declarations]
     if(!avpicture_fill((AVPicture*)m_pImageFilled,
         ^~~~~~~~~~~~~~
In file included from encode.h:16:0,
                 from encode.c:22:
/usr/include/x86_64-linux-gnu/libavcodec/avcodec.h:5453:5: note: declared here
 int avpicture_fill(AVPicture *picture, const uint8_t *ptr,
     ^~~~~~~~~~~~~~
encode.c:176:74: warning: ‘int avpicture_fill(AVPicture*, const uint8_t*, AVPixelFormat, int, int)’ is deprecated [-Wdeprecated-declarations]
                                     AV_PIX_FMT_RGB24, m_nWidth, m_nHeight))
                                                                          ^
In file included from encode.h:16:0,
                 from encode.c:22:
/usr/include/x86_64-linux-gnu/libavcodec/avcodec.h:5453:5: note: declared here
 int avpicture_fill(AVPicture *picture, const uint8_t *ptr,
     ^~~~~~~~~~~~~~
encode.c:198:66: warning: ‘AVPicture::data’ is deprecated [-Wdeprecated-declarations]
      result=sws_scale(convert_ctx, ((AVPicture*)m_pImageFilled)->data,
                                                                  ^~~~
In file included from encode.h:16:0,
                 from encode.c:22:
/usr/include/x86_64-linux-gnu/libavcodec/avcodec.h:3892:39: note: declared here
     uint8_t *data[AV_NUM_DATA_POINTERS];    ///< pointers to the image data planes
                                       ^
encode.c:198:66: warning: ‘AVPicture::data’ is deprecated [-Wdeprecated-declarations]
      result=sws_scale(convert_ctx, ((AVPicture*)m_pImageFilled)->data,
                                                                  ^~~~
In file included from encode.h:16:0,
                 from encode.c:22:
/usr/include/x86_64-linux-gnu/libavcodec/avcodec.h:3892:39: note: declared here
     uint8_t *data[AV_NUM_DATA_POINTERS];    ///< pointers to the image data planes
                                       ^
encode.c:198:66: warning: ‘AVPicture::data’ is deprecated [-Wdeprecated-declarations]
      result=sws_scale(convert_ctx, ((AVPicture*)m_pImageFilled)->data,
                                                                  ^~~~
In file included from encode.h:16:0,
                 from encode.c:22:
/usr/include/x86_64-linux-gnu/libavcodec/avcodec.h:3892:39: note: declared here
     uint8_t *data[AV_NUM_DATA_POINTERS];    ///< pointers to the image data planes
                                       ^
encode.c:199:69: warning: ‘AVPicture::linesize’ is deprecated [-Wdeprecated-declarations]
                                       ((AVPicture*)m_pImageFilled)->linesize,
                                                                     ^~~~~~~~
In file included from encode.h:16:0,
                 from encode.c:22:
/usr/include/x86_64-linux-gnu/libavcodec/avcodec.h:3894:38: note: declared here
     int linesize[AV_NUM_DATA_POINTERS];     ///< number of bytes per line
                                      ^
encode.c:199:69: warning: ‘AVPicture::linesize’ is deprecated [-Wdeprecated-declarations]
                                       ((AVPicture*)m_pImageFilled)->linesize,
                                                                     ^~~~~~~~
In file included from encode.h:16:0,
                 from encode.c:22:
/usr/include/x86_64-linux-gnu/libavcodec/avcodec.h:3894:38: note: declared here
     int linesize[AV_NUM_DATA_POINTERS];     ///< number of bytes per line
                                      ^
encode.c:199:69: warning: ‘AVPicture::linesize’ is deprecated [-Wdeprecated-declarations]
                                       ((AVPicture*)m_pImageFilled)->linesize,
                                                                     ^~~~~~~~
In file included from encode.h:16:0,
                 from encode.c:22:
/usr/include/x86_64-linux-gnu/libavcodec/avcodec.h:3894:38: note: declared here
     int linesize[AV_NUM_DATA_POINTERS];     ///< number of bytes per line
                                      ^
encode.c: In member function ‘bool cEncode::EncodeFrames(AVCodecContext*, AVFrame*)’:
encode.c:232:19: warning: ‘int avcodec_encode_video2(AVCodecContext*, AVPacket*, const AVFrame*, int*)’ is deprecated [-Wdeprecated-declarations]
         int err = avcodec_encode_video2(context, &outpkt,frame, &got_output);
                   ^~~~~~~~~~~~~~~~~~~~~
In file included from encode.h:16:0,
                 from encode.c:22:
/usr/include/x86_64-linux-gnu/libavcodec/avcodec.h:5323:5: note: declared here
 int avcodec_encode_video2(AVCodecContext *avctx, AVPacket *avpkt,
     ^~~~~~~~~~~~~~~~~~~~~
encode.c:232:76: warning: ‘int avcodec_encode_video2(AVCodecContext*, AVPacket*, const AVFrame*, int*)’ is deprecated [-Wdeprecated-declarations]
         int err = avcodec_encode_video2(context, &outpkt,frame, &got_output);
                                                                            ^
In file included from encode.h:16:0,
                 from encode.c:22:
/usr/include/x86_64-linux-gnu/libavcodec/avcodec.h:5323:5: note: declared here
 int avcodec_encode_video2(AVCodecContext *avctx, AVPacket *avpkt,
     ^~~~~~~~~~~~~~~~~~~~~
Actions #1

Updated by anbr over 7 years ago

  • % Done changed from 0 to 10

avcodec_encode_video2 e108a336

Actions

Also available in: Atom PDF