[FFmpeg-cvslog] Merge commit '0337adfab5d14a17bf4d5060aa0425e4049a9862'

James Almer git at videolan.org
Sun Oct 22 04:55:26 EEST 2017


ffmpeg | branch: master | James Almer <jamrial at gmail.com> | Sat Oct 21 22:53:41 2017 -0300| [24a8603a8e0f946e18940119c88d5f77134297ed] | committer: James Almer

Merge commit '0337adfab5d14a17bf4d5060aa0425e4049a9862'

* commit '0337adfab5d14a17bf4d5060aa0425e4049a9862':
  lavc: Drop deprecated missing sample log function

Merged-by: James Almer <jamrial at gmail.com>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=24a8603a8e0f946e18940119c88d5f77134297ed
---

 libavcodec/avcodec.h | 30 ------------------------------
 libavcodec/utils.c   | 29 -----------------------------
 libavcodec/version.h |  3 ---
 3 files changed, 62 deletions(-)

diff --git a/libavcodec/avcodec.h b/libavcodec/avcodec.h
index 18c3e3ea1e..42d230ea96 100644
--- a/libavcodec/avcodec.h
+++ b/libavcodec/avcodec.h
@@ -6282,36 +6282,6 @@ void av_fast_padded_mallocz(void *ptr, unsigned int *size, size_t min_size);
  */
 unsigned int av_xiphlacing(unsigned char *s, unsigned int v);
 
-#if FF_API_MISSING_SAMPLE
-/**
- * Log a generic warning message about a missing feature. This function is
- * intended to be used internally by FFmpeg (libavcodec, libavformat, etc.)
- * only, and would normally not be used by applications.
- * @param[in] avc a pointer to an arbitrary struct of which the first field is
- * a pointer to an AVClass struct
- * @param[in] feature string containing the name of the missing feature
- * @param[in] want_sample indicates if samples are wanted which exhibit this feature.
- * If want_sample is non-zero, additional verbiage will be added to the log
- * message which tells the user how to report samples to the development
- * mailing list.
- * @deprecated Use avpriv_report_missing_feature() instead.
- */
-attribute_deprecated
-void av_log_missing_feature(void *avc, const char *feature, int want_sample);
-
-/**
- * Log a generic warning message asking for a sample. This function is
- * intended to be used internally by FFmpeg (libavcodec, libavformat, etc.)
- * only, and would normally not be used by applications.
- * @param[in] avc a pointer to an arbitrary struct of which the first field is
- * a pointer to an AVClass struct
- * @param[in] msg string containing an optional message, or NULL if no message
- * @deprecated Use avpriv_request_sample() instead.
- */
-attribute_deprecated
-void av_log_ask_for_sample(void *avc, const char *msg, ...) av_printf_format(2, 3);
-#endif /* FF_API_MISSING_SAMPLE */
-
 /**
  * Register the hardware accelerator hwaccel.
  */
diff --git a/libavcodec/utils.c b/libavcodec/utils.c
index 9551f312e7..95786e8b54 100644
--- a/libavcodec/utils.c
+++ b/libavcodec/utils.c
@@ -1911,35 +1911,6 @@ int ff_match_2uint16(const uint16_t(*tab)[2], int size, int a, int b)
     return i;
 }
 
-#if FF_API_MISSING_SAMPLE
-FF_DISABLE_DEPRECATION_WARNINGS
-void av_log_missing_feature(void *avc, const char *feature, int want_sample)
-{
-    av_log(avc, AV_LOG_WARNING, "%s is not implemented. Update your FFmpeg "
-            "version to the newest one from Git. If the problem still "
-            "occurs, it means that your file has a feature which has not "
-            "been implemented.\n", feature);
-    if(want_sample)
-        av_log_ask_for_sample(avc, NULL);
-}
-
-void av_log_ask_for_sample(void *avc, const char *msg, ...)
-{
-    va_list argument_list;
-
-    va_start(argument_list, msg);
-
-    if (msg)
-        av_vlog(avc, AV_LOG_WARNING, msg, argument_list);
-    av_log(avc, AV_LOG_WARNING, "If you want to help, upload a sample "
-            "of this file to ftp://upload.ffmpeg.org/incoming/ "
-            "and contact the ffmpeg-devel mailing list. (ffmpeg-devel at ffmpeg.org)\n");
-
-    va_end(argument_list);
-}
-FF_ENABLE_DEPRECATION_WARNINGS
-#endif /* FF_API_MISSING_SAMPLE */
-
 static AVHWAccel *first_hwaccel = NULL;
 static AVHWAccel **last_hwaccel = &first_hwaccel;
 
diff --git a/libavcodec/version.h b/libavcodec/version.h
index 9f1543a6aa..cd2ca5f1a2 100644
--- a/libavcodec/version.h
+++ b/libavcodec/version.h
@@ -60,9 +60,6 @@
 #ifndef FF_API_AVCODEC_RESAMPLE
 #define FF_API_AVCODEC_RESAMPLE  FF_API_AUDIO_CONVERT
 #endif
-#ifndef FF_API_MISSING_SAMPLE
-#define FF_API_MISSING_SAMPLE    (LIBAVCODEC_VERSION_MAJOR < 58)
-#endif
 #ifndef FF_API_LOWRES
 #define FF_API_LOWRES            (LIBAVCODEC_VERSION_MAJOR < 59)
 #endif


======================================================================

diff --cc libavcodec/utils.c
index 9551f312e7,8a481dd025..95786e8b54
--- a/libavcodec/utils.c
+++ b/libavcodec/utils.c
@@@ -1911,37 -1359,7 +1911,8 @@@ int ff_match_2uint16(const uint16_t(*ta
      return i;
  }
  
- #if FF_API_MISSING_SAMPLE
- FF_DISABLE_DEPRECATION_WARNINGS
- void av_log_missing_feature(void *avc, const char *feature, int want_sample)
- {
-     av_log(avc, AV_LOG_WARNING, "%s is not implemented. Update your FFmpeg "
-             "version to the newest one from Git. If the problem still "
-             "occurs, it means that your file has a feature which has not "
-             "been implemented.\n", feature);
-     if(want_sample)
-         av_log_ask_for_sample(avc, NULL);
- }
- 
- void av_log_ask_for_sample(void *avc, const char *msg, ...)
- {
-     va_list argument_list;
- 
-     va_start(argument_list, msg);
- 
-     if (msg)
-         av_vlog(avc, AV_LOG_WARNING, msg, argument_list);
-     av_log(avc, AV_LOG_WARNING, "If you want to help, upload a sample "
-             "of this file to ftp://upload.ffmpeg.org/incoming/ "
-             "and contact the ffmpeg-devel mailing list. (ffmpeg-devel at ffmpeg.org)\n");
- 
-     va_end(argument_list);
- }
- FF_ENABLE_DEPRECATION_WARNINGS
- #endif /* FF_API_MISSING_SAMPLE */
- 
  static AVHWAccel *first_hwaccel = NULL;
 +static AVHWAccel **last_hwaccel = &first_hwaccel;
  
  void av_register_hwaccel(AVHWAccel *hwaccel)
  {
diff --cc libavcodec/version.h
index 9f1543a6aa,95b8ed6391..cd2ca5f1a2
--- a/libavcodec/version.h
+++ b/libavcodec/version.h
@@@ -45,26 -45,10 +45,23 @@@
   * FF_API_* defines may be placed below to indicate public API that will be
   * dropped at a future version bump. The defines themselves are not part of
   * the public API and may change, break or disappear at any time.
 + *
 + * @note, when bumping the major version it is recommended to manually
 + * disable each FF_API_* in its own commit instead of disabling them all
 + * at once through the bump. This improves the git bisect-ability of the change.
   */
  
 +#ifndef FF_API_VIMA_DECODER
 +#define FF_API_VIMA_DECODER     (LIBAVCODEC_VERSION_MAJOR < 58)
 +#endif
 +#ifndef FF_API_AUDIO_CONVERT
 +#define FF_API_AUDIO_CONVERT     (LIBAVCODEC_VERSION_MAJOR < 58)
 +#endif
 +#ifndef FF_API_AVCODEC_RESAMPLE
 +#define FF_API_AVCODEC_RESAMPLE  FF_API_AUDIO_CONVERT
 +#endif
- #ifndef FF_API_MISSING_SAMPLE
- #define FF_API_MISSING_SAMPLE    (LIBAVCODEC_VERSION_MAJOR < 58)
- #endif
  #ifndef FF_API_LOWRES
 -#define FF_API_LOWRES            (LIBAVCODEC_VERSION_MAJOR < 58)
 +#define FF_API_LOWRES            (LIBAVCODEC_VERSION_MAJOR < 59)
  #endif
  #ifndef FF_API_CAP_VDPAU
  #define FF_API_CAP_VDPAU         (LIBAVCODEC_VERSION_MAJOR < 58)



More information about the ffmpeg-cvslog mailing list