History

avcodec: Remove deprecated VBV delay field

Deprecated in 2507b5dd674834be7261772996f47ae3b95cca69.

Andreas Rheinhardt committed 5 years ago

Commit eb6ea941 parent 4a66fe13 files · +0 −22Browse files

Unified · Split

3 files
  1. libavcodec/avcodec.h +0 −13
  2. libavcodec/mpegvideo_enc.c +0 −6
  3. libavcodec/version.h +0 −3
libavcodec/avcodec.h+0−13
@@ -1854,19 +1854,6 @@ typedef struct AVCodecContext { · 1853 unmodified lines
1854 uint8_t *subtitle_header;1854 uint8_t *subtitle_header;
1855 int subtitle_header_size;1855 int subtitle_header_size;
1856 1856
1857#if FF_API_VBV_DELAY
1858 /**
1859 * VBV delay coded in the last frame (in periods of a 27 MHz clock).
1860 * Used for compliant TS muxing.
1861 * - encoding: Set by libavcodec.
1862 * - decoding: unused.
1863 * @deprecated this value is now exported as a part of
1864 * AV_PKT_DATA_CPB_PROPERTIES packet side data
1865 */
1866 attribute_deprecated
1867 uint64_t vbv_delay;
1868#endif
1869
1870 /**1857 /**
1871 * Audio only. The number of "priming" samples (padding) inserted by the1858 * Audio only. The number of "priming" samples (padding) inserted by the
1872 * encoder at the beginning of the audio. I.e. this number of leading1859 * encoder at the beginning of the audio. I.e. this number of leading
libavcodec/mpegvideo_enc.c+0−6
@@ -1913,12 +1913,6 @@ vbv_retry: · 1912 unmodified lines
1913 av_freep(&props);1913 av_freep(&props);
1914 return ret;1914 return ret;
1915 }1915 }
1916
1917#if FF_API_VBV_DELAY
1918FF_DISABLE_DEPRECATION_WARNINGS
1919 avctx->vbv_delay = vbv_delay * 300;
1920FF_ENABLE_DEPRECATION_WARNINGS
1921#endif
1922 }1916 }
1923 s->total_bits += s->frame_bits;1917 s->total_bits += s->frame_bits;
1924 1918
libavcodec/version.h+0−3
@@ -54,9 +54,6 @@ · 53 unmodified lines
54#ifndef FF_API_CODED_FRAME54#ifndef FF_API_CODED_FRAME
55#define FF_API_CODED_FRAME (LIBAVCODEC_VERSION_MAJOR < 59)55#define FF_API_CODED_FRAME (LIBAVCODEC_VERSION_MAJOR < 59)
56#endif56#endif
57#ifndef FF_API_VBV_DELAY
58#define FF_API_VBV_DELAY (LIBAVCODEC_VERSION_MAJOR < 59)
59#endif
60#ifndef FF_API_NVENC_OLD_NAME57#ifndef FF_API_NVENC_OLD_NAME
61#define FF_API_NVENC_OLD_NAME (LIBAVCODEC_VERSION_MAJOR < 59)58#define FF_API_NVENC_OLD_NAME (LIBAVCODEC_VERSION_MAJOR < 59)
62#endif59#endif

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t