[FFmpeg-cvslog] timecode: drop lavc timecode on next bump.

Clément Bœsch git at videolan.org
Thu Feb 2 14:41:12 CET 2012


ffmpeg | branch: master | Clément Bœsch <clement.boesch at smartjog.com> | Mon Jan 16 17:04:04 2012 +0100| [b90d79ec1f2115ed583399739fd37a97d74f9a64] | committer: Clément Bœsch

timecode: drop lavc timecode on next bump.

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

 libavcodec/timecode.c |    6 +++++-
 libavcodec/timecode.h |    6 +++++-
 2 files changed, 10 insertions(+), 2 deletions(-)

diff --git a/libavcodec/timecode.c b/libavcodec/timecode.c
index 2e0f4a4..f9862e5 100644
--- a/libavcodec/timecode.c
+++ b/libavcodec/timecode.c
@@ -22,8 +22,13 @@
 /**
  * @file
  * Timecode helpers
+ * This *private* API is deprecated, please use the one available in libavutil instead.
  */
 
+#include "version.h"
+
+#if FF_API_OLD_TIMECODE
+
 #include <stdio.h>
 #include "timecode.h"
 #include "libavutil/log.h"
@@ -128,7 +133,6 @@ int avpriv_init_smpte_timecode(void *avcl, struct ff_timecode *tc)
     return 0;
 }
 
-#if FF_API_OLD_TIMECODE
 int ff_framenum_to_drop_timecode(int frame_num)
 {
     return avpriv_framenum_to_drop_timecode(frame_num);
diff --git a/libavcodec/timecode.h b/libavcodec/timecode.h
index bcfb0fa..8bc69e9 100644
--- a/libavcodec/timecode.h
+++ b/libavcodec/timecode.h
@@ -22,11 +22,16 @@
 /**
  * @file
  * Timecode helpers header
+ * This *private* API is deprecated, please use the one available in libavutil instead.
  */
 
 #ifndef AVCODEC_TIMECODE_H
 #define AVCODEC_TIMECODE_H
 
+#include "version.h"
+
+#if FF_API_OLD_TIMECODE
+
 #include <stdint.h>
 #include "avcodec.h"
 #include "libavutil/rational.h"
@@ -93,7 +98,6 @@ int avpriv_check_timecode_rate(void *avcl, AVRational rate, int drop);
  */
 int avpriv_init_smpte_timecode(void *avcl, struct ff_timecode *tc);
 
-#if FF_API_OLD_TIMECODE
 attribute_deprecated int ff_framenum_to_drop_timecode(int frame_num);
 attribute_deprecated uint32_t ff_framenum_to_smtpe_timecode(unsigned frame, int fps, int drop);
 attribute_deprecated int ff_init_smtpe_timecode(void *avcl, struct ff_timecode *tc);



More information about the ffmpeg-cvslog mailing list