transcode-1.1.7-libav-9.patch 1.2 KB

1234567891011121314151617181920212223242526272829303132
  1. --- a/import/probe_ffmpeg.c
  2. +++ b/import/probe_ffmpeg.c
  3. @@ -109,7 +109,7 @@ void probe_ffmpeg(info_t *ipipe)
  4. return;
  5. }
  6. - ret = av_find_stream_info(lavf_dmx_context);
  7. + ret = avformat_find_stream_info(lavf_dmx_context, NULL);
  8. if (ret < 0) {
  9. tc_log_error(__FILE__, "unable to fetch informations from '%s'"
  10. " (libavformat failure)",
  11. --- a/import/decode_lavc.c
  12. +++ b/import/decode_lavc.c
  13. @@ -170,7 +170,7 @@ void decode_lavc(decode_t *decode)
  14. // Set these to the expected values so that ffmpeg's decoder can
  15. // properly detect interlaced input.
  16. - lavc_dec_context = avcodec_alloc_context();
  17. + lavc_dec_context = avcodec_alloc_context3(NULL);
  18. if (lavc_dec_context == NULL) {
  19. tc_log_error(__FILE__, "Could not allocate enough memory.");
  20. goto decoder_error;
  21. @@ -186,7 +186,7 @@ void decode_lavc(decode_t *decode)
  22. lavc_dec_context->error_concealment = 3;
  23. lavc_dec_context->workaround_bugs = FF_BUG_AUTODETECT;
  24. - if (avcodec_open(lavc_dec_context, lavc_dec_codec) < 0) {
  25. + if (avcodec_open2(lavc_dec_context, lavc_dec_codec, NULL) < 0) {
  26. tc_log_error(__FILE__, "Could not initialize the '%s' codec.",
  27. codec->name);
  28. goto decoder_error;