History

avformat/internal: Move FF_FMT_INIT_CLEANUP to demux.h

and rename it to FF_INFMT_INIT_CLEANUP. This flag is demuxer-only, so this is the more appropriate place for it. This does not preclude adding internal flags common to both demuxer and muxer in the future.

Andreas Rheinhardt committed 2 years ago

Commit 4a4dcde1 parent 27af88f65 files · +74 −74Browse files

Unified · Split

65 files
  1. libavdevice/lavfi.c +1 −1
  2. libavformat/4xm.c +1 −1
  3. libavformat/aadec.c +1 −1
  4. libavformat/aaxdec.c +1 −1
  5. libavformat/ape.c +1 −1
  6. libavformat/aqtitledec.c +1 −1
  7. libavformat/assdec.c +1 −1
  8. libavformat/av1dec.c +2 −2
  9. libavformat/avidec.c +1 −1
  10. libavformat/brstm.c +2 −2
  11. libavformat/concatdec.c +1 −1
  12. libavformat/dashdec.c +1 −1
  13. libavformat/demux.c +1 −1
  14. libavformat/demux.h +7 −1
  15. libavformat/dvdvideodec.c +1 −1
  16. libavformat/evcdec.c +1 −1
  17. libavformat/hls.c +1 −1
  18. libavformat/iamfdec.c +1 −1
  19. libavformat/icodec.c +1 −1
  20. libavformat/imfdec.c +1 −1
  21. libavformat/internal.h +0 −6
  22. libavformat/jacosubdec.c +1 −1
  23. libavformat/jpegxl_anim_dec.c +1 −1
  24. libavformat/jvdec.c +1 −1
  25. libavformat/lafdec.c +1 −1
  26. libavformat/libgme.c +1 −1
  27. libavformat/libopenmpt.c +1 −1
  28. libavformat/lrcdec.c +1 −1
  29. libavformat/matroskadec.c +2 −2
  30. libavformat/mccdec.c +1 −1
  31. libavformat/microdvddec.c +1 −1
  32. libavformat/mlvdec.c +1 −1
  33. libavformat/moflex.c +1 −1
  34. libavformat/mov.c +1 −1
  35. libavformat/mpeg.c +1 −1
  36. libavformat/mpl2dec.c +1 −1
  37. libavformat/mpsubdec.c +1 −1
  38. libavformat/mxfdec.c +1 −1
  39. libavformat/nsvdec.c +1 −1
  40. libavformat/nutdec.c +1 −1
  41. libavformat/oggdec.c +1 −1
  42. libavformat/omadec.c +1 −1
  43. libavformat/paf.c +1 −1
  44. libavformat/pdvdec.c +1 −1
  45. libavformat/pjsdec.c +1 −1
  46. libavformat/pp_bnk.c +1 −1
  47. libavformat/realtextdec.c +1 −1
  48. libavformat/rmdec.c +2 −2
  49. libavformat/samidec.c +1 −1
  50. libavformat/sccdec.c +1 −1
  51. libavformat/scd.c +1 −1
  52. libavformat/segafilm.c +1 −1
  53. libavformat/sierravmd.c +1 −1
  54. libavformat/srtdec.c +1 −1
  55. libavformat/stldec.c +1 −1
  56. libavformat/subviewer1dec.c +1 −1
  57. libavformat/subviewerdec.c +1 −1
  58. libavformat/tedcaptionsdec.c +1 −1
  59. libavformat/tiertexseq.c +1 −1
  60. libavformat/vapoursynth.c +1 −1
  61. libavformat/vividas.c +1 −1
  62. libavformat/vplayerdec.c +1 −1
  63. libavformat/wc3movie.c +1 −1
  64. libavformat/webvttdec.c +1 −1
  65. libavformat/xmv.c +1 −1
libavdevice/lavfi.c+1−1
@@ -503,5 +503,5 @@ const FFInputFormat ff_lavfi_demuxer = { · 502 unmodified lines
503503 .read_header = lavfi_read_header,
504504 .read_packet = lavfi_read_packet,
505505 .read_close = lavfi_read_close,
506− .flags_internal = FF_FMT_INIT_CLEANUP,
506+ .flags_internal = FF_INFMT_FLAG_INIT_CLEANUP,
507507 };
libavformat/4xm.c+1−1
@@ -401,7 +401,7 @@ const FFInputFormat ff_fourxm_demuxer = { · 400 unmodified lines
401401 .p.name = "4xm",
402402 .p.long_name = NULL_IF_CONFIG_SMALL("4X Technologies"),
403403 .priv_data_size = sizeof(FourxmDemuxContext),
404− .flags_internal = FF_FMT_INIT_CLEANUP,
404+ .flags_internal = FF_INFMT_FLAG_INIT_CLEANUP,
405405 .read_probe = fourxm_probe,
406406 .read_header = fourxm_read_header,
407407 .read_packet = fourxm_read_packet,
libavformat/aadec.c+1−1
@@ -383,5 +383,5 @@ const FFInputFormat ff_aa_demuxer = { · 382 unmodified lines
383383 .read_packet = aa_read_packet,
384384 .read_seek = aa_read_seek,
385385 .read_close = aa_read_close,
386− .flags_internal = FF_FMT_INIT_CLEANUP,
386+ .flags_internal = FF_INFMT_FLAG_INIT_CLEANUP,
387387 };
libavformat/aaxdec.c+1−1
@@ -389,7 +389,7 @@ const FFInputFormat ff_aax_demuxer = { · 388 unmodified lines
389389 .p.extensions = "aax",
390390 .p.flags = AVFMT_GENERIC_INDEX,
391391 .priv_data_size = sizeof(AAXContext),
392− .flags_internal = FF_FMT_INIT_CLEANUP,
392+ .flags_internal = FF_INFMT_FLAG_INIT_CLEANUP,
393393 .read_probe = aax_probe,
394394 .read_header = aax_read_header,
395395 .read_packet = aax_read_packet,
libavformat/ape.c+1−1
@@ -450,7 +450,7 @@ const FFInputFormat ff_ape_demuxer = { · 449 unmodified lines
450450 .p.long_name = NULL_IF_CONFIG_SMALL("Monkey's Audio"),
451451 .p.extensions = "ape,apl,mac",
452452 .priv_data_size = sizeof(APEContext),
453− .flags_internal = FF_FMT_INIT_CLEANUP,
453+ .flags_internal = FF_INFMT_FLAG_INIT_CLEANUP,
454454 .read_probe = ape_probe,
455455 .read_header = ape_read_header,
456456 .read_packet = ape_read_packet,
libavformat/aqtitledec.c+1−1
@@ -142,7 +142,7 @@ const FFInputFormat ff_aqtitle_demuxer = { · 141 unmodified lines
142142 .p.extensions = "aqt",
143143 .p.priv_class = &aqt_class,
144144 .priv_data_size = sizeof(AQTitleContext),
145− .flags_internal = FF_FMT_INIT_CLEANUP,
145+ .flags_internal = FF_INFMT_FLAG_INIT_CLEANUP,
146146 .read_probe = aqt_probe,
147147 .read_header = aqt_read_header,
148148 .read_packet = aqt_read_packet,
libavformat/assdec.c+1−1
@@ -164,7 +164,7 @@ end: · 163 unmodified lines
164164 const FFInputFormat ff_ass_demuxer = {
165165 .p.name = "ass",
166166 .p.long_name = NULL_IF_CONFIG_SMALL("SSA (SubStation Alpha) subtitle"),
167− .flags_internal = FF_FMT_INIT_CLEANUP,
167+ .flags_internal = FF_INFMT_FLAG_INIT_CLEANUP,
168168 .priv_data_size = sizeof(ASSContext),
169169 .read_probe = ass_probe,
170170 .read_header = ass_read_header,
libavformat/av1dec.c+2−2
@@ -289,7 +289,7 @@ const FFInputFormat ff_av1_demuxer = { · 288 unmodified lines
289289 .p.flags = AVFMT_GENERIC_INDEX | AVFMT_NOTIMESTAMPS,
290290 .p.priv_class = &av1_demuxer_class,
291291 .priv_data_size = sizeof(AV1DemuxContext),
292− .flags_internal = FF_FMT_INIT_CLEANUP,
292+ .flags_internal = FF_INFMT_FLAG_INIT_CLEANUP,
293293 .read_probe = annexb_probe,
294294 .read_header = av1_read_header,
295295 .read_packet = annexb_read_packet,
@@ -434,7 +434,7 @@ const FFInputFormat ff_obu_demuxer = { · 138 unmodified lines
434434 .p.flags = AVFMT_GENERIC_INDEX | AVFMT_NO_BYTE_SEEK | AVFMT_NOTIMESTAMPS,
435435 .p.priv_class = &av1_demuxer_class,
436436 .priv_data_size = sizeof(AV1DemuxContext),
437− .flags_internal = FF_FMT_INIT_CLEANUP,
437+ .flags_internal = FF_INFMT_FLAG_INIT_CLEANUP,
438438 .read_probe = obu_probe,
439439 .read_header = av1_read_header,
440440 .read_packet = obu_read_packet,
libavformat/avidec.c+1−1
@@ -2022,7 +2022,7 @@ const FFInputFormat ff_avi_demuxer = { · 2021 unmodified lines
20222022 .p.extensions = "avi",
20232023 .p.priv_class = &demuxer_class,
20242024 .priv_data_size = sizeof(AVIContext),
2025− .flags_internal = FF_FMT_INIT_CLEANUP,
2025+ .flags_internal = FF_INFMT_FLAG_INIT_CLEANUP,
20262026 .read_probe = avi_probe,
20272027 .read_header = avi_read_header,
20282028 .read_packet = avi_read_packet,
libavformat/brstm.c+2−2
@@ -472,7 +472,7 @@ const FFInputFormat ff_brstm_demuxer = { · 471 unmodified lines
472472 .p.long_name = NULL_IF_CONFIG_SMALL("BRSTM (Binary Revolution Stream)"),
473473 .p.extensions = "brstm",
474474 .priv_data_size = sizeof(BRSTMDemuxContext),
475− .flags_internal = FF_FMT_INIT_CLEANUP,
475+ .flags_internal = FF_INFMT_FLAG_INIT_CLEANUP,
476476 .read_probe = probe,
477477 .read_header = read_header,
478478 .read_packet = read_packet,
@@ -485,7 +485,7 @@ const FFInputFormat ff_bfstm_demuxer = { · 6 unmodified lines
485485 .p.long_name = NULL_IF_CONFIG_SMALL("BFSTM (Binary Cafe Stream)"),
486486 .p.extensions = "bfstm,bcstm",
487487 .priv_data_size = sizeof(BRSTMDemuxContext),
488− .flags_internal = FF_FMT_INIT_CLEANUP,
488+ .flags_internal = FF_INFMT_FLAG_INIT_CLEANUP,
489489 .read_probe = probe_bfstm,
490490 .read_header = read_header,
491491 .read_packet = read_packet,
libavformat/concatdec.c+1−1
@@ -947,7 +947,7 @@ const FFInputFormat ff_concat_demuxer = { · 946 unmodified lines
947947 .p.long_name = NULL_IF_CONFIG_SMALL("Virtual concatenation script"),
948948 .p.priv_class = &concat_class,
949949 .priv_data_size = sizeof(ConcatContext),
950− .flags_internal = FF_FMT_INIT_CLEANUP,
950+ .flags_internal = FF_INFMT_FLAG_INIT_CLEANUP,
951951 .read_probe = concat_probe,
952952 .read_header = concat_read_header,
953953 .read_packet = concat_read_packet,
libavformat/dashdec.c+1−1
@@ -2361,7 +2361,7 @@ const FFInputFormat ff_dash_demuxer = { · 2360 unmodified lines
23612361 .p.priv_class = &dash_class,
23622362 .p.flags = AVFMT_NO_BYTE_SEEK,
23632363 .priv_data_size = sizeof(DASHContext),
2364− .flags_internal = FF_FMT_INIT_CLEANUP,
2364+ .flags_internal = FF_INFMT_FLAG_INIT_CLEANUP,
23652365 .read_probe = dash_probe,
23662366 .read_header = dash_read_header,
23672367 .read_packet = dash_read_packet,
libavformat/demux.c+1−1
@@ -302,7 +302,7 @@ int avformat_open_input(AVFormatContext **ps, const char *filename, · 301 unmodified lines
302302
303303 if (ffifmt(s->iformat)->read_header)
304304 if ((ret = ffifmt(s->iformat)->read_header(s)) < 0) {
305− if (ffifmt(s->iformat)->flags_internal & FF_FMT_INIT_CLEANUP)
305+ if (ffifmt(s->iformat)->flags_internal & FF_INFMT_FLAG_INIT_CLEANUP)
306306 goto close;
307307 goto fail;
308308 }
libavformat/demux.h+7−1
@@ -28,6 +28,12 @@ · 27 unmodified lines
2828
2929 struct AVDeviceInfoList;
3030
31+/**
32+ * For an FFInputFormat with this flag set read_close() needs to be called
33+ * by the caller upon read_header() failure.
34+ */
35+#define FF_INFMT_FLAG_INIT_CLEANUP (1 << 0)
36+
3137 typedef struct FFInputFormat {
3238 /**
3339 * The public AVInputFormat. See avformat.h for it.
@@ -45,7 +51,7 @@ typedef struct FFInputFormat { · 11 unmodified lines
4551 int priv_data_size;
4652
4753 /**
48− * Internal flags. See FF_FMT_FLAG_* in internal.h.
54+ * Internal flags. See FF_INFMT_FLAG_* above and FF_FMT_FLAG_* in internal.h.
4955 */
5056 int flags_internal;
5157
libavformat/dvdvideodec.c+1−1
@@ -1705,7 +1705,7 @@ const FFInputFormat ff_dvdvideo_demuxer = { · 1704 unmodified lines
17051705 .p.flags = AVFMT_NOFILE | AVFMT_SHOW_IDS | AVFMT_TS_DISCONT |
17061706 AVFMT_NO_BYTE_SEEK | AVFMT_NOGENSEARCH | AVFMT_NOBINSEARCH,
17071707 .priv_data_size = sizeof(DVDVideoDemuxContext),
1708− .flags_internal = FF_FMT_INIT_CLEANUP,
1708+ .flags_internal = FF_INFMT_FLAG_INIT_CLEANUP,
17091709 .read_close = dvdvideo_close,
17101710 .read_header = dvdvideo_read_header,
17111711 .read_packet = dvdvideo_read_packet
libavformat/evcdec.c+1−1
@@ -212,7 +212,7 @@ const FFInputFormat ff_evc_demuxer = { · 211 unmodified lines
212212 .read_header = evc_read_header, // annexb_read_header
213213 .read_packet = evc_read_packet, // annexb_read_packet
214214 .read_close = evc_read_close,
215− .flags_internal = FF_FMT_INIT_CLEANUP,
215+ .flags_internal = FF_INFMT_FLAG_INIT_CLEANUP,
216216 .raw_codec_id = AV_CODEC_ID_EVC,
217217 .priv_data_size = sizeof(EVCDemuxContext),
218218 };
libavformat/hls.c+1−1
@@ -2602,7 +2602,7 @@ const FFInputFormat ff_hls_demuxer = { · 2601 unmodified lines
26022602 .p.priv_class = &hls_class,
26032603 .p.flags = AVFMT_NOGENSEARCH | AVFMT_TS_DISCONT | AVFMT_NO_BYTE_SEEK,
26042604 .priv_data_size = sizeof(HLSContext),
2605− .flags_internal = FF_FMT_INIT_CLEANUP,
2605+ .flags_internal = FF_INFMT_FLAG_INIT_CLEANUP,
26062606 .read_probe = hls_probe,
26072607 .read_header = hls_read_header,
26082608 .read_packet = hls_read_packet,
libavformat/iamfdec.c+1−1
@@ -184,7 +184,7 @@ const FFInputFormat ff_iamf_demuxer = { · 183 unmodified lines
184184 .p.extensions = "iamf",
185185 .p.flags = AVFMT_GENERIC_INDEX | AVFMT_NO_BYTE_SEEK | AVFMT_NOTIMESTAMPS | AVFMT_SHOW_IDS,
186186 .priv_data_size = sizeof(IAMFDemuxContext),
187− .flags_internal = FF_FMT_INIT_CLEANUP,
187+ .flags_internal = FF_INFMT_FLAG_INIT_CLEANUP,
188188 .read_probe = iamf_probe,
189189 .read_header = iamf_read_header,
190190 .read_packet = iamf_read_packet,
libavformat/icodec.c+1−1
@@ -222,7 +222,7 @@ const FFInputFormat ff_ico_demuxer = { · 221 unmodified lines
222222 .p.long_name = NULL_IF_CONFIG_SMALL("Microsoft Windows ICO"),
223223 .p.flags = AVFMT_NOTIMESTAMPS,
224224 .priv_data_size = sizeof(IcoDemuxContext),
225− .flags_internal = FF_FMT_INIT_CLEANUP,
225+ .flags_internal = FF_INFMT_FLAG_INIT_CLEANUP,
226226 .read_probe = probe,
227227 .read_header = read_header,
228228 .read_packet = read_packet,
libavformat/imfdec.c+1−1
@@ -1019,7 +1019,7 @@ const FFInputFormat ff_imf_demuxer = { · 1018 unmodified lines
10191019 .p.long_name = NULL_IF_CONFIG_SMALL("IMF (Interoperable Master Format)"),
10201020 .p.flags = AVFMT_NO_BYTE_SEEK,
10211021 .p.priv_class = &imf_class,
1022− .flags_internal = FF_FMT_INIT_CLEANUP,
1022+ .flags_internal = FF_INFMT_FLAG_INIT_CLEANUP,
10231023 .priv_data_size = sizeof(IMFContext),
10241024 .read_probe = imf_probe,
10251025 .read_header = imf_read_header,
libavformat/internal.h+0−6
@@ -39,12 +39,6 @@ · 38 unmodified lines
3939 # define hex_dump_debug(class, buf, size) do { if (0) av_hex_dump_log(class, AV_LOG_DEBUG, buf, size); } while(0)
4040 #endif
4141
42−/**
43− * For an FFInputFormat with this flag set read_close() needs to be called
44− * by the caller upon read_header() failure.
45− */
46−#define FF_FMT_INIT_CLEANUP (1 << 0)
47−
4842 typedef struct AVCodecTag {
4943 enum AVCodecID id;
5044 unsigned int tag;
libavformat/jacosubdec.c+1−1
@@ -261,7 +261,7 @@ const FFInputFormat ff_jacosub_demuxer = { · 260 unmodified lines
261261 .p.name = "jacosub",
262262 .p.long_name = NULL_IF_CONFIG_SMALL("JACOsub subtitle format"),
263263 .priv_data_size = sizeof(JACOsubContext),
264− .flags_internal = FF_FMT_INIT_CLEANUP,
264+ .flags_internal = FF_INFMT_FLAG_INIT_CLEANUP,
265265 .read_probe = jacosub_probe,
266266 .read_header = jacosub_read_header,
267267 .read_packet = ff_subtitles_read_packet,
libavformat/jpegxl_anim_dec.c+1−1
@@ -202,5 +202,5 @@ const FFInputFormat ff_jpegxl_anim_demuxer = { · 201 unmodified lines
202202 .read_header = jpegxl_anim_read_header,
203203 .read_packet = jpegxl_anim_read_packet,
204204 .read_close = jpegxl_anim_close,
205− .flags_internal = FF_FMT_INIT_CLEANUP,
205+ .flags_internal = FF_INFMT_FLAG_INIT_CLEANUP,
206206 };
libavformat/jvdec.c+1−1
@@ -255,7 +255,7 @@ const FFInputFormat ff_jv_demuxer = { · 254 unmodified lines
255255 .p.name = "jv",
256256 .p.long_name = NULL_IF_CONFIG_SMALL("Bitmap Brothers JV"),
257257 .priv_data_size = sizeof(JVDemuxContext),
258− .flags_internal = FF_FMT_INIT_CLEANUP,
258+ .flags_internal = FF_INFMT_FLAG_INIT_CLEANUP,
259259 .read_probe = read_probe,
260260 .read_header = read_header,
261261 .read_packet = read_packet,
libavformat/lafdec.c+1−1
@@ -289,5 +289,5 @@ const FFInputFormat ff_laf_demuxer = { · 288 unmodified lines
289289 .read_packet = laf_read_packet,
290290 .read_close = laf_read_close,
291291 .read_seek = laf_read_seek,
292− .flags_internal = FF_FMT_INIT_CLEANUP,
292+ .flags_internal = FF_INFMT_FLAG_INIT_CLEANUP,
293293 };
libavformat/libgme.c+1−1
@@ -199,7 +199,7 @@ const FFInputFormat ff_libgme_demuxer = { · 198 unmodified lines
199199 .p.long_name = NULL_IF_CONFIG_SMALL("Game Music Emu demuxer"),
200200 .p.priv_class = &class_gme,
201201 .priv_data_size = sizeof(GMEContext),
202− .flags_internal = FF_FMT_INIT_CLEANUP,
202+ .flags_internal = FF_INFMT_FLAG_INIT_CLEANUP,
203203 .read_probe = probe_gme,
204204 .read_header = read_header_gme,
205205 .read_packet = read_packet_gme,
libavformat/libopenmpt.c+1−1
@@ -289,7 +289,7 @@ const FFInputFormat ff_libopenmpt_demuxer = { · 288 unmodified lines
289289 .p.extensions = "669,amf,ams,dbm,digi,dmf,dsm,far,gdm,ice,imf,it,j2b,m15,mdl,med,mmcmp,mms,mo3,mod,mptm,mt2,mtm,nst,okt,plm,ppm,psm,pt36,ptm,s3m,sfx,sfx2,st26,stk,stm,ult,umx,wow,xm,xpk",
290290 #endif
291291 .priv_data_size = sizeof(OpenMPTContext),
292− .flags_internal = FF_FMT_INIT_CLEANUP,
292+ .flags_internal = FF_INFMT_FLAG_INIT_CLEANUP,
293293 .read_probe = read_probe_openmpt,
294294 .read_header = read_header_openmpt,
295295 .read_packet = read_packet_openmpt,
libavformat/lrcdec.c+1−1
@@ -229,7 +229,7 @@ const FFInputFormat ff_lrc_demuxer = { · 228 unmodified lines
229229 .p.name = "lrc",
230230 .p.long_name = NULL_IF_CONFIG_SMALL("LRC lyrics"),
231231 .priv_data_size = sizeof (LRCContext),
232− .flags_internal = FF_FMT_INIT_CLEANUP,
232+ .flags_internal = FF_INFMT_FLAG_INIT_CLEANUP,
233233 .read_probe = lrc_probe,
234234 .read_header = lrc_read_header,
235235 .read_packet = ff_subtitles_read_packet,
libavformat/matroskadec.c+2−2
@@ -4792,7 +4792,7 @@ const FFInputFormat ff_webm_dash_manifest_demuxer = { · 4791 unmodified lines
47924792 .p.long_name = NULL_IF_CONFIG_SMALL("WebM DASH Manifest"),
47934793 .p.priv_class = &webm_dash_class,
47944794 .priv_data_size = sizeof(MatroskaDemuxContext),
4795− .flags_internal = FF_FMT_INIT_CLEANUP,
4795+ .flags_internal = FF_INFMT_FLAG_INIT_CLEANUP,
47964796 .read_header = webm_dash_manifest_read_header,
47974797 .read_packet = webm_dash_manifest_read_packet,
47984798 .read_close = matroska_read_close,
@@ -4805,7 +4805,7 @@ const FFInputFormat ff_matroska_demuxer = { · 6 unmodified lines
48054805 .p.extensions = "mkv,mk3d,mka,mks,webm",
48064806 .p.mime_type = "audio/webm,audio/x-matroska,video/webm,video/x-matroska",
48074807 .priv_data_size = sizeof(MatroskaDemuxContext),
4808− .flags_internal = FF_FMT_INIT_CLEANUP,
4808+ .flags_internal = FF_INFMT_FLAG_INIT_CLEANUP,
48094809 .read_probe = matroska_probe,
48104810 .read_header = matroska_read_header,
48114811 .read_packet = matroska_read_packet,
libavformat/mccdec.c+1−1
@@ -206,7 +206,7 @@ const FFInputFormat ff_mcc_demuxer = { · 205 unmodified lines
206206 .p.long_name = NULL_IF_CONFIG_SMALL("MacCaption"),
207207 .p.extensions = "mcc",
208208 .priv_data_size = sizeof(MCCContext),
209− .flags_internal = FF_FMT_INIT_CLEANUP,
209+ .flags_internal = FF_INFMT_FLAG_INIT_CLEANUP,
210210 .read_probe = mcc_probe,
211211 .read_header = mcc_read_header,
212212 .read_packet = ff_subtitles_read_packet,
libavformat/microdvddec.c+1−1
@@ -204,7 +204,7 @@ const FFInputFormat ff_microdvd_demuxer = { · 203 unmodified lines
204204 .p.long_name = NULL_IF_CONFIG_SMALL("MicroDVD subtitle format"),
205205 .p.priv_class = &microdvd_class,
206206 .priv_data_size = sizeof(MicroDVDContext),
207− .flags_internal = FF_FMT_INIT_CLEANUP,
207+ .flags_internal = FF_INFMT_FLAG_INIT_CLEANUP,
208208 .read_probe = microdvd_probe,
209209 .read_header = microdvd_read_header,
210210 .read_packet = microdvd_read_packet,
libavformat/mlvdec.c+1−1
@@ -492,7 +492,7 @@ const FFInputFormat ff_mlv_demuxer = { · 491 unmodified lines
492492 .p.name = "mlv",
493493 .p.long_name = NULL_IF_CONFIG_SMALL("Magic Lantern Video (MLV)"),
494494 .priv_data_size = sizeof(MlvContext),
495− .flags_internal = FF_FMT_INIT_CLEANUP,
495+ .flags_internal = FF_INFMT_FLAG_INIT_CLEANUP,
496496 .read_probe = probe,
497497 .read_header = read_header,
498498 .read_packet = read_packet,
libavformat/moflex.c+1−1
@@ -383,5 +383,5 @@ const FFInputFormat ff_moflex_demuxer = { · 382 unmodified lines
383383 .read_packet = moflex_read_packet,
384384 .read_seek = moflex_read_seek,
385385 .read_close = moflex_read_close,
386− .flags_internal = FF_FMT_INIT_CLEANUP,
386+ .flags_internal = FF_INFMT_FLAG_INIT_CLEANUP,
387387 };
libavformat/mov.c+1−1
@@ -10308,7 +10308,7 @@ const FFInputFormat ff_mov_demuxer = { · 10307 unmodified lines
1030810308 .p.extensions = "mov,mp4,m4a,3gp,3g2,mj2,psp,m4b,ism,ismv,isma,f4v,avif,heic,heif",
1030910309 .p.flags = AVFMT_NO_BYTE_SEEK | AVFMT_SEEK_TO_PTS | AVFMT_SHOW_IDS,
1031010310 .priv_data_size = sizeof(MOVContext),
10311− .flags_internal = FF_FMT_INIT_CLEANUP,
10311+ .flags_internal = FF_INFMT_FLAG_INIT_CLEANUP,
1031210312 .read_probe = mov_probe,
1031310313 .read_header = mov_read_header,
1031410314 .read_packet = mov_read_packet,
libavformat/mpeg.c+1−1
@@ -1055,7 +1055,7 @@ const FFInputFormat ff_vobsub_demuxer = { · 1054 unmodified lines
10551055 .p.extensions = "idx",
10561056 .p.priv_class = &vobsub_demuxer_class,
10571057 .priv_data_size = sizeof(VobSubDemuxContext),
1058− .flags_internal = FF_FMT_INIT_CLEANUP,
1058+ .flags_internal = FF_INFMT_FLAG_INIT_CLEANUP,
10591059 .read_probe = vobsub_probe,
10601060 .read_header = vobsub_read_header,
10611061 .read_packet = vobsub_read_packet,
libavformat/mpl2dec.c+1−1
@@ -128,7 +128,7 @@ const FFInputFormat ff_mpl2_demuxer = { · 127 unmodified lines
128128 .p.long_name = NULL_IF_CONFIG_SMALL("MPL2 subtitles"),
129129 .p.extensions = "txt,mpl2",
130130 .priv_data_size = sizeof(MPL2Context),
131− .flags_internal = FF_FMT_INIT_CLEANUP,
131+ .flags_internal = FF_INFMT_FLAG_INIT_CLEANUP,
132132 .read_probe = mpl2_probe,
133133 .read_header = mpl2_read_header,
134134 .read_packet = ff_subtitles_read_packet,
libavformat/mpsubdec.c+1−1
@@ -176,7 +176,7 @@ const FFInputFormat ff_mpsub_demuxer = { · 175 unmodified lines
176176 .p.long_name = NULL_IF_CONFIG_SMALL("MPlayer subtitles"),
177177 .p.extensions = "sub",
178178 .priv_data_size = sizeof(MPSubContext),
179− .flags_internal = FF_FMT_INIT_CLEANUP,
179+ .flags_internal = FF_INFMT_FLAG_INIT_CLEANUP,
180180 .read_probe = mpsub_probe,
181181 .read_header = mpsub_read_header,
182182 .read_packet = ff_subtitles_read_packet,
libavformat/mxfdec.c+1−1
@@ -4265,7 +4265,7 @@ const FFInputFormat ff_mxf_demuxer = { · 4264 unmodified lines
42654265 .p.flags = AVFMT_SEEK_TO_PTS,
42664266 .p.priv_class = &demuxer_class,
42674267 .priv_data_size = sizeof(MXFContext),
4268− .flags_internal = FF_FMT_INIT_CLEANUP,
4268+ .flags_internal = FF_INFMT_FLAG_INIT_CLEANUP,
42694269 .read_probe = mxf_probe,
42704270 .read_header = mxf_read_header,
42714271 .read_packet = mxf_read_packet,
libavformat/nsvdec.c+1−1
@@ -752,7 +752,7 @@ const FFInputFormat ff_nsv_demuxer = { · 751 unmodified lines
752752 .p.name = "nsv",
753753 .p.long_name = NULL_IF_CONFIG_SMALL("Nullsoft Streaming Video"),
754754 .priv_data_size = sizeof(NSVContext),
755− .flags_internal = FF_FMT_INIT_CLEANUP,
755+ .flags_internal = FF_INFMT_FLAG_INIT_CLEANUP,
756756 .read_probe = nsv_probe,
757757 .read_header = nsv_read_header,
758758 .read_packet = nsv_read_packet,
libavformat/nutdec.c+1−1
@@ -1313,7 +1313,7 @@ const FFInputFormat ff_nut_demuxer = { · 1312 unmodified lines
13131313 .p.extensions = "nut",
13141314 .p.codec_tag = ff_nut_codec_tags,
13151315 .priv_data_size = sizeof(NUTContext),
1316− .flags_internal = FF_FMT_INIT_CLEANUP,
1316+ .flags_internal = FF_INFMT_FLAG_INIT_CLEANUP,
13171317 .read_probe = nut_probe,
13181318 .read_header = nut_read_header,
13191319 .read_packet = nut_read_packet,
libavformat/oggdec.c+1−1
@@ -966,7 +966,7 @@ const FFInputFormat ff_ogg_demuxer = { · 965 unmodified lines
966966 .p.extensions = "ogg",
967967 .p.flags = AVFMT_GENERIC_INDEX | AVFMT_TS_DISCONT | AVFMT_NOBINSEARCH,
968968 .priv_data_size = sizeof(struct ogg),
969− .flags_internal = FF_FMT_INIT_CLEANUP,
969+ .flags_internal = FF_INFMT_FLAG_INIT_CLEANUP,
970970 .read_probe = ogg_probe,
971971 .read_header = ogg_read_header,
972972 .read_packet = ogg_read_packet,
libavformat/omadec.c+1−1
@@ -615,7 +615,7 @@ const FFInputFormat ff_oma_demuxer = { · 614 unmodified lines
615615 .p.extensions = "oma,omg,aa3",
616616 .p.codec_tag = ff_oma_codec_tags_list,
617617 .priv_data_size = sizeof(OMAContext),
618− .flags_internal = FF_FMT_INIT_CLEANUP,
618+ .flags_internal = FF_INFMT_FLAG_INIT_CLEANUP,
619619 .read_probe = oma_read_probe,
620620 .read_header = oma_read_header,
621621 .read_packet = oma_read_packet,
libavformat/paf.c+1−1
@@ -270,7 +270,7 @@ const FFInputFormat ff_paf_demuxer = { · 269 unmodified lines
270270 .p.name = "paf",
271271 .p.long_name = NULL_IF_CONFIG_SMALL("Amazing Studio Packed Animation File"),
272272 .priv_data_size = sizeof(PAFDemuxContext),
273− .flags_internal = FF_FMT_INIT_CLEANUP,
273+ .flags_internal = FF_INFMT_FLAG_INIT_CLEANUP,
274274 .read_probe = read_probe,
275275 .read_header = read_header,
276276 .read_packet = read_packet,
libavformat/pdvdec.c+1−1
@@ -165,7 +165,7 @@ const FFInputFormat ff_pdv_demuxer = { · 164 unmodified lines
165165 .p.long_name = NULL_IF_CONFIG_SMALL("PlayDate Video"),
166166 .p.extensions = "pdv",
167167 .priv_data_size = sizeof(PDVDemuxContext),
168− .flags_internal = FF_FMT_INIT_CLEANUP,
168+ .flags_internal = FF_INFMT_FLAG_INIT_CLEANUP,
169169 .read_probe = pdv_probe,
170170 .read_header = pdv_read_header,
171171 .read_packet = pdv_read_packet,
libavformat/pjsdec.c+1−1
@@ -111,7 +111,7 @@ const FFInputFormat ff_pjs_demuxer = { · 110 unmodified lines
111111 .p.long_name = NULL_IF_CONFIG_SMALL("PJS (Phoenix Japanimation Society) subtitles"),
112112 .p.extensions = "pjs",
113113 .priv_data_size = sizeof(PJSContext),
114− .flags_internal = FF_FMT_INIT_CLEANUP,
114+ .flags_internal = FF_INFMT_FLAG_INIT_CLEANUP,
115115 .read_probe = pjs_probe,
116116 .read_header = pjs_read_header,
117117 .read_packet = ff_subtitles_read_packet,
libavformat/pp_bnk.c+1−1
@@ -320,7 +320,7 @@ const FFInputFormat ff_pp_bnk_demuxer = { · 319 unmodified lines
320320 .p.name = "pp_bnk",
321321 .p.long_name = NULL_IF_CONFIG_SMALL("Pro Pinball Series Soundbank"),
322322 .priv_data_size = sizeof(PPBnkCtx),
323− .flags_internal = FF_FMT_INIT_CLEANUP,
323+ .flags_internal = FF_INFMT_FLAG_INIT_CLEANUP,
324324 .read_probe = pp_bnk_probe,
325325 .read_header = pp_bnk_read_header,
326326 .read_packet = pp_bnk_read_packet,
libavformat/realtextdec.c+1−1
@@ -137,7 +137,7 @@ const FFInputFormat ff_realtext_demuxer = { · 136 unmodified lines
137137 .p.long_name = NULL_IF_CONFIG_SMALL("RealText subtitle format"),
138138 .p.extensions = "rt",
139139 .priv_data_size = sizeof(RealTextContext),
140− .flags_internal = FF_FMT_INIT_CLEANUP,
140+ .flags_internal = FF_INFMT_FLAG_INIT_CLEANUP,
141141 .read_probe = realtext_probe,
142142 .read_header = realtext_read_header,
143143 .read_packet = ff_subtitles_read_packet,
libavformat/rmdec.c+2−2
@@ -1149,7 +1149,7 @@ const FFInputFormat ff_rm_demuxer = { · 1148 unmodified lines
11491149 .p.name = "rm",
11501150 .p.long_name = NULL_IF_CONFIG_SMALL("RealMedia"),
11511151 .priv_data_size = sizeof(RMDemuxContext),
1152− .flags_internal = FF_FMT_INIT_CLEANUP,
1152+ .flags_internal = FF_INFMT_FLAG_INIT_CLEANUP,
11531153 .read_probe = rm_probe,
11541154 .read_header = rm_read_header,
11551155 .read_packet = rm_read_packet,
@@ -1403,7 +1403,7 @@ const FFInputFormat ff_ivr_demuxer = { · 247 unmodified lines
14031403 .p.long_name = NULL_IF_CONFIG_SMALL("IVR (Internet Video Recording)"),
14041404 .p.extensions = "ivr",
14051405 .priv_data_size = sizeof(RMDemuxContext),
1406− .flags_internal = FF_FMT_INIT_CLEANUP,
1406+ .flags_internal = FF_INFMT_FLAG_INIT_CLEANUP,
14071407 .read_probe = ivr_probe,
14081408 .read_header = ivr_read_header,
14091409 .read_packet = ivr_read_packet,
libavformat/samidec.c+1−1
@@ -127,7 +127,7 @@ const FFInputFormat ff_sami_demuxer = { · 126 unmodified lines
127127 .p.long_name = NULL_IF_CONFIG_SMALL("SAMI subtitle format"),
128128 .p.extensions = "smi,sami",
129129 .priv_data_size = sizeof(SAMIContext),
130− .flags_internal = FF_FMT_INIT_CLEANUP,
130+ .flags_internal = FF_INFMT_FLAG_INIT_CLEANUP,
131131 .read_probe = sami_probe,
132132 .read_header = sami_read_header,
133133 .read_packet = ff_subtitles_read_packet,
libavformat/sccdec.c+1−1
@@ -152,7 +152,7 @@ const FFInputFormat ff_scc_demuxer = { · 151 unmodified lines
152152 .p.long_name = NULL_IF_CONFIG_SMALL("Scenarist Closed Captions"),
153153 .p.extensions = "scc",
154154 .priv_data_size = sizeof(SCCContext),
155− .flags_internal = FF_FMT_INIT_CLEANUP,
155+ .flags_internal = FF_INFMT_FLAG_INIT_CLEANUP,
156156 .read_probe = scc_probe,
157157 .read_header = scc_read_header,
158158 .read_packet = ff_subtitles_read_packet,
libavformat/scd.c+1−1
@@ -370,7 +370,7 @@ const FFInputFormat ff_scd_demuxer = { · 369 unmodified lines
370370 .p.name = "scd",
371371 .p.long_name = NULL_IF_CONFIG_SMALL("Square Enix SCD"),
372372 .priv_data_size = sizeof(SCDDemuxContext),
373− .flags_internal = FF_FMT_INIT_CLEANUP,
373+ .flags_internal = FF_INFMT_FLAG_INIT_CLEANUP,
374374 .read_probe = scd_probe,
375375 .read_header = scd_read_header,
376376 .read_packet = scd_read_packet,
libavformat/segafilm.c+1−1
@@ -329,7 +329,7 @@ const FFInputFormat ff_segafilm_demuxer = { · 328 unmodified lines
329329 .p.name = "film_cpk",
330330 .p.long_name = NULL_IF_CONFIG_SMALL("Sega FILM / CPK"),
331331 .priv_data_size = sizeof(FilmDemuxContext),
332− .flags_internal = FF_FMT_INIT_CLEANUP,
332+ .flags_internal = FF_INFMT_FLAG_INIT_CLEANUP,
333333 .read_probe = film_probe,
334334 .read_header = film_read_header,
335335 .read_packet = film_read_packet,
libavformat/sierravmd.c+1−1
@@ -318,7 +318,7 @@ const FFInputFormat ff_vmd_demuxer = { · 317 unmodified lines
318318 .p.name = "vmd",
319319 .p.long_name = NULL_IF_CONFIG_SMALL("Sierra VMD"),
320320 .priv_data_size = sizeof(VmdDemuxContext),
321− .flags_internal = FF_FMT_INIT_CLEANUP,
321+ .flags_internal = FF_INFMT_FLAG_INIT_CLEANUP,
322322 .read_probe = vmd_probe,
323323 .read_header = vmd_read_header,
324324 .read_packet = vmd_read_packet,
libavformat/srtdec.c+1−1
@@ -218,7 +218,7 @@ const FFInputFormat ff_srt_demuxer = { · 217 unmodified lines
218218 .p.name = "srt",
219219 .p.long_name = NULL_IF_CONFIG_SMALL("SubRip subtitle"),
220220 .priv_data_size = sizeof(SRTContext),
221− .flags_internal = FF_FMT_INIT_CLEANUP,
221+ .flags_internal = FF_INFMT_FLAG_INIT_CLEANUP,
222222 .read_probe = srt_probe,
223223 .read_header = srt_read_header,
224224 .read_packet = ff_subtitles_read_packet,
libavformat/stldec.c+1−1
@@ -114,7 +114,7 @@ const FFInputFormat ff_stl_demuxer = { · 113 unmodified lines
114114 .p.long_name = NULL_IF_CONFIG_SMALL("Spruce subtitle format"),
115115 .p.extensions = "stl",
116116 .priv_data_size = sizeof(STLContext),
117− .flags_internal = FF_FMT_INIT_CLEANUP,
117+ .flags_internal = FF_INFMT_FLAG_INIT_CLEANUP,
118118 .read_probe = stl_probe,
119119 .read_header = stl_read_header,
120120 .read_packet = ff_subtitles_read_packet,
libavformat/subviewer1dec.c+1−1
@@ -96,7 +96,7 @@ const FFInputFormat ff_subviewer1_demuxer = { · 95 unmodified lines
9696 .p.long_name = NULL_IF_CONFIG_SMALL("SubViewer v1 subtitle format"),
9797 .p.extensions = "sub",
9898 .priv_data_size = sizeof(SubViewer1Context),
99− .flags_internal = FF_FMT_INIT_CLEANUP,
99+ .flags_internal = FF_INFMT_FLAG_INIT_CLEANUP,
100100 .read_probe = subviewer1_probe,
101101 .read_header = subviewer1_read_header,
102102 .read_packet = ff_subtitles_read_packet,
libavformat/subviewerdec.c+1−1
@@ -191,7 +191,7 @@ const FFInputFormat ff_subviewer_demuxer = { · 190 unmodified lines
191191 .p.long_name = NULL_IF_CONFIG_SMALL("SubViewer subtitle format"),
192192 .p.extensions = "sub",
193193 .priv_data_size = sizeof(SubViewerContext),
194− .flags_internal = FF_FMT_INIT_CLEANUP,
194+ .flags_internal = FF_INFMT_FLAG_INIT_CLEANUP,
195195 .read_probe = subviewer_probe,
196196 .read_header = subviewer_read_header,
197197 .read_packet = ff_subtitles_read_packet,
libavformat/tedcaptionsdec.c+1−1
@@ -361,7 +361,7 @@ const FFInputFormat ff_tedcaptions_demuxer = { · 360 unmodified lines
361361 .p.long_name = NULL_IF_CONFIG_SMALL("TED Talks captions"),
362362 .p.priv_class = &tedcaptions_demuxer_class,
363363 .priv_data_size = sizeof(TEDCaptionsDemuxer),
364− .flags_internal = FF_FMT_INIT_CLEANUP,
364+ .flags_internal = FF_INFMT_FLAG_INIT_CLEANUP,
365365 .read_header = tedcaptions_read_header,
366366 .read_packet = tedcaptions_read_packet,
367367 .read_close = tedcaptions_read_close,
libavformat/tiertexseq.c+1−1
@@ -312,7 +312,7 @@ const FFInputFormat ff_tiertexseq_demuxer = { · 311 unmodified lines
312312 .p.name = "tiertexseq",
313313 .p.long_name = NULL_IF_CONFIG_SMALL("Tiertex Limited SEQ"),
314314 .priv_data_size = sizeof(SeqDemuxContext),
315− .flags_internal = FF_FMT_INIT_CLEANUP,
315+ .flags_internal = FF_INFMT_FLAG_INIT_CLEANUP,
316316 .read_probe = seq_probe,
317317 .read_header = seq_read_header,
318318 .read_packet = seq_read_packet,
libavformat/vapoursynth.c+1−1
@@ -486,7 +486,7 @@ const FFInputFormat ff_vapoursynth_demuxer = { · 485 unmodified lines
486486 .p.long_name = NULL_IF_CONFIG_SMALL("VapourSynth demuxer"),
487487 .p.priv_class = &class_vs,
488488 .priv_data_size = sizeof(VSContext),
489− .flags_internal = FF_FMT_INIT_CLEANUP,
489+ .flags_internal = FF_INFMT_FLAG_INIT_CLEANUP,
490490 .read_probe = probe_vs,
491491 .read_header = read_header_vs,
492492 .read_packet = read_packet_vs,
libavformat/vividas.c+1−1
@@ -795,7 +795,7 @@ const FFInputFormat ff_vividas_demuxer = { · 794 unmodified lines
795795 .p.name = "vividas",
796796 .p.long_name = NULL_IF_CONFIG_SMALL("Vividas VIV"),
797797 .priv_data_size = sizeof(VividasDemuxContext),
798− .flags_internal = FF_FMT_INIT_CLEANUP,
798+ .flags_internal = FF_INFMT_FLAG_INIT_CLEANUP,
799799 .read_probe = viv_probe,
800800 .read_header = viv_read_header,
801801 .read_packet = viv_read_packet,
libavformat/vplayerdec.c+1−1
@@ -101,7 +101,7 @@ const FFInputFormat ff_vplayer_demuxer = { · 100 unmodified lines
101101 .p.long_name = NULL_IF_CONFIG_SMALL("VPlayer subtitles"),
102102 .p.extensions = "txt",
103103 .priv_data_size = sizeof(VPlayerContext),
104− .flags_internal = FF_FMT_INIT_CLEANUP,
104+ .flags_internal = FF_INFMT_FLAG_INIT_CLEANUP,
105105 .read_probe = vplayer_probe,
106106 .read_header = vplayer_read_header,
107107 .read_packet = ff_subtitles_read_packet,
libavformat/wc3movie.c+1−1
@@ -298,7 +298,7 @@ const FFInputFormat ff_wc3_demuxer = { · 297 unmodified lines
298298 .p.name = "wc3movie",
299299 .p.long_name = NULL_IF_CONFIG_SMALL("Wing Commander III movie"),
300300 .priv_data_size = sizeof(Wc3DemuxContext),
301− .flags_internal = FF_FMT_INIT_CLEANUP,
301+ .flags_internal = FF_INFMT_FLAG_INIT_CLEANUP,
302302 .read_probe = wc3_probe,
303303 .read_header = wc3_read_header,
304304 .read_packet = wc3_read_packet,
libavformat/webvttdec.c+1−1
@@ -219,7 +219,7 @@ const FFInputFormat ff_webvtt_demuxer = { · 218 unmodified lines
219219 .p.extensions = "vtt",
220220 .p.priv_class = &webvtt_demuxer_class,
221221 .priv_data_size = sizeof(WebVTTContext),
222− .flags_internal = FF_FMT_INIT_CLEANUP,
222+ .flags_internal = FF_INFMT_FLAG_INIT_CLEANUP,
223223 .read_probe = webvtt_probe,
224224 .read_header = webvtt_read_header,
225225 .read_packet = webvtt_read_packet,
libavformat/xmv.c+1−1
@@ -581,7 +581,7 @@ const FFInputFormat ff_xmv_demuxer = { · 580 unmodified lines
581581 .p.long_name = NULL_IF_CONFIG_SMALL("Microsoft XMV"),
582582 .p.extensions = "xmv",
583583 .priv_data_size = sizeof(XMVDemuxContext),
584− .flags_internal = FF_FMT_INIT_CLEANUP,
584+ .flags_internal = FF_INFMT_FLAG_INIT_CLEANUP,
585585 .read_probe = xmv_probe,
586586 .read_header = xmv_read_header,
587587 .read_packet = xmv_read_packet,

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