History

avcodec: remove deprecated FF_API_TICKS_PER_FRAME

Deprecated since 2023-05-15.

James Almer committed 1 year ago

Commit 7d077231 parent c29a1cb28 files · +16 −210Browse files

Showing the changes to libavformat (2 of 28 files). Show all

Unified · Split

2 files
  1. libavformat/avformat.c +0 −11
  2. libavformat/demux.c +0 −6
libavformat/avformat.c+0−11
@@ -797,11 +797,6 @@ int avformat_transfer_internal_stream_timing_info(const AVOutputFormat *ofmt, · 796 unmodified lines
797797 : (ist->codecpar->codec_type == AVMEDIA_TYPE_AUDIO ? (AVRational){0, 1}
798798 : ist->time_base);
799799 AVRational enc_tb = ist->time_base;
800−#if FF_API_TICKS_PER_FRAME
801−FF_DISABLE_DEPRECATION_WARNINGS
802− int ticks_per_frame = dec_ctx ? dec_ctx->ticks_per_frame : 1;
803−FF_ENABLE_DEPRECATION_WARNINGS
804−#endif
805800
806801 /*
807802 * Avi is a special case here because it supports variable fps but
@@ -827,9 +822,6 @@ FF_ENABLE_DEPRECATION_WARNINGS · 19 unmodified lines
827822 (dec_ctx_framerate.num || ist->codecpar->codec_type == AVMEDIA_TYPE_AUDIO))) {
828823 enc_tb = dec_ctx_tb;
829824 enc_tb.den *= 2;
830−#if FF_API_TICKS_PER_FRAME
831− enc_tb.num *= ticks_per_frame;
832−#endif
833825 }
834826 } else if (!(ofmt->flags & AVFMT_VARIABLE_FPS)
835827 && !av_match_name(ofmt->name, "mov,mp4,3gp,3g2,psp,ipod,ismv,f4v")) {
@@ -839,9 +831,6 @@ FF_ENABLE_DEPRECATION_WARNINGS · 3 unmodified lines
839831 || (copy_tb == AVFMT_TBCF_DECODER &&
840832 (dec_ctx_framerate.num || ist->codecpar->codec_type == AVMEDIA_TYPE_AUDIO))) {
841833 enc_tb = dec_ctx_tb;
842−#if FF_API_TICKS_PER_FRAME
843− enc_tb.num *= ticks_per_frame;
844−#endif
845834 }
846835 }
847836
libavformat/demux.c+0−6
@@ -1317,12 +1317,6 @@ static int codec_close(FFStream *sti) · 1316 unmodified lines
13171317
13181318 avctx_new->pkt_timebase = sti->avctx->pkt_timebase;
13191319
1320−#if FF_API_TICKS_PER_FRAME
1321−FF_DISABLE_DEPRECATION_WARNINGS
1322− avctx_new->ticks_per_frame = sti->avctx->ticks_per_frame;
1323−FF_ENABLE_DEPRECATION_WARNINGS
1324−#endif
1325−
13261320 avcodec_free_context(&sti->avctx);
13271321 sti->avctx = avctx_new;
13281322

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