transcode-1.1.7-libav-9.patch 1.4 KB

1234567891011121314151617181920212223242526272829303132
  1. --- import/probe_ffmpeg.c.original 2013-04-22 20:04:51.058081388 +0200
  2. +++ import/probe_ffmpeg.c 2013-04-22 20:05:25.744081897 +0200
  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. --- import/decode_lavc.c.original 2013-04-22 20:06:17.260082652 +0200
  12. +++ import/decode_lavc.c 2013-04-22 20:07:47.564083975 +0200
  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;