Menu

#207 sox uses deprecated symbols of ffmpeg

closed-wont-fix
nobody
None
5
2013-02-07
2012-05-30
Funda Wang
No

sox deprecated symbols of ffmpeg, causing build failure with ffmpeg 0.11:

ffmpeg.c: In function 'stream_component_open':
ffmpeg.c:96:6: error: 'AVCodecContext' has no member named 'error_recognition'
ffmpeg.c: In function 'audio_decode_frame':
ffmpeg.c:138:7: warning: 'avcodec_decode_audio3' is deprecated (declared at /usr/include/libavcodec/avcodec.h:3658) [-Wdeprecated-declarations]
ffmpeg.c: In function 'startread':
ffmpeg.c:160:3: error: unknown type name 'AVFormatParameters'
ffmpeg.c:175:3: warning: implicit declaration of function 'avformat_open_file' [-Wimplicit-function-declaration]
ffmpeg.c: In function 'read_samples':
ffmpeg.c:234:4: warning: implicit declaration of function 'url_ferror' [-Wimplicit-function-declaration]
ffmpeg.c: In function 'stopread':
ffmpeg.c:259:5: warning: 'av_close_input_file' is deprecated (declared at /usr/include/libavformat/avformat.h:1533) [-Wdeprecated-declarations]
ffmpeg.c: In function 'add_audio_stream':
ffmpeg.c:275:3: warning: 'av_new_stream' is deprecated (declared at /usr/include/libavformat/avformat.h:1557) [-Wdeprecated-declarations]
ffmpeg.c: In function 'startwrite':
ffmpeg.c:378:3: warning: implicit declaration of function 'av_set_parameters' [-Wimplicit-function-declaration]
ffmpeg.c:394:5: warning: implicit declaration of function 'url_fopen' [-Wimplicit-function-declaration]
ffmpeg.c:394:52: error: 'URL_WRONLY' undeclared (first use in this function)
ffmpeg.c:394:52: note: each undeclared identifier is reported only once for each function it appears in
ffmpeg.c:401:3: warning: implicit declaration of function 'av_write_header' [-Wimplicit-function-declaration]
ffmpeg.c: In function 'write_samples':
ffmpeg.c:431:7: warning: 'avcodec_encode_audio' is deprecated (declared at /usr/include/libavcodec/avcodec.h:4015) [-Wdeprecated-declarations]
ffmpeg.c: In function 'stopwrite':
ffmpeg.c:481:5: warning: implicit declaration of function 'url_fclose' [-Wimplicit-function-declaration]

Detailed build log attached.

Discussion

  • Funda Wang

    Funda Wang - 2012-05-30

    build.log

     
  • Cristian Morales Vega

    In fact to reach that point you must patch configure since it detects ffmpeg searching for av_open_input_file, that is not available any more (use avformat_open_input).

     
  • Ulrich Klauer

    Ulrich Klauer - 2013-02-07
    • status: open --> closed-wont-fix
     
  • Ulrich Klauer

    Ulrich Klauer - 2013-02-07

    The ffmpeg format handler has been deprecated and will be removed from the next release.

     

Log in to post a comment.