History

Replace all CODEC_ID_* with AV_CODEC_ID_*

Anton Khirnov committed 14 years ago

Commit 36ef5361 parent 104e10f582 files · +3512 −3512Browse files

Unified · Split

582 files
  1. avconv.c +11 −11
  2. avprobe.c +1 −1
  3. avserver.c +18 −18
  4. cmdutils.c +1 −1
  5. cmdutils.h +1 −1
  6. doc/developer.texi +1 −1
  7. libavcodec/4xm.c +1 −1
  8. libavcodec/8bps.c +1 −1
  9. libavcodec/8svx.c +7 −7
  10. libavcodec/a64multienc.c +3 −3
  11. libavcodec/aac_ac3_parser.c +3 −3
  12. libavcodec/aac_ac3_parser.h +1 −1
  13. libavcodec/aac_parser.c +1 −1
  14. libavcodec/aacdec.c +2 −2
  15. libavcodec/aacenc.c +1 −1
  16. libavcodec/aasc.c +1 −1
  17. libavcodec/ac3_parser.c +4 −4
  18. libavcodec/ac3dec.c +2 −2
  19. libavcodec/ac3enc.c +1 −1
  20. libavcodec/ac3enc_fixed.c +1 −1
  21. libavcodec/ac3enc_float.c +1 −1
  22. libavcodec/adpcm.c +103 −103
  23. libavcodec/adpcmenc.c +26 −26
  24. libavcodec/adx_parser.c +1 −1
  25. libavcodec/adxdec.c +1 −1
  26. libavcodec/adxenc.c +1 −1
  27. libavcodec/alac.c +1 −1
  28. libavcodec/alacenc.c +1 −1
  29. libavcodec/alsdec.c +1 −1
  30. libavcodec/amrnbdec.c +1 −1
  31. libavcodec/amrwbdec.c +1 −1
  32. libavcodec/anm.c +1 −1
  33. libavcodec/ansi.c +1 −1
  34. libavcodec/apedec.c +1 −1
  35. libavcodec/api-example.c +4 −4
  36. libavcodec/arm/h264pred_init_arm.c +3 −3
  37. libavcodec/arm/vp56dsp_init_arm.c +2 −2
  38. libavcodec/assdec.c +1 −1
  39. libavcodec/assenc.c +1 −1
  40. libavcodec/asv1.c +11 −11
  41. libavcodec/atrac1.c +1 −1
  42. libavcodec/atrac3.c +1 −1
  43. libavcodec/aura.c +1 −1
  44. libavcodec/avcodec.h +11 −11
  45. libavcodec/avs.c +1 −1
  46. libavcodec/bethsoftvideo.c +1 −1
  47. libavcodec/bfi.c +1 −1
  48. libavcodec/bink.c +1 −1
  49. libavcodec/binkaudio.c +6 −6
  50. libavcodec/bmp.c +1 −1
  51. libavcodec/bmpenc.c +1 −1
  52. libavcodec/bmv.c +2 −2
  53. libavcodec/c93.c +1 −1
  54. libavcodec/cavs_parser.c +1 −1
  55. libavcodec/cavsdec.c +1 −1
  56. libavcodec/cdgraphics.c +1 −1
  57. libavcodec/cdxl.c +1 −1
  58. libavcodec/cinepak.c +1 −1
  59. libavcodec/cljr.c +2 −2
  60. libavcodec/cllc.c +1 −1
  61. libavcodec/cook.c +1 −1
  62. libavcodec/cook_parser.c +1 −1
  63. libavcodec/cscd.c +1 −1
  64. libavcodec/cyuv.c +3 −3
  65. libavcodec/dca_parser.c +1 −1
  66. libavcodec/dcadec.c +1 −1
  67. libavcodec/dfa.c +1 −1
  68. libavcodec/dirac_parser.c +1 −1
  69. libavcodec/dnxhd_parser.c +1 −1
  70. libavcodec/dnxhddec.c +1 −1
  71. libavcodec/dnxhdenc.c +1 −1
  72. libavcodec/dpcm.c +15 −15
  73. libavcodec/dpx.c +1 −1
  74. libavcodec/dpxenc.c +1 −1
  75. libavcodec/dsicinav.c +2 −2
  76. libavcodec/dv.c +1 −1
  77. libavcodec/dvbsub.c +1 −1
  78. libavcodec/dvbsub_parser.c +1 −1
  79. libavcodec/dvbsubdec.c +1 −1
  80. libavcodec/dvdec.c +1 −1
  81. libavcodec/dvdsub_parser.c +1 −1
  82. libavcodec/dvdsubdec.c +1 −1
  83. libavcodec/dvdsubenc.c +1 −1
  84. libavcodec/dxa.c +1 −1
  85. libavcodec/dxtory.c +1 −1
  86. libavcodec/dxva2_h264.c +1 −1
  87. libavcodec/dxva2_mpeg2.c +1 −1
  88. libavcodec/dxva2_vc1.c +4 −4
  89. libavcodec/eac3enc.c +1 −1
  90. libavcodec/eacmv.c +1 −1
  91. libavcodec/eamad.c +1 −1
  92. libavcodec/eatgq.c +1 −1
  93. libavcodec/eatgv.c +1 −1
  94. libavcodec/eatqi.c +1 −1
  95. libavcodec/error_resilience.c +6 −6
  96. libavcodec/escape124.c +1 −1
  97. libavcodec/ffv1.c +2 −2
  98. libavcodec/flac_parser.c +1 −1
  99. libavcodec/flacdec.c +1 −1
  100. libavcodec/flacenc.c +1 −1
  101. libavcodec/flashsv.c +2 −2
  102. libavcodec/flashsvenc.c +1 −1
  103. libavcodec/flicvideo.c +1 −1
  104. libavcodec/flvdec.c +1 −1
  105. libavcodec/flvenc.c +1 −1
  106. libavcodec/fraps.c +1 −1
  107. libavcodec/frwu.c +1 −1
  108. libavcodec/g722dec.c +1 −1
  109. libavcodec/g722enc.c +1 −1
  110. libavcodec/g723_1.c +1 −1
  111. libavcodec/g726.c +2 −2
  112. libavcodec/gif.c +1 −1
  113. libavcodec/gifdec.c +1 −1
  114. libavcodec/gsm_parser.c +3 −3
  115. libavcodec/gsmdec.c +6 −6
  116. libavcodec/h261_parser.c +1 −1
  117. libavcodec/h261dec.c +1 −1
  118. libavcodec/h261enc.c +1 −1
  119. libavcodec/h263_parser.c +1 −1
  120. libavcodec/h263dec.c +25 −25
  121. libavcodec/h264.c +5 −5
  122. libavcodec/h264_mb_template.c +1 −1
  123. libavcodec/h264_parser.c +1 −1
  124. libavcodec/h264pred.c +11 −11
  125. libavcodec/huffyuv.c +5 −5
  126. libavcodec/idcinvideo.c +1 −1
  127. libavcodec/iff.c +2 −2
  128. libavcodec/imc.c +6 −6
  129. libavcodec/imx_dump_header_bsf.c +1 −1
  130. libavcodec/indeo2.c +1 −1
  131. libavcodec/indeo3.c +1 −1
  132. libavcodec/indeo4.c +1 −1
  133. libavcodec/indeo5.c +1 −1
  134. libavcodec/intelh263dec.c +1 −1
  135. libavcodec/internal.h +1 −1
  136. libavcodec/interplayvideo.c +1 −1
  137. libavcodec/ituh263dec.c +5 −5
  138. libavcodec/ituh263enc.c +4 −4
  139. libavcodec/ivi_common.c +3 −3
  140. libavcodec/jpeglsdec.c +1 −1
  141. libavcodec/jpeglsenc.c +1 −1
  142. libavcodec/jvdec.c +1 −1
  143. libavcodec/kgv1dec.c +1 −1
  144. libavcodec/kmvc.c +1 −1
  145. libavcodec/lagarith.c +1 −1
  146. libavcodec/latm_parser.c +1 −1
  147. libavcodec/lcldec.c +12 −12
  148. libavcodec/lclenc.c +1 −1
  149. libavcodec/libfaac.c +1 −1
  150. libavcodec/libfdk-aacenc.c +1 −1
  151. libavcodec/libgsm.c +11 −11
  152. libavcodec/libilbc.c +2 −2
  153. libavcodec/libmp3lame.c +1 −1
  154. libavcodec/libopencore-amr.c +4 −4
  155. libavcodec/libopenjpegdec.c +1 −1
  156. libavcodec/libopenjpegenc.c +1 −1
  157. libavcodec/libschroedingerdec.c +1 −1
  158. libavcodec/libschroedingerenc.c +1 −1
  159. libavcodec/libspeexdec.c +1 −1
  160. libavcodec/libspeexenc.c +1 −1
  161. libavcodec/libtheoraenc.c +1 −1
  162. libavcodec/libvo-aacenc.c +1 −1
  163. libavcodec/libvo-amrwbenc.c +1 −1
  164. libavcodec/libvorbis.c +1 −1
  165. libavcodec/libvpxdec.c +1 −1
  166. libavcodec/libvpxenc.c +1 −1
  167. libavcodec/libx264.c +1 −1
  168. libavcodec/libxavs.c +1 −1
  169. libavcodec/libxvid.c +2 −2
  170. libavcodec/ljpegenc.c +1 −1
  171. libavcodec/loco.c +1 −1
  172. libavcodec/mace.c +3 −3
  173. libavcodec/mdec.c +1 −1
  174. libavcodec/mimic.c +1 −1
  175. libavcodec/mjpeg_parser.c +1 −1
  176. libavcodec/mjpega_dump_header_bsf.c +1 −1
  177. libavcodec/mjpegbdec.c +1 −1
  178. libavcodec/mjpegdec.c +4 −4
  179. libavcodec/mjpegenc.c +6 −6
  180. libavcodec/mlp_parser.c +1 −1
  181. libavcodec/mlpdec.c +9 −9
  182. libavcodec/mmvideo.c +1 −1
  183. libavcodec/motion_est.c +8 −8
  184. libavcodec/motionpixels.c +1 −1
  185. libavcodec/mpc7.c +1 −1
  186. libavcodec/mpc8.c +1 −1
  187. libavcodec/mpeg12.c +14 −14
  188. libavcodec/mpeg12enc.c +12 −12
  189. libavcodec/mpeg4video_parser.c +1 −1
  190. libavcodec/mpeg4videodec.c +3 −3
  191. libavcodec/mpeg4videoenc.c +1 −1
  192. libavcodec/mpegaudio_parser.c +1 −1
  193. libavcodec/mpegaudiodec.c +6 −6
  194. libavcodec/mpegaudiodec_float.c +5 −5
  195. libavcodec/mpegaudiodecheader.c +3 −3
  196. libavcodec/mpegaudioenc.c +1 −1
  197. libavcodec/mpegvideo.c +20 −20
  198. libavcodec/mpegvideo.h +1 −1
  199. libavcodec/mpegvideo_common.h +3 −3
  200. libavcodec/mpegvideo_enc.c +94 −94
  201. libavcodec/mpegvideo_parser.c +3 −3
  202. libavcodec/msmpeg4.c +4 −4
  203. libavcodec/msrle.c +1 −1
  204. libavcodec/mss1.c +1 −1
  205. libavcodec/mss3.c +1 −1
  206. libavcodec/mss4.c +1 −1
  207. libavcodec/msvideo1.c +1 −1
  208. libavcodec/mxpegdec.c +1 −1
  209. libavcodec/nellymoserdec.c +1 −1
  210. libavcodec/nellymoserenc.c +1 −1
  211. libavcodec/nuv.c +1 −1
  212. libavcodec/pamenc.c +1 −1
  213. libavcodec/parser.c +1 −1
  214. libavcodec/pcm-mpeg.c +1 −1
  215. libavcodec/pcm.c +94 −94
  216. libavcodec/pcx.c +1 −1
  217. libavcodec/pcxenc.c +1 −1
  218. libavcodec/pgssubdec.c +1 −1
  219. libavcodec/pictordec.c +1 −1
  220. libavcodec/pngdec.c +1 −1
  221. libavcodec/pngenc.c +1 −1
  222. libavcodec/pnm.c +1 −1
  223. libavcodec/pnm_parser.c +2 −2
  224. libavcodec/pnmdec.c +5 −5
  225. libavcodec/pnmenc.c +4 −4
  226. libavcodec/proresdec.c +1 −1
  227. libavcodec/proresenc.c +1 −1
  228. libavcodec/psymodel.c +1 −1
  229. libavcodec/ptx.c +1 −1
  230. libavcodec/qcelpdec.c +1 −1
  231. libavcodec/qdm2.c +1 −1
  232. libavcodec/qdrw.c +1 −1
  233. libavcodec/qpeg.c +1 −1
  234. libavcodec/qtrle.c +1 −1
  235. libavcodec/qtrleenc.c +1 −1
  236. libavcodec/r210dec.c +3 −3
  237. libavcodec/ra144dec.c +1 −1
  238. libavcodec/ra144enc.c +1 −1
  239. libavcodec/ra288.c +1 −1
  240. libavcodec/ralf.c +1 −1
  241. libavcodec/ratecontrol.c +1 −1
  242. libavcodec/rawdec.c +1 −1
  243. libavcodec/rawenc.c +1 −1
  244. libavcodec/rl2.c +1 −1
  245. libavcodec/roqaudioenc.c +1 −1
  246. libavcodec/roqvideodec.c +1 −1
  247. libavcodec/roqvideoenc.c +1 −1
  248. libavcodec/rpza.c +1 −1
  249. libavcodec/rv10.c +4 −4
  250. libavcodec/rv10enc.c +1 −1
  251. libavcodec/rv20enc.c +1 −1
  252. libavcodec/rv30.c +1 −1
  253. libavcodec/rv34.c +3 −3
  254. libavcodec/rv34_parser.c +3 −3
  255. libavcodec/rv40.c +1 −1
  256. libavcodec/s302m.c +1 −1
  257. libavcodec/sgidec.c +1 −1
  258. libavcodec/sgienc.c +1 −1
  259. libavcodec/shorten.c +1 −1
  260. libavcodec/sipr.c +1 −1
  261. libavcodec/smacker.c +2 −2
  262. libavcodec/smc.c +1 −1
  263. libavcodec/snowdec.c +1 −1
  264. libavcodec/snowenc.c +1 −1
  265. libavcodec/sp5xdec.c +3 −3
  266. libavcodec/srtdec.c +1 −1
  267. libavcodec/sunrast.c +1 −1
  268. libavcodec/sunrastenc.c +1 −1
  269. libavcodec/svq1dec.c +1 −1
  270. libavcodec/svq1enc.c +1 −1
  271. libavcodec/svq3.c +1 −1
  272. libavcodec/targa.c +1 −1
  273. libavcodec/targaenc.c +1 −1
  274. libavcodec/tiertexseqv.c +1 −1
  275. libavcodec/tiff.c +1 −1
  276. libavcodec/tiffenc.c +1 −1
  277. libavcodec/tmv.c +1 −1
  278. libavcodec/truemotion1.c +1 −1
  279. libavcodec/truemotion2.c +1 −1
  280. libavcodec/truespeech.c +1 −1
  281. libavcodec/tscc.c +1 −1
  282. libavcodec/tscc2.c +1 −1
  283. libavcodec/tta.c +1 −1
  284. libavcodec/twinvq.c +1 −1
  285. libavcodec/txd.c +1 −1
  286. libavcodec/ulti.c +1 −1
  287. libavcodec/utils.c +96 −96
  288. libavcodec/utvideo.c +1 −1
  289. libavcodec/v210dec.c +1 −1
  290. libavcodec/v210enc.c +1 −1
  291. libavcodec/v210x.c +1 −1
  292. libavcodec/v410dec.c +1 −1
  293. libavcodec/v410enc.c +1 −1
  294. libavcodec/vaapi_h264.c +1 −1
  295. libavcodec/vaapi_mpeg2.c +1 −1
  296. libavcodec/vaapi_mpeg4.c +5 −5
  297. libavcodec/vaapi_vc1.c +3 −3
  298. libavcodec/vb.c +1 −1
  299. libavcodec/vble.c +1 −1
  300. libavcodec/vc1_parser.c +1 −1
  301. libavcodec/vc1dec.c +16 −16
  302. libavcodec/vcr1.c +2 −2
  303. libavcodec/vda_h264.c +1 −1
  304. libavcodec/vdpau.c +1 −1
  305. libavcodec/vmdav.c +2 −2
  306. libavcodec/vmnc.c +1 −1
  307. libavcodec/vorbis_parser.c +1 −1
  308. libavcodec/vorbisdec.c +1 −1
  309. libavcodec/vorbisenc.c +1 −1
  310. libavcodec/vp3.c +2 −2
  311. libavcodec/vp3_parser.c +3 −3
  312. libavcodec/vp5.c +1 −1
  313. libavcodec/vp56.c +2 −2
  314. libavcodec/vp56dsp.c +2 −2
  315. libavcodec/vp56dsp.h +3 −3
  316. libavcodec/vp6.c +5 −5
  317. libavcodec/vp8.c +2 −2
  318. libavcodec/vp8_parser.c +1 −1
  319. libavcodec/vqavideo.c +1 −1
  320. libavcodec/wavpack.c +1 −1
  321. libavcodec/wma.c +1 −1
  322. libavcodec/wmadec.c +4 −4
  323. libavcodec/wmaenc.c +4 −4
  324. libavcodec/wmalosslessdec.c +1 −1
  325. libavcodec/wmaprodec.c +1 −1
  326. libavcodec/wmavoice.c +1 −1
  327. libavcodec/wmv2dec.c +1 −1
  328. libavcodec/wmv2enc.c +1 −1
  329. libavcodec/wnv1.c +1 −1
  330. libavcodec/ws-snd1.c +1 −1
  331. libavcodec/x86/dsputil_mmx.c +4 −4
  332. libavcodec/x86/h264_intrapred_init.c +16 −16
  333. libavcodec/x86/motion_est_mmx.c +1 −1
  334. libavcodec/x86/vp56dsp_init.c +2 −2
  335. libavcodec/xan.c +2 −2
  336. libavcodec/xbmenc.c +1 −1
  337. libavcodec/xl.c +1 −1
  338. libavcodec/xsubdec.c +1 −1
  339. libavcodec/xsubenc.c +1 −1
  340. libavcodec/xwddec.c +1 −1
  341. libavcodec/xwdenc.c +1 −1
  342. libavcodec/xxan.c +1 −1
  343. libavcodec/yop.c +1 −1
  344. libavcodec/zerocodec.c +1 −1
  345. libavcodec/zmbv.c +1 −1
  346. libavcodec/zmbvenc.c +1 −1
  347. libavdevice/alsa-audio-common.c +36 −36
  348. libavdevice/alsa-audio-dec.c +1 −1
  349. libavdevice/alsa-audio-enc.c +2 −2
  350. libavdevice/alsa-audio.h +5 −5
  351. libavdevice/bktr.c +1 −1
  352. libavdevice/fbdev.c +1 −1
  353. libavdevice/jack_audio.c +2 −2
  354. libavdevice/libcdio.c +2 −2
  355. libavdevice/libdc1394.c +1 −1
  356. libavdevice/oss_audio.c +5 −5
  357. libavdevice/pulse.c +14 −14
  358. libavdevice/sndio_common.c +1 −1
  359. libavdevice/sndio_common.h +1 −1
  360. libavdevice/sndio_enc.c +2 −2
  361. libavdevice/v4l2.c +27 −27
  362. libavdevice/vfwcap.c +6 −6
  363. libavdevice/x11grab.c +1 −1
  364. libavformat/4xm.c +4 −4
  365. libavformat/a64.c +5 −5
  366. libavformat/aacdec.c +1 −1
  367. libavformat/ac3dec.c +7 −7
  368. libavformat/adtsenc.c +2 −2
  369. libavformat/adxdec.c +1 −1
  370. libavformat/aea.c +1 −1
  371. libavformat/aiff.h +18 −18
  372. libavformat/aiffdec.c +17 −17
  373. libavformat/aiffenc.c +2 −2
  374. libavformat/amr.c +9 −9
  375. libavformat/anm.c +1 −1
  376. libavformat/apc.c +1 −1
  377. libavformat/ape.c +1 −1
  378. libavformat/apetag.c +2 −2
  379. libavformat/asfdec.c +8 −8
  380. libavformat/asfenc.c +10 −10
  381. libavformat/assdec.c +1 −1
  382. libavformat/assenc.c +2 −2
  383. libavformat/au.c +12 −12
  384. libavformat/avformat.h +18 −18
  385. libavformat/avidec.c +8 −8
  386. libavformat/avienc.c +6 −6
  387. libavformat/avs.c +1 −1
  388. libavformat/bethsoftvid.c +2 −2
  389. libavformat/bfi.c +2 −2
  390. libavformat/bink.c +2 −2
  391. libavformat/bmv.c +2 −2
  392. libavformat/c93.c +1 −1
  393. libavformat/caf.c +17 −17
  394. libavformat/cafdec.c +3 −3
  395. libavformat/cavsvideodec.c +1 −1
  396. libavformat/cdg.c +1 −1
  397. libavformat/cdxl.c +2 −2
  398. libavformat/crcenc.c +2 −2
  399. libavformat/daud.c +3 −3
  400. libavformat/dfa.c +1 −1
  401. libavformat/diracdec.c +1 −1
  402. libavformat/dnxhddec.c +1 −1
  403. libavformat/dsicin.c +2 −2
  404. libavformat/dtsdec.c +1 −1
  405. libavformat/dv.c +2 −2
  406. libavformat/dvenc.c +4 −4
  407. libavformat/dxa.c +1 −1
  408. libavformat/eacdata.c +1 −1
  409. libavformat/electronicarts.c +35 −35
  410. libavformat/ffmenc.c +2 −2
  411. libavformat/ffmetadec.c +1 −1
  412. libavformat/filmstripdec.c +1 −1
  413. libavformat/filmstripenc.c +2 −2
  414. libavformat/flacdec.c +5 −5
  415. libavformat/flacenc.c +2 −2
  416. libavformat/flic.c +2 −2
  417. libavformat/flvdec.c +42 −42
  418. libavformat/flvenc.c +45 −45
  419. libavformat/framecrcenc.c +2 −2
  420. libavformat/g723_1.c +1 −1
  421. libavformat/gif.c +2 −2
  422. libavformat/gsmdec.c +1 −1
  423. libavformat/gxf.c +13 −13
  424. libavformat/gxfenc.c +32 −32
  425. libavformat/h261dec.c +1 −1
  426. libavformat/h263dec.c +1 −1
  427. libavformat/h264dec.c +1 −1
  428. libavformat/id3v2.c +10 −10
  429. libavformat/id3v2.h +1 −1
  430. libavformat/id3v2enc.c +1 −1
  431. libavformat/idcin.c +3 −3
  432. libavformat/idroqdec.c +2 −2
  433. libavformat/idroqenc.c +2 −2
  434. libavformat/iff.c +5 −5
  435. libavformat/ilbc.c +3 −3
  436. libavformat/img2.c +43 −43
  437. libavformat/img2dec.c +2 −2
  438. libavformat/img2enc.c +5 −5
  439. libavformat/ingenientdec.c +1 −1
  440. libavformat/internal.h +3 −3
  441. libavformat/ipmovie.c +11 −11
  442. libavformat/isom.c +248 −248
  443. libavformat/isom.h +1 −1
  444. libavformat/iss.c +1 −1
  445. libavformat/iv8.c +1 −1
  446. libavformat/ivfenc.c +3 −3
  447. libavformat/jvdec.c +2 −2
  448. libavformat/latmenc.c +2 −2
  449. libavformat/lmlm4.c +2 −2
  450. libavformat/lxfdec.c +17 −17
  451. libavformat/m4vdec.c +1 −1
  452. libavformat/matroska.c +63 −63
  453. libavformat/matroska.h +1 −1
  454. libavformat/matroskadec.c +38 −38
  455. libavformat/matroskaenc.c +25 −25
  456. libavformat/md5enc.c +4 −4
  457. libavformat/mm.c +2 −2
  458. libavformat/mmf.c +3 −3
  459. libavformat/mov.c +59 −59
  460. libavformat/mov_chan.c +20 −20
  461. libavformat/mov_chan.h +1 −1
  462. libavformat/movenc.c +92 −92
  463. libavformat/mp3dec.c +1 −1
  464. libavformat/mp3enc.c +5 −5
  465. libavformat/mpc.c +1 −1
  466. libavformat/mpc8.c +1 −1
  467. libavformat/mpeg.c +24 −24
  468. libavformat/mpegenc.c +13 −13
  469. libavformat/mpegts.c +52 −52
  470. libavformat/mpegtsenc.c +21 −21
  471. libavformat/mpegvideodec.c +1 −1
  472. libavformat/mpjpeg.c +2 −2
  473. libavformat/msnwc_tcp.c +1 −1
  474. libavformat/mtv.c +2 −2
  475. libavformat/mvi.c +2 −2
  476. libavformat/mxf.c +19 −19
  477. libavformat/mxfdec.c +28 −28
  478. libavformat/mxfenc.c +14 −14
  479. libavformat/mxg.c +2 −2
  480. libavformat/ncdec.c +1 −1
  481. libavformat/nsvdec.c +21 −21
  482. libavformat/nullenc.c +2 −2
  483. libavformat/nut.c +59 −59
  484. libavformat/nutdec.c +1 −1
  485. libavformat/nutenc.c +9 −9
  486. libavformat/nuv.c +4 −4
  487. libavformat/oggenc.c +17 −17
  488. libavformat/oggparsecelt.c +1 −1
  489. libavformat/oggparsedirac.c +3 −3
  490. libavformat/oggparseflac.c +2 −2
  491. libavformat/oggparseogm.c +1 −1
  492. libavformat/oggparsespeex.c +1 −1
  493. libavformat/oggparsetheora.c +1 −1
  494. libavformat/oggparsevorbis.c +1 −1
  495. libavformat/oma.c +4 −4
  496. libavformat/omaenc.c +1 −1
  497. libavformat/output-example.c +6 −6
  498. libavformat/pcmdec.c +20 −20
  499. libavformat/pcmenc.c +21 −21
  500. libavformat/pmpdec.c +5 −5
  501. libavformat/psxstr.c +2 −2
  502. libavformat/pva.c +2 −2
  503. libavformat/qcp.c +1 −1
  504. libavformat/r3d.c +2 −2
  505. libavformat/rawdec.c +10 −10
  506. libavformat/rawenc.c +37 −37
  507. libavformat/rawvideodec.c +1 −1
  508. libavformat/rdt.c +3 −3
  509. libavformat/riff.c +339 −339
  510. libavformat/riff.h +3 −3
  511. libavformat/rl2.c +2 −2
  512. libavformat/rm.c +15 −15
  513. libavformat/rmdec.c +11 −11
  514. libavformat/rmenc.c +5 −5
  515. libavformat/rpl.c +9 −9
  516. libavformat/rso.c +3 −3
  517. libavformat/rsodec.c +2 −2
  518. libavformat/rsoenc.c +3 −3
  519. libavformat/rtp.c +33 −33
  520. libavformat/rtp.h +2 −2
  521. libavformat/rtpdec.c +15 −15
  522. libavformat/rtpdec.h +1 −1
  523. libavformat/rtpdec_amr.c +4 −4
  524. libavformat/rtpdec_asf.c +1 −1
  525. libavformat/rtpdec_g726.c +1 −1
  526. libavformat/rtpdec_h263.c +2 −2
  527. libavformat/rtpdec_h263_rfc2190.c +1 −1
  528. libavformat/rtpdec_h264.c +2 −2
  529. libavformat/rtpdec_ilbc.c +1 −1
  530. libavformat/rtpdec_latm.c +1 −1
  531. libavformat/rtpdec_mpeg4.c +3 −3
  532. libavformat/rtpdec_qcelp.c +1 −1
  533. libavformat/rtpdec_qdm2.c +5 −5
  534. libavformat/rtpdec_qt.c +1 −1
  535. libavformat/rtpdec_svq3.c +4 −4
  536. libavformat/rtpdec_vp8.c +1 −1
  537. libavformat/rtpdec_xiph.c +2 −2
  538. libavformat/rtpenc.c +69 −69
  539. libavformat/rtsp.c +1 −1
  540. libavformat/rtspenc.c +2 −2
  541. libavformat/sapenc.c +2 −2
  542. libavformat/sdp.c +19 −19
  543. libavformat/segafilm.c +17 −17
  544. libavformat/sierravmd.c +2 −2
  545. libavformat/siff.c +2 −2
  546. libavformat/smacker.c +7 −7
  547. libavformat/smjpeg.c +5 −5
  548. libavformat/smjpegenc.c +2 −2
  549. libavformat/sol.c +10 −10
  550. libavformat/soxdec.c +2 −2
  551. libavformat/soxenc.c +5 −5
  552. libavformat/spdifdec.c +14 −14
  553. libavformat/spdifenc.c +10 −10
  554. libavformat/srtdec.c +1 −1
  555. libavformat/swf.h +9 −9
  556. libavformat/swfdec.c +3 −3
  557. libavformat/swfenc.c +15 −15
  558. libavformat/thp.c +2 −2
  559. libavformat/tiertexseq.c +2 −2
  560. libavformat/tmv.c +2 −2
  561. libavformat/tta.c +1 −1
  562. libavformat/tty.c +1 −1
  563. libavformat/txd.c +1 −1
  564. libavformat/utils.c +54 −54
  565. libavformat/vc1test.c +1 −1
  566. libavformat/vc1testenc.c +3 −3
  567. libavformat/voc.c +9 −9
  568. libavformat/vocdec.c +3 −3
  569. libavformat/vocenc.c +2 −2
  570. libavformat/vqf.c +1 −1
  571. libavformat/wav.c +6 −6
  572. libavformat/wc3movie.c +2 −2
  573. libavformat/westwood_aud.c +3 −3
  574. libavformat/westwood_vqa.c +5 −5
  575. libavformat/wtv.c +18 −18
  576. libavformat/wv.c +1 −1
  577. libavformat/xa.c +1 −1
  578. libavformat/xmv.c +2 −2
  579. libavformat/xwma.c +1 −1
  580. libavformat/yop.c +2 −2
  581. libavformat/yuv4mpeg.c +3 −3
  582. tools/ismindex.c +5 −5
avconv.c+11−11
@@ -1337,7 +1337,7 @@ static void do_subtitle_out(AVFormatContext *s, · 1336 unmodified lines
13371337 /* Note: DVB subtitle need one packet to draw them and one other
13381338 packet to clear them */
13391339 /* XXX: signal it in the codec context ? */
1340− if (enc->codec_id == CODEC_ID_DVB_SUBTITLE)
1340+ if (enc->codec_id == AV_CODEC_ID_DVB_SUBTITLE)
13411341 nb = 2;
13421342 else
13431343 nb = 1;
@@ -1363,7 +1363,7 @@ static void do_subtitle_out(AVFormatContext *s, · 19 unmodified lines
13631363 pkt.data = subtitle_out;
13641364 pkt.size = subtitle_out_size;
13651365 pkt.pts = av_rescale_q(sub->pts, AV_TIME_BASE_Q, ost->st->time_base);
1366− if (enc->codec_id == CODEC_ID_DVB_SUBTITLE) {
1366+ if (enc->codec_id == AV_CODEC_ID_DVB_SUBTITLE) {
13671367 /* XXX: the pts correction is handled here. Maybe handling
13681368 it in the codec would be better */
13691369 if (i == 0)
@@ -1416,7 +1416,7 @@ static void do_video_out(AVFormatContext *s, · 46 unmodified lines
14161416 return;
14171417
14181418 if (s->oformat->flags & AVFMT_RAWPICTURE &&
1419− enc->codec->id == CODEC_ID_RAWVIDEO) {
1419+ enc->codec->id == AV_CODEC_ID_RAWVIDEO) {
14201420 /* raw pictures are written as AVPicture structure to
14211421 avoid any copies. We support temporarily the older
14221422 method. */
@@ -1736,7 +1736,7 @@ static void flush_encoders(void) · 313 unmodified lines
17361736
17371737 if (ost->st->codec->codec_type == AVMEDIA_TYPE_AUDIO && enc->frame_size <= 1)
17381738 continue;
1739− if (ost->st->codec->codec_type == AVMEDIA_TYPE_VIDEO && (os->oformat->flags & AVFMT_RAWPICTURE) && enc->codec->id == CODEC_ID_RAWVIDEO)
1739+ if (ost->st->codec->codec_type == AVMEDIA_TYPE_VIDEO && (os->oformat->flags & AVFMT_RAWPICTURE) && enc->codec->id == AV_CODEC_ID_RAWVIDEO)
17401740 continue;
17411741
17421742 for (;;) {
@@ -1850,10 +1850,10 @@ static void do_streamcopy(InputStream *ist, OutputStream *ost, const AVPacket *p · 107 unmodified lines
18501850 opkt.flags = pkt->flags;
18511851
18521852 // FIXME remove the following 2 lines they shall be replaced by the bitstream filters
1853− if ( ost->st->codec->codec_id != CODEC_ID_H264
1854− && ost->st->codec->codec_id != CODEC_ID_MPEG1VIDEO
1855− && ost->st->codec->codec_id != CODEC_ID_MPEG2VIDEO
1856− && ost->st->codec->codec_id != CODEC_ID_VC1
1853+ if ( ost->st->codec->codec_id != AV_CODEC_ID_H264
1854+ && ost->st->codec->codec_id != AV_CODEC_ID_MPEG1VIDEO
1855+ && ost->st->codec->codec_id != AV_CODEC_ID_MPEG2VIDEO
1856+ && ost->st->codec->codec_id != AV_CODEC_ID_VC1
18571857 ) {
18581858 if (av_parser_change(ist->st->parser, ost->st->codec, &opkt.data, &opkt.size, pkt->data, pkt->size, pkt->flags & AV_PKT_FLAG_KEY))
18591859 opkt.destruct = av_destruct_packet;
@@ -4230,7 +4230,7 @@ static void opt_output_file(void *optctx, const char *filename) · 2370 unmodified lines
42304230 }
42314231
42324232 /* video: highest resolution */
4233− if (!o->video_disable && oc->oformat->video_codec != CODEC_ID_NONE) {
4233+ if (!o->video_disable && oc->oformat->video_codec != AV_CODEC_ID_NONE) {
42344234 int area = 0, idx = -1;
42354235 for (i = 0; i < nb_input_streams; i++) {
42364236 ist = input_streams[i];
@@ -4244,7 +4244,7 @@ static void opt_output_file(void *optctx, const char *filename) · 7 unmodified lines
42444244 }
42454245
42464246 /* audio: most channels */
4247− if (!o->audio_disable && oc->oformat->audio_codec != CODEC_ID_NONE) {
4247+ if (!o->audio_disable && oc->oformat->audio_codec != AV_CODEC_ID_NONE) {
42484248 int channels = 0, idx = -1;
42494249 for (i = 0; i < nb_input_streams; i++) {
42504250 ist = input_streams[i];
@@ -4258,7 +4258,7 @@ static void opt_output_file(void *optctx, const char *filename) · 7 unmodified lines
42584258 }
42594259
42604260 /* subtitles: pick first */
4261− if (!o->subtitle_disable && oc->oformat->subtitle_codec != CODEC_ID_NONE) {
4261+ if (!o->subtitle_disable && oc->oformat->subtitle_codec != AV_CODEC_ID_NONE) {
42624262 for (i = 0; i < nb_input_streams; i++)
42634263 if (input_streams[i]->st->codec->codec_type == AVMEDIA_TYPE_SUBTITLE) {
42644264 NEW_STREAM(subtitle, i);
avprobe.c+1−1
@@ -730,7 +730,7 @@ static int open_input_file(AVFormatContext **fmt_ctx_ptr, const char *filename) · 729 unmodified lines
730730 AVStream *stream = fmt_ctx->streams[i];
731731 AVCodec *codec;
732732
733− if (stream->codec->codec_id == CODEC_ID_PROBE) {
733+ if (stream->codec->codec_id == AV_CODEC_ID_PROBE) {
734734 fprintf(stderr, "Failed to probe codec for input stream %d\n",
735735 stream->index);
736736 } else if (!(codec = avcodec_find_decoder(stream->codec->codec_id))) {
avserver.c+18−18
@@ -3539,7 +3539,7 @@ static void extract_mpeg4_header(AVFormatContext *infile) · 3538 unmodified lines
35393539 mpeg4_count = 0;
35403540 for(i=0;i<infile->nb_streams;i++) {
35413541 st = infile->streams[i];
3542− if (st->codec->codec_id == CODEC_ID_MPEG4 &&
3542+ if (st->codec->codec_id == AV_CODEC_ID_MPEG4 &&
35433543 st->codec->extradata_size == 0) {
35443544 mpeg4_count++;
35453545 }
@@ -3552,7 +3552,7 @@ static void extract_mpeg4_header(AVFormatContext *infile) · 6 unmodified lines
35523552 if (av_read_packet(infile, &pkt) < 0)
35533553 break;
35543554 st = infile->streams[pkt.stream_index];
3555− if (st->codec->codec_id == CODEC_ID_MPEG4 &&
3555+ if (st->codec->codec_id == AV_CODEC_ID_MPEG4 &&
35563556 st->codec->extradata_size == 0) {
35573557 av_freep(&st->codec->extradata);
35583558 /* fill extradata with the header */
@@ -3866,22 +3866,22 @@ static void add_codec(FFStream *stream, AVCodecContext *av) · 307 unmodified lines
38663866 memcpy(st->codec, av, sizeof(AVCodecContext));
38673867 }
38683868
3869−static enum CodecID opt_audio_codec(const char *arg)
3869+static enum AVCodecID opt_audio_codec(const char *arg)
38703870 {
38713871 AVCodec *p= avcodec_find_encoder_by_name(arg);
38723872
38733873 if (p == NULL || p->type != AVMEDIA_TYPE_AUDIO)
3874− return CODEC_ID_NONE;
3874+ return AV_CODEC_ID_NONE;
38753875
38763876 return p->id;
38773877 }
38783878
3879−static enum CodecID opt_video_codec(const char *arg)
3879+static enum AVCodecID opt_video_codec(const char *arg)
38803880 {
38813881 AVCodec *p= avcodec_find_encoder_by_name(arg);
38823882
38833883 if (p == NULL || p->type != AVMEDIA_TYPE_VIDEO)
3884− return CODEC_ID_NONE;
3884+ return AV_CODEC_ID_NONE;
38853885
38863886 return p->id;
38873887 }
@@ -3924,7 +3924,7 @@ static int avserver_opt_default(const char *opt, const char *arg, · 36 unmodified lines
39243924
39253925 static int avserver_opt_preset(const char *arg,
39263926 AVCodecContext *avctx, int type,
3927− enum CodecID *audio_id, enum CodecID *video_id)
3927+ enum AVCodecID *audio_id, enum AVCodecID *video_id)
39283928 {
39293929 FILE *f=NULL;
39303930 char filename[1000], tmp[1000], tmp2[1000], line[1000];
@@ -4006,7 +4006,7 @@ static int parse_ffconfig(const char *filename) · 75 unmodified lines
40064006 FFStream **last_stream, *stream, *redirect;
40074007 FFStream **last_feed, *feed, *s;
40084008 AVCodecContext audio_enc, video_enc;
4009− enum CodecID audio_id, video_id;
4009+ enum AVCodecID audio_id, video_id;
40104010
40114011 f = fopen(filename, "r");
40124012 if (!f) {
@@ -4023,8 +4023,8 @@ static int parse_ffconfig(const char *filename) · 10 unmodified lines
40234023 stream = NULL;
40244024 feed = NULL;
40254025 redirect = NULL;
4026− audio_id = CODEC_ID_NONE;
4027− video_id = CODEC_ID_NONE;
4026+ audio_id = AV_CODEC_ID_NONE;
4027+ video_id = AV_CODEC_ID_NONE;
40284028
40294029 #define ERROR(...) report_config_error(filename, line_num, &errors, __VA_ARGS__)
40304030 for(;;) {
@@ -4216,8 +4216,8 @@ static int parse_ffconfig(const char *filename) · 185 unmodified lines
42164216 stream->fmt = avserver_guess_format(NULL, stream->filename, NULL);
42174217 avcodec_get_context_defaults3(&video_enc, NULL);
42184218 avcodec_get_context_defaults3(&audio_enc, NULL);
4219− audio_id = CODEC_ID_NONE;
4220− video_id = CODEC_ID_NONE;
4219+ audio_id = AV_CODEC_ID_NONE;
4220+ video_id = AV_CODEC_ID_NONE;
42214221 if (stream->fmt) {
42224222 audio_id = stream->fmt->audio_codec;
42234223 video_id = stream->fmt->video_codec;
@@ -4299,13 +4299,13 @@ static int parse_ffconfig(const char *filename) · 75 unmodified lines
42994299 } else if (!av_strcasecmp(cmd, "AudioCodec")) {
43004300 get_arg(arg, sizeof(arg), &p);
43014301 audio_id = opt_audio_codec(arg);
4302− if (audio_id == CODEC_ID_NONE) {
4302+ if (audio_id == AV_CODEC_ID_NONE) {
43034303 ERROR("Unknown AudioCodec: %s\n", arg);
43044304 }
43054305 } else if (!av_strcasecmp(cmd, "VideoCodec")) {
43064306 get_arg(arg, sizeof(arg), &p);
43074307 video_id = opt_video_codec(arg);
4308− if (video_id == CODEC_ID_NONE) {
4308+ if (video_id == AV_CODEC_ID_NONE) {
43094309 ERROR("Unknown VideoCodec: %s\n", arg);
43104310 }
43114311 } else if (!av_strcasecmp(cmd, "MaxTime")) {
@@ -4496,9 +4496,9 @@ static int parse_ffconfig(const char *filename) · 184 unmodified lines
44964496 if (stream)
44974497 video_enc.dark_masking = atof(arg);
44984498 } else if (!av_strcasecmp(cmd, "NoVideo")) {
4499− video_id = CODEC_ID_NONE;
4499+ video_id = AV_CODEC_ID_NONE;
45004500 } else if (!av_strcasecmp(cmd, "NoAudio")) {
4501− audio_id = CODEC_ID_NONE;
4501+ audio_id = AV_CODEC_ID_NONE;
45024502 } else if (!av_strcasecmp(cmd, "ACL")) {
45034503 parse_acl_row(stream, feed, NULL, p, filename, line_num);
45044504 } else if (!av_strcasecmp(cmd, "DynamicACL")) {
@@ -4536,12 +4536,12 @@ static int parse_ffconfig(const char *filename) · 31 unmodified lines
45364536 ERROR("No corresponding <Stream> for </Stream>\n");
45374537 } else {
45384538 if (stream->feed && stream->fmt && strcmp(stream->fmt->name, "ffm") != 0) {
4539− if (audio_id != CODEC_ID_NONE) {
4539+ if (audio_id != AV_CODEC_ID_NONE) {
45404540 audio_enc.codec_type = AVMEDIA_TYPE_AUDIO;
45414541 audio_enc.codec_id = audio_id;
45424542 add_codec(stream, &audio_enc);
45434543 }
4544− if (video_id != CODEC_ID_NONE) {
4544+ if (video_id != AV_CODEC_ID_NONE) {
45454545 video_enc.codec_type = AVMEDIA_TYPE_VIDEO;
45464546 video_enc.codec_id = video_id;
45474547 add_codec(stream, &video_enc);
cmdutils.c+1−1
@@ -948,7 +948,7 @@ int check_stream_specifier(AVFormatContext *s, AVStream *st, const char *spec) · 947 unmodified lines
948948 return AVERROR(EINVAL);
949949 }
950950
951−AVDictionary *filter_codec_opts(AVDictionary *opts, enum CodecID codec_id,
951+AVDictionary *filter_codec_opts(AVDictionary *opts, enum AVCodecID codec_id,
952952 AVFormatContext *s, AVStream *st, AVCodec *codec)
953953 {
954954 AVDictionary *ret = NULL;
cmdutils.h+1−1
@@ -218,7 +218,7 @@ int check_stream_specifier(AVFormatContext *s, AVStream *st, const char *spec); · 217 unmodified lines
218218 * If null, the default one is looked up according to the codec id.
219219 * @return a pointer to the created dictionary
220220 */
221−AVDictionary *filter_codec_opts(AVDictionary *opts, enum CodecID codec_id,
221+AVDictionary *filter_codec_opts(AVDictionary *opts, enum AVCodecID codec_id,
222222 AVFormatContext *s, AVStream *st, AVCodec *codec);
223223
224224 /**
doc/developer.texi+1−1
@@ -403,7 +403,7 @@ send a reminder by email. Your patch should eventually be dealt with. · 402 unmodified lines
403403 @item
404404 Did you register it in @file{allcodecs.c} or @file{allformats.c}?
405405 @item
406− Did you add the CodecID to @file{avcodec.h}?
406+ Did you add the AVCodecID to @file{avcodec.h}?
407407 @item
408408 If it has a fourcc, did you add it to @file{libavformat/riff.c},
409409 even if it is only a decoder?
libavcodec/4xm.c+1−1
@@ -931,7 +931,7 @@ static av_cold int decode_end(AVCodecContext *avctx) · 930 unmodified lines
931931 AVCodec ff_fourxm_decoder = {
932932 .name = "4xm",
933933 .type = AVMEDIA_TYPE_VIDEO,
934− .id = CODEC_ID_4XM,
934+ .id = AV_CODEC_ID_4XM,
935935 .priv_data_size = sizeof(FourXContext),
936936 .init = decode_init,
937937 .close = decode_end,
libavcodec/8bps.c+1−1
@@ -226,7 +226,7 @@ static av_cold int decode_end(AVCodecContext *avctx) · 225 unmodified lines
226226 AVCodec ff_eightbps_decoder = {
227227 .name = "8bps",
228228 .type = AVMEDIA_TYPE_VIDEO,
229− .id = CODEC_ID_8BPS,
229+ .id = AV_CODEC_ID_8BPS,
230230 .priv_data_size = sizeof(EightBpsContext),
231231 .init = decode_init,
232232 .close = decode_end,
libavcodec/8svx.c+7−7
@@ -91,7 +91,7 @@ static int eightsvx_decode_frame(AVCodecContext *avctx, void *data, · 90 unmodified lines
9191 int buf_size;
9292 uint8_t *out_data;
9393 int ret;
94− int is_compr = (avctx->codec_id != CODEC_ID_PCM_S8_PLANAR);
94+ int is_compr = (avctx->codec_id != AV_CODEC_ID_PCM_S8_PLANAR);
9595
9696 /* for the first packet, copy data to buffer */
9797 if (avpkt->data) {
@@ -180,13 +180,13 @@ static av_cold int eightsvx_decode_init(AVCodecContext *avctx) · 82 unmodified lines
180180 }
181181
182182 switch(avctx->codec->id) {
183− case CODEC_ID_8SVX_FIB:
183+ case AV_CODEC_ID_8SVX_FIB:
184184 esc->table = fibonacci;
185185 break;
186− case CODEC_ID_8SVX_EXP:
186+ case AV_CODEC_ID_8SVX_EXP:
187187 esc->table = exponential;
188188 break;
189− case CODEC_ID_PCM_S8_PLANAR:
189+ case AV_CODEC_ID_PCM_S8_PLANAR:
190190 break;
191191 default:
192192 return -1;
@@ -212,7 +212,7 @@ static av_cold int eightsvx_decode_close(AVCodecContext *avctx) · 19 unmodified lines
212212 AVCodec ff_eightsvx_fib_decoder = {
213213 .name = "8svx_fib",
214214 .type = AVMEDIA_TYPE_AUDIO,
215− .id = CODEC_ID_8SVX_FIB,
215+ .id = AV_CODEC_ID_8SVX_FIB,
216216 .priv_data_size = sizeof (EightSvxContext),
217217 .init = eightsvx_decode_init,
218218 .close = eightsvx_decode_close,
@@ -224,7 +224,7 @@ AVCodec ff_eightsvx_fib_decoder = { · 5 unmodified lines
224224 AVCodec ff_eightsvx_exp_decoder = {
225225 .name = "8svx_exp",
226226 .type = AVMEDIA_TYPE_AUDIO,
227− .id = CODEC_ID_8SVX_EXP,
227+ .id = AV_CODEC_ID_8SVX_EXP,
228228 .priv_data_size = sizeof (EightSvxContext),
229229 .init = eightsvx_decode_init,
230230 .close = eightsvx_decode_close,
@@ -236,7 +236,7 @@ AVCodec ff_eightsvx_exp_decoder = { · 5 unmodified lines
236236 AVCodec ff_pcm_s8_planar_decoder = {
237237 .name = "pcm_s8_planar",
238238 .type = AVMEDIA_TYPE_AUDIO,
239− .id = CODEC_ID_PCM_S8_PLANAR,
239+ .id = AV_CODEC_ID_PCM_S8_PLANAR,
240240 .priv_data_size = sizeof(EightSvxContext),
241241 .init = eightsvx_decode_init,
242242 .close = eightsvx_decode_close,
libavcodec/a64multienc.c+3−3
@@ -187,7 +187,7 @@ static av_cold int a64multi_init_encoder(AVCodecContext *avctx) · 186 unmodified lines
187187 av_log(avctx, AV_LOG_INFO, "charset lifetime set to %d frame(s)\n", c->mc_lifetime);
188188
189189 c->mc_frame_counter = 0;
190− c->mc_use_5col = avctx->codec->id == CODEC_ID_A64_MULTI5;
190+ c->mc_use_5col = avctx->codec->id == AV_CODEC_ID_A64_MULTI5;
191191 c->mc_pal_size = 4 + c->mc_use_5col;
192192
193193 /* precalc luma values for later use */
@@ -373,7 +373,7 @@ static int a64multi_encode_frame(AVCodecContext *avctx, AVPacket *pkt, · 179 unmodified lines
373373 AVCodec ff_a64multi_encoder = {
374374 .name = "a64multi",
375375 .type = AVMEDIA_TYPE_VIDEO,
376− .id = CODEC_ID_A64_MULTI,
376+ .id = AV_CODEC_ID_A64_MULTI,
377377 .priv_data_size = sizeof(A64Context),
378378 .init = a64multi_init_encoder,
379379 .encode2 = a64multi_encode_frame,
@@ -386,7 +386,7 @@ AVCodec ff_a64multi_encoder = { · 6 unmodified lines
386386 AVCodec ff_a64multi5_encoder = {
387387 .name = "a64multi5",
388388 .type = AVMEDIA_TYPE_VIDEO,
389− .id = CODEC_ID_A64_MULTI5,
389+ .id = AV_CODEC_ID_A64_MULTI5,
390390 .priv_data_size = sizeof(A64Context),
391391 .init = a64multi_init_encoder,
392392 .encode2 = a64multi_encode_frame,
libavcodec/aac_ac3_parser.c+3−3
@@ -78,7 +78,7 @@ get_next: · 77 unmodified lines
7878 and total number of samples found in an AAC ADTS header are not
7979 reliable. Bit rate is still accurate because the total frame duration in
8080 seconds is still correct (as is the number of bits in the frame). */
81− if (avctx->codec_id != CODEC_ID_AAC) {
81+ if (avctx->codec_id != AV_CODEC_ID_AAC) {
8282 avctx->sample_rate = s->sample_rate;
8383
8484 /* allow downmixing to stereo (or mono for AC-3) */
@@ -86,8 +86,8 @@ get_next: · 1 unmodified line
8686 avctx->request_channels < s->channels &&
8787 (avctx->request_channels <= 2 ||
8888 (avctx->request_channels == 1 &&
89− (avctx->codec_id == CODEC_ID_AC3 ||
90− avctx->codec_id == CODEC_ID_EAC3)))) {
89+ (avctx->codec_id == AV_CODEC_ID_AC3 ||
90+ avctx->codec_id == AV_CODEC_ID_EAC3)))) {
9191 avctx->channels = avctx->request_channels;
9292 } else {
9393 avctx->channels = s->channels;
libavcodec/aac_ac3_parser.h+1−1
@@ -55,7 +55,7 @@ typedef struct AACAC3ParseContext { · 54 unmodified lines
5555 uint64_t state;
5656
5757 int need_next_header;
58− enum CodecID codec_id;
58+ enum AVCodecID codec_id;
5959 } AACAC3ParseContext;
6060
6161 int ff_aac_ac3_parse(AVCodecParserContext *s1,
libavcodec/aac_parser.c+1−1
@@ -61,7 +61,7 @@ static av_cold int aac_parse_init(AVCodecParserContext *s1) · 60 unmodified lines
6161
6262
6363 AVCodecParser ff_aac_parser = {
64− .codec_ids = { CODEC_ID_AAC },
64+ .codec_ids = { AV_CODEC_ID_AAC },
6565 .priv_data_size = sizeof(AACAC3ParseContext),
6666 .parser_init = aac_parse_init,
6767 .parser_parse = ff_aac_ac3_parse,
libavcodec/aacdec.c+2−2
@@ -2841,7 +2841,7 @@ static av_cold int latm_decode_init(AVCodecContext *avctx) · 2840 unmodified lines
28412841 AVCodec ff_aac_decoder = {
28422842 .name = "aac",
28432843 .type = AVMEDIA_TYPE_AUDIO,
2844− .id = CODEC_ID_AAC,
2844+ .id = AV_CODEC_ID_AAC,
28452845 .priv_data_size = sizeof(AACContext),
28462846 .init = aac_decode_init,
28472847 .close = aac_decode_close,
@@ -2862,7 +2862,7 @@ AVCodec ff_aac_decoder = { · 14 unmodified lines
28622862 AVCodec ff_aac_latm_decoder = {
28632863 .name = "aac_latm",
28642864 .type = AVMEDIA_TYPE_AUDIO,
2865− .id = CODEC_ID_AAC_LATM,
2865+ .id = AV_CODEC_ID_AAC_LATM,
28662866 .priv_data_size = sizeof(struct LATMContext),
28672867 .init = latm_decode_init,
28682868 .close = aac_decode_close,
libavcodec/aacenc.c+1−1
@@ -819,7 +819,7 @@ static const AVClass aacenc_class = { · 818 unmodified lines
819819 AVCodec ff_aac_encoder = {
820820 .name = "aac",
821821 .type = AVMEDIA_TYPE_AUDIO,
822− .id = CODEC_ID_AAC,
822+ .id = AV_CODEC_ID_AAC,
823823 .priv_data_size = sizeof(AACEncContext),
824824 .init = aac_encode_init,
825825 .encode2 = aac_encode_frame,
libavcodec/aasc.c+1−1
@@ -106,7 +106,7 @@ static av_cold int aasc_decode_end(AVCodecContext *avctx) · 105 unmodified lines
106106 AVCodec ff_aasc_decoder = {
107107 .name = "aasc",
108108 .type = AVMEDIA_TYPE_VIDEO,
109− .id = CODEC_ID_AASC,
109+ .id = AV_CODEC_ID_AASC,
110110 .priv_data_size = sizeof(AascContext),
111111 .init = aasc_decode_init,
112112 .close = aasc_decode_end,
libavcodec/ac3_parser.c+4−4
@@ -167,9 +167,9 @@ static int ac3_sync(uint64_t state, AACAC3ParseContext *hdr_info, · 166 unmodified lines
167167 if (hdr.bitstream_mode == 0x7 && hdr.channels > 1)
168168 hdr_info->service_type = AV_AUDIO_SERVICE_TYPE_KARAOKE;
169169 if(hdr.bitstream_id>10)
170− hdr_info->codec_id = CODEC_ID_EAC3;
171− else if (hdr_info->codec_id == CODEC_ID_NONE)
172− hdr_info->codec_id = CODEC_ID_AC3;
170+ hdr_info->codec_id = AV_CODEC_ID_EAC3;
171+ else if (hdr_info->codec_id == AV_CODEC_ID_NONE)
172+ hdr_info->codec_id = AV_CODEC_ID_AC3;
173173
174174 *need_next_header = (hdr.frame_type != EAC3_FRAME_TYPE_AC3_CONVERT);
175175 *new_frame_start = (hdr.frame_type != EAC3_FRAME_TYPE_DEPENDENT);
@@ -186,7 +186,7 @@ static av_cold int ac3_parse_init(AVCodecParserContext *s1) · 10 unmodified lines
186186
187187
188188 AVCodecParser ff_ac3_parser = {
189− .codec_ids = { CODEC_ID_AC3, CODEC_ID_EAC3 },
189+ .codec_ids = { AV_CODEC_ID_AC3, AV_CODEC_ID_EAC3 },
190190 .priv_data_size = sizeof(AACAC3ParseContext),
191191 .parser_init = ac3_parse_init,
192192 .parser_parse = ff_aac_ac3_parse,
libavcodec/ac3dec.c+2−2
@@ -1460,7 +1460,7 @@ static const AVClass ac3_decoder_class = { · 1459 unmodified lines
14601460 AVCodec ff_ac3_decoder = {
14611461 .name = "ac3",
14621462 .type = AVMEDIA_TYPE_AUDIO,
1463− .id = CODEC_ID_AC3,
1463+ .id = AV_CODEC_ID_AC3,
14641464 .priv_data_size = sizeof (AC3DecodeContext),
14651465 .init = ac3_decode_init,
14661466 .close = ac3_decode_end,
@@ -1484,7 +1484,7 @@ static const AVClass eac3_decoder_class = { · 17 unmodified lines
14841484 AVCodec ff_eac3_decoder = {
14851485 .name = "eac3",
14861486 .type = AVMEDIA_TYPE_AUDIO,
1487− .id = CODEC_ID_EAC3,
1487+ .id = AV_CODEC_ID_EAC3,
14881488 .priv_data_size = sizeof (AC3DecodeContext),
14891489 .init = ac3_decode_init,
14901490 .close = ac3_decode_end,
libavcodec/ac3enc.c+1−1
@@ -2430,7 +2430,7 @@ av_cold int ff_ac3_encode_init(AVCodecContext *avctx) · 2429 unmodified lines
24302430
24312431 s->avctx = avctx;
24322432
2433− s->eac3 = avctx->codec_id == CODEC_ID_EAC3;
2433+ s->eac3 = avctx->codec_id == AV_CODEC_ID_EAC3;
24342434
24352435 ff_ac3_common_init();
24362436
libavcodec/ac3enc_fixed.c+1−1
@@ -144,7 +144,7 @@ static av_cold int ac3_fixed_encode_init(AVCodecContext *avctx) · 143 unmodified lines
144144 AVCodec ff_ac3_fixed_encoder = {
145145 .name = "ac3_fixed",
146146 .type = AVMEDIA_TYPE_AUDIO,
147− .id = CODEC_ID_AC3,
147+ .id = AV_CODEC_ID_AC3,
148148 .priv_data_size = sizeof(AC3EncodeContext),
149149 .init = ac3_fixed_encode_init,
150150 .encode2 = ff_ac3_fixed_encode_frame,
libavcodec/ac3enc_float.c+1−1
@@ -143,7 +143,7 @@ static CoefType calc_cpl_coord(CoefSumType energy_ch, CoefSumType energy_cpl) · 142 unmodified lines
143143 AVCodec ff_ac3_encoder = {
144144 .name = "ac3",
145145 .type = AVMEDIA_TYPE_AUDIO,
146− .id = CODEC_ID_AC3,
146+ .id = AV_CODEC_ID_AC3,
147147 .priv_data_size = sizeof(AC3EncodeContext),
148148 .init = ff_ac3_encode_init,
149149 .encode2 = ff_ac3_float_encode_frame,
libavcodec/adpcm.c+103−103
@@ -96,13 +96,13 @@ static av_cold int adpcm_decode_init(AVCodecContext * avctx) · 95 unmodified lines
9696 unsigned int max_channels = 2;
9797
9898 switch(avctx->codec->id) {
99− case CODEC_ID_ADPCM_EA:
99+ case AV_CODEC_ID_ADPCM_EA:
100100 min_channels = 2;
101101 break;
102− case CODEC_ID_ADPCM_EA_R1:
103− case CODEC_ID_ADPCM_EA_R2:
104− case CODEC_ID_ADPCM_EA_R3:
105− case CODEC_ID_ADPCM_EA_XAS:
102+ case AV_CODEC_ID_ADPCM_EA_R1:
103+ case AV_CODEC_ID_ADPCM_EA_R2:
104+ case AV_CODEC_ID_ADPCM_EA_R3:
105+ case AV_CODEC_ID_ADPCM_EA_XAS:
106106 max_channels = 6;
107107 break;
108108 }
@@ -112,22 +112,22 @@ static av_cold int adpcm_decode_init(AVCodecContext * avctx) · 3 unmodified lines
112112 }
113113
114114 switch(avctx->codec->id) {
115− case CODEC_ID_ADPCM_CT:
115+ case AV_CODEC_ID_ADPCM_CT:
116116 c->status[0].step = c->status[1].step = 511;
117117 break;
118− case CODEC_ID_ADPCM_IMA_WAV:
118+ case AV_CODEC_ID_ADPCM_IMA_WAV:
119119 if (avctx->bits_per_coded_sample != 4) {
120120 av_log(avctx, AV_LOG_ERROR, "Only 4-bit ADPCM IMA WAV files are supported\n");
121121 return -1;
122122 }
123123 break;
124− case CODEC_ID_ADPCM_IMA_APC:
124+ case AV_CODEC_ID_ADPCM_IMA_APC:
125125 if (avctx->extradata && avctx->extradata_size >= 8) {
126126 c->status[0].predictor = AV_RL32(avctx->extradata);
127127 c->status[1].predictor = AV_RL32(avctx->extradata + 4);
128128 }
129129 break;
130− case CODEC_ID_ADPCM_IMA_WS:
130+ case AV_CODEC_ID_ADPCM_IMA_WS:
131131 if (avctx->extradata && avctx->extradata_size >= 2)
132132 c->vqa_version = AV_RL16(avctx->extradata);
133133 break;
@@ -423,22 +423,22 @@ static int get_nb_samples(AVCodecContext *avctx, GetByteContext *gb, · 289 unmodified lines
423423
424424 switch (avctx->codec->id) {
425425 /* constant, only check buf_size */
426− case CODEC_ID_ADPCM_EA_XAS:
426+ case AV_CODEC_ID_ADPCM_EA_XAS:
427427 if (buf_size < 76 * ch)
428428 return 0;
429429 nb_samples = 128;
430430 break;
431− case CODEC_ID_ADPCM_IMA_QT:
431+ case AV_CODEC_ID_ADPCM_IMA_QT:
432432 if (buf_size < 34 * ch)
433433 return 0;
434434 nb_samples = 64;
435435 break;
436436 /* simple 4-bit adpcm */
437− case CODEC_ID_ADPCM_CT:
438− case CODEC_ID_ADPCM_IMA_APC:
439− case CODEC_ID_ADPCM_IMA_EA_SEAD:
440− case CODEC_ID_ADPCM_IMA_WS:
441− case CODEC_ID_ADPCM_YAMAHA:
437+ case AV_CODEC_ID_ADPCM_CT:
438+ case AV_CODEC_ID_ADPCM_IMA_APC:
439+ case AV_CODEC_ID_ADPCM_IMA_EA_SEAD:
440+ case AV_CODEC_ID_ADPCM_IMA_WS:
441+ case AV_CODEC_ID_ADPCM_YAMAHA:
442442 nb_samples = buf_size * 2 / ch;
443443 break;
444444 }
@@ -448,46 +448,46 @@ static int get_nb_samples(AVCodecContext *avctx, GetByteContext *gb, · 3 unmodified lines
448448 /* simple 4-bit adpcm, with header */
449449 header_size = 0;
450450 switch (avctx->codec->id) {
451− case CODEC_ID_ADPCM_4XM:
452− case CODEC_ID_ADPCM_IMA_ISS: header_size = 4 * ch; break;
453− case CODEC_ID_ADPCM_IMA_AMV: header_size = 8; break;
454− case CODEC_ID_ADPCM_IMA_SMJPEG: header_size = 4; break;
451+ case AV_CODEC_ID_ADPCM_4XM:
452+ case AV_CODEC_ID_ADPCM_IMA_ISS: header_size = 4 * ch; break;
453+ case AV_CODEC_ID_ADPCM_IMA_AMV: header_size = 8; break;
454+ case AV_CODEC_ID_ADPCM_IMA_SMJPEG: header_size = 4; break;
455455 }
456456 if (header_size > 0)
457457 return (buf_size - header_size) * 2 / ch;
458458
459459 /* more complex formats */
460460 switch (avctx->codec->id) {
461− case CODEC_ID_ADPCM_EA:
461+ case AV_CODEC_ID_ADPCM_EA:
462462 has_coded_samples = 1;
463463 *coded_samples = bytestream2_get_le32(gb);
464464 *coded_samples -= *coded_samples % 28;
465465 nb_samples = (buf_size - 12) / 30 * 28;
466466 break;
467− case CODEC_ID_ADPCM_IMA_EA_EACS:
467+ case AV_CODEC_ID_ADPCM_IMA_EA_EACS:
468468 has_coded_samples = 1;
469469 *coded_samples = bytestream2_get_le32(gb);
470470 nb_samples = (buf_size - (4 + 8 * ch)) * 2 / ch;
471471 break;
472− case CODEC_ID_ADPCM_EA_MAXIS_XA:
472+ case AV_CODEC_ID_ADPCM_EA_MAXIS_XA:
473473 nb_samples = (buf_size - ch) / ch * 2;
474474 break;
475− case CODEC_ID_ADPCM_EA_R1:
476− case CODEC_ID_ADPCM_EA_R2:
477− case CODEC_ID_ADPCM_EA_R3:
475+ case AV_CODEC_ID_ADPCM_EA_R1:
476+ case AV_CODEC_ID_ADPCM_EA_R2:
477+ case AV_CODEC_ID_ADPCM_EA_R3:
478478 /* maximum number of samples */
479479 /* has internal offsets and a per-frame switch to signal raw 16-bit */
480480 has_coded_samples = 1;
481481 switch (avctx->codec->id) {
482− case CODEC_ID_ADPCM_EA_R1:
482+ case AV_CODEC_ID_ADPCM_EA_R1:
483483 header_size = 4 + 9 * ch;
484484 *coded_samples = bytestream2_get_le32(gb);
485485 break;
486− case CODEC_ID_ADPCM_EA_R2:
486+ case AV_CODEC_ID_ADPCM_EA_R2:
487487 header_size = 4 + 5 * ch;
488488 *coded_samples = bytestream2_get_le32(gb);
489489 break;
490− case CODEC_ID_ADPCM_EA_R3:
490+ case AV_CODEC_ID_ADPCM_EA_R3:
491491 header_size = 4 + 5 * ch;
492492 *coded_samples = bytestream2_get_be32(gb);
493493 break;
@@ -496,35 +496,35 @@ static int get_nb_samples(AVCodecContext *avctx, GetByteContext *gb, · 2 unmodified lines
496496 nb_samples = (buf_size - header_size) * 2 / ch;
497497 nb_samples -= nb_samples % 28;
498498 break;
499− case CODEC_ID_ADPCM_IMA_DK3:
499+ case AV_CODEC_ID_ADPCM_IMA_DK3:
500500 if (avctx->block_align > 0)
501501 buf_size = FFMIN(buf_size, avctx->block_align);
502502 nb_samples = ((buf_size - 16) * 2 / 3 * 4) / ch;
503503 break;
504− case CODEC_ID_ADPCM_IMA_DK4:
504+ case AV_CODEC_ID_ADPCM_IMA_DK4:
505505 if (avctx->block_align > 0)
506506 buf_size = FFMIN(buf_size, avctx->block_align);
507507 nb_samples = 1 + (buf_size - 4 * ch) * 2 / ch;
508508 break;
509− case CODEC_ID_ADPCM_IMA_WAV:
509+ case AV_CODEC_ID_ADPCM_IMA_WAV:
510510 if (avctx->block_align > 0)
511511 buf_size = FFMIN(buf_size, avctx->block_align);
512512 nb_samples = 1 + (buf_size - 4 * ch) / (4 * ch) * 8;
513513 break;
514− case CODEC_ID_ADPCM_MS:
514+ case AV_CODEC_ID_ADPCM_MS:
515515 if (avctx->block_align > 0)
516516 buf_size = FFMIN(buf_size, avctx->block_align);
517517 nb_samples = 2 + (buf_size - 7 * ch) * 2 / ch;
518518 break;
519− case CODEC_ID_ADPCM_SBPRO_2:
520− case CODEC_ID_ADPCM_SBPRO_3:
521− case CODEC_ID_ADPCM_SBPRO_4:
519+ case AV_CODEC_ID_ADPCM_SBPRO_2:
520+ case AV_CODEC_ID_ADPCM_SBPRO_3:
521+ case AV_CODEC_ID_ADPCM_SBPRO_4:
522522 {
523523 int samples_per_byte;
524524 switch (avctx->codec->id) {
525− case CODEC_ID_ADPCM_SBPRO_2: samples_per_byte = 4; break;
526− case CODEC_ID_ADPCM_SBPRO_3: samples_per_byte = 3; break;
527− case CODEC_ID_ADPCM_SBPRO_4: samples_per_byte = 2; break;
525+ case AV_CODEC_ID_ADPCM_SBPRO_2: samples_per_byte = 4; break;
526+ case AV_CODEC_ID_ADPCM_SBPRO_3: samples_per_byte = 3; break;
527+ case AV_CODEC_ID_ADPCM_SBPRO_4: samples_per_byte = 2; break;
528528 }
529529 if (!s->status[0].step_index) {
530530 nb_samples++;
@@ -533,7 +533,7 @@ static int get_nb_samples(AVCodecContext *avctx, GetByteContext *gb, · 2 unmodified lines
533533 nb_samples += buf_size * samples_per_byte / ch;
534534 break;
535535 }
536− case CODEC_ID_ADPCM_SWF:
536+ case AV_CODEC_ID_ADPCM_SWF:
537537 {
538538 int buf_bits = buf_size * 8 - 2;
539539 int nbits = (bytestream2_get_byte(gb) >> 6) + 2;
@@ -546,14 +546,14 @@ static int get_nb_samples(AVCodecContext *avctx, GetByteContext *gb, · 6 unmodified lines
546546 nb_samples += 1 + (bits_left - block_hdr_size) / (nbits * ch);
547547 break;
548548 }
549− case CODEC_ID_ADPCM_THP:
549+ case AV_CODEC_ID_ADPCM_THP:
550550 has_coded_samples = 1;
551551 bytestream2_skip(gb, 4); // channel size
552552 *coded_samples = bytestream2_get_be32(gb);
553553 *coded_samples -= *coded_samples % 14;
554554 nb_samples = (buf_size - 80) / (8 * ch) * 14;
555555 break;
556− case CODEC_ID_ADPCM_XA:
556+ case AV_CODEC_ID_ADPCM_XA:
557557 nb_samples = (buf_size / 128) * 224 / ch;
558558 break;
559559 }
@@ -605,7 +605,7 @@ static int adpcm_decode_frame(AVCodecContext *avctx, void *data, · 45 unmodified lines
605605 st = avctx->channels == 2 ? 1 : 0;
606606
607607 switch(avctx->codec->id) {
608− case CODEC_ID_ADPCM_IMA_QT:
608+ case AV_CODEC_ID_ADPCM_IMA_QT:
609609 /* In QuickTime, IMA is encoded by chunks of 34 bytes (=64 samples).
610610 Channel data is interleaved per-chunk. */
611611 for (channel = 0; channel < avctx->channels; channel++) {
@@ -648,7 +648,7 @@ static int adpcm_decode_frame(AVCodecContext *avctx, void *data, · 36 unmodified lines
648648 }
649649 }
650650 break;
651− case CODEC_ID_ADPCM_IMA_WAV:
651+ case AV_CODEC_ID_ADPCM_IMA_WAV:
652652 for(i=0; i<avctx->channels; i++){
653653 cs = &(c->status[i]);
654654 cs->predictor = *samples++ = sign_extend(bytestream2_get_le16u(&gb), 16);
@@ -676,7 +676,7 @@ static int adpcm_decode_frame(AVCodecContext *avctx, void *data, · 21 unmodified lines
676676 samples += 7 * avctx->channels;
677677 }
678678 break;
679− case CODEC_ID_ADPCM_4XM:
679+ case AV_CODEC_ID_ADPCM_4XM:
680680 for (i = 0; i < avctx->channels; i++)
681681 c->status[i].predictor = sign_extend(bytestream2_get_le16u(&gb), 16);
682682
@@ -701,7 +701,7 @@ static int adpcm_decode_frame(AVCodecContext *avctx, void *data, · 18 unmodified lines
701701 }
702702 }
703703 break;
704− case CODEC_ID_ADPCM_MS:
704+ case AV_CODEC_ID_ADPCM_MS:
705705 {
706706 int block_predictor;
707707
@@ -744,7 +744,7 @@ static int adpcm_decode_frame(AVCodecContext *avctx, void *data, · 36 unmodified lines
744744 }
745745 break;
746746 }
747− case CODEC_ID_ADPCM_IMA_DK4:
747+ case AV_CODEC_ID_ADPCM_IMA_DK4:
748748 for (channel = 0; channel < avctx->channels; channel++) {
749749 cs = &c->status[channel];
750750 cs->predictor = *samples++ = sign_extend(bytestream2_get_le16u(&gb), 16);
@@ -761,7 +761,7 @@ static int adpcm_decode_frame(AVCodecContext *avctx, void *data, · 10 unmodified lines
761761 *samples++ = adpcm_ima_expand_nibble(&c->status[st], v & 0x0F, 3);
762762 }
763763 break;
764− case CODEC_ID_ADPCM_IMA_DK3:
764+ case AV_CODEC_ID_ADPCM_IMA_DK3:
765765 {
766766 int last_byte = 0;
767767 int nibble;
@@ -822,7 +822,7 @@ static int adpcm_decode_frame(AVCodecContext *avctx, void *data, · 54 unmodified lines
822822 }
823823 break;
824824 }
825− case CODEC_ID_ADPCM_IMA_ISS:
825+ case AV_CODEC_ID_ADPCM_IMA_ISS:
826826 for (channel = 0; channel < avctx->channels; channel++) {
827827 cs = &c->status[channel];
828828 cs->predictor = sign_extend(bytestream2_get_le16u(&gb), 16);
@@ -849,14 +849,14 @@ static int adpcm_decode_frame(AVCodecContext *avctx, void *data, · 20 unmodified lines
849849 *samples++ = adpcm_ima_expand_nibble(&c->status[st], v2, 3);
850850 }
851851 break;
852− case CODEC_ID_ADPCM_IMA_APC:
852+ case AV_CODEC_ID_ADPCM_IMA_APC:
853853 while (bytestream2_get_bytes_left(&gb) > 0) {
854854 int v = bytestream2_get_byteu(&gb);
855855 *samples++ = adpcm_ima_expand_nibble(&c->status[0], v >> 4 , 3);
856856 *samples++ = adpcm_ima_expand_nibble(&c->status[st], v & 0x0F, 3);
857857 }
858858 break;
859− case CODEC_ID_ADPCM_IMA_WS:
859+ case AV_CODEC_ID_ADPCM_IMA_WS:
860860 if (c->vqa_version == 3) {
861861 for (channel = 0; channel < avctx->channels; channel++) {
862862 int16_t *smp = samples + channel;
@@ -881,7 +881,7 @@ static int adpcm_decode_frame(AVCodecContext *avctx, void *data, · 18 unmodified lines
881881 }
882882 bytestream2_seek(&gb, 0, SEEK_END);
883883 break;
884− case CODEC_ID_ADPCM_XA:
884+ case AV_CODEC_ID_ADPCM_XA:
885885 while (bytestream2_get_bytes_left(&gb) >= 128) {
886886 if ((ret = xa_decode(avctx, samples, buf + bytestream2_tell(&gb), &c->status[0],
887887 &c->status[1], avctx->channels)) < 0)
@@ -890,7 +890,7 @@ static int adpcm_decode_frame(AVCodecContext *avctx, void *data, · 2 unmodified lines
890890 samples += 28 * 8;
891891 }
892892 break;
893− case CODEC_ID_ADPCM_IMA_EA_EACS:
893+ case AV_CODEC_ID_ADPCM_IMA_EA_EACS:
894894 for (i=0; i<=st; i++) {
895895 c->status[i].step_index = bytestream2_get_le32u(&gb);
896896 if (c->status[i].step_index > 88u) {
@@ -908,14 +908,14 @@ static int adpcm_decode_frame(AVCodecContext *avctx, void *data, · 11 unmodified lines
908908 *samples++ = adpcm_ima_expand_nibble(&c->status[st], byte & 0x0F, 3);
909909 }
910910 break;
911− case CODEC_ID_ADPCM_IMA_EA_SEAD:
911+ case AV_CODEC_ID_ADPCM_IMA_EA_SEAD:
912912 for (n = nb_samples >> (1 - st); n > 0; n--) {
913913 int byte = bytestream2_get_byteu(&gb);
914914 *samples++ = adpcm_ima_expand_nibble(&c->status[0], byte >> 4, 6);
915915 *samples++ = adpcm_ima_expand_nibble(&c->status[st], byte & 0x0F, 6);
916916 }
917917 break;
918− case CODEC_ID_ADPCM_EA:
918+ case AV_CODEC_ID_ADPCM_EA:
919919 {
920920 int previous_left_sample, previous_right_sample;
921921 int current_left_sample, current_right_sample;
@@ -967,7 +967,7 @@ static int adpcm_decode_frame(AVCodecContext *avctx, void *data, · 45 unmodified lines
967967
968968 break;
969969 }
970− case CODEC_ID_ADPCM_EA_MAXIS_XA:
970+ case AV_CODEC_ID_ADPCM_EA_MAXIS_XA:
971971 {
972972 int coeff[2][2], shift[2];
973973
@@ -997,14 +997,14 @@ static int adpcm_decode_frame(AVCodecContext *avctx, void *data, · 23 unmodified lines
997997 bytestream2_seek(&gb, 0, SEEK_END);
998998 break;
999999 }
1000− case CODEC_ID_ADPCM_EA_R1:
1001− case CODEC_ID_ADPCM_EA_R2:
1002− case CODEC_ID_ADPCM_EA_R3: {
1000+ case AV_CODEC_ID_ADPCM_EA_R1:
1001+ case AV_CODEC_ID_ADPCM_EA_R2:
1002+ case AV_CODEC_ID_ADPCM_EA_R3: {
10031003 /* channel numbering
10041004 2chan: 0=fl, 1=fr
10051005 4chan: 0=fl, 1=rl, 2=fr, 3=rr
10061006 6chan: 0=fl, 1=c, 2=fr, 3=rl, 4=rr, 5=sub */
1007− const int big_endian = avctx->codec->id == CODEC_ID_ADPCM_EA_R3;
1007+ const int big_endian = avctx->codec->id == AV_CODEC_ID_ADPCM_EA_R3;
10081008 int previous_sample, current_sample, next_sample;
10091009 int coeff1, coeff2;
10101010 int shift;
@@ -1022,7 +1022,7 @@ static int adpcm_decode_frame(AVCodecContext *avctx, void *data, · 11 unmodified lines
10221022 bytestream2_seek(&gb, offsets[channel], SEEK_SET);
10231023 samplesC = samples + channel;
10241024
1025− if (avctx->codec->id == CODEC_ID_ADPCM_EA_R1) {
1025+ if (avctx->codec->id == AV_CODEC_ID_ADPCM_EA_R1) {
10261026 current_sample = sign_extend(bytestream2_get_le16(&gb), 16);
10271027 previous_sample = sign_extend(bytestream2_get_le16(&gb), 16);
10281028 } else {
@@ -1071,7 +1071,7 @@ static int adpcm_decode_frame(AVCodecContext *avctx, void *data, · 42 unmodified lines
10711071 count = FFMAX(count, count1);
10721072 }
10731073
1074− if (avctx->codec->id != CODEC_ID_ADPCM_EA_R1) {
1074+ if (avctx->codec->id != AV_CODEC_ID_ADPCM_EA_R1) {
10751075 c->status[channel].predictor = current_sample;
10761076 c->status[channel].prev_sample = previous_sample;
10771077 }
@@ -1081,7 +1081,7 @@ static int adpcm_decode_frame(AVCodecContext *avctx, void *data, · 3 unmodified lines
10811081 bytestream2_seek(&gb, 0, SEEK_END);
10821082 break;
10831083 }
1084− case CODEC_ID_ADPCM_EA_XAS:
1084+ case AV_CODEC_ID_ADPCM_EA_XAS:
10851085 for (channel=0; channel<avctx->channels; channel++) {
10861086 int coeff[2][4], shift[4];
10871087 short *s2, *s = &samples[channel];
@@ -1110,9 +1110,9 @@ static int adpcm_decode_frame(AVCodecContext *avctx, void *data, · 22 unmodified lines
11101110 }
11111111 }
11121112 break;
1113− case CODEC_ID_ADPCM_IMA_AMV:
1114− case CODEC_ID_ADPCM_IMA_SMJPEG:
1115− if (avctx->codec->id == CODEC_ID_ADPCM_IMA_AMV) {
1113+ case AV_CODEC_ID_ADPCM_IMA_AMV:
1114+ case AV_CODEC_ID_ADPCM_IMA_SMJPEG:
1115+ if (avctx->codec->id == AV_CODEC_ID_ADPCM_IMA_AMV) {
11161116 c->status[0].predictor = sign_extend(bytestream2_get_le16u(&gb), 16);
11171117 c->status[0].step_index = bytestream2_get_le16u(&gb);
11181118 bytestream2_skipu(&gb, 4);
@@ -1130,7 +1130,7 @@ static int adpcm_decode_frame(AVCodecContext *avctx, void *data, · 11 unmodified lines
11301130 for (n = nb_samples >> (1 - st); n > 0; n--) {
11311131 int hi, lo, v = bytestream2_get_byteu(&gb);
11321132
1133− if (avctx->codec->id == CODEC_ID_ADPCM_IMA_AMV) {
1133+ if (avctx->codec->id == AV_CODEC_ID_ADPCM_IMA_AMV) {
11341134 hi = v & 0x0F;
11351135 lo = v >> 4;
11361136 } else {
@@ -1142,16 +1142,16 @@ static int adpcm_decode_frame(AVCodecContext *avctx, void *data, · 5 unmodified lines
11421142 *samples++ = adpcm_ima_expand_nibble(&c->status[0], hi, 3);
11431143 }
11441144 break;
1145− case CODEC_ID_ADPCM_CT:
1145+ case AV_CODEC_ID_ADPCM_CT:
11461146 for (n = nb_samples >> (1 - st); n > 0; n--) {
11471147 int v = bytestream2_get_byteu(&gb);
11481148 *samples++ = adpcm_ct_expand_nibble(&c->status[0 ], v >> 4 );
11491149 *samples++ = adpcm_ct_expand_nibble(&c->status[st], v & 0x0F);
11501150 }
11511151 break;
1152− case CODEC_ID_ADPCM_SBPRO_4:
1153− case CODEC_ID_ADPCM_SBPRO_3:
1154− case CODEC_ID_ADPCM_SBPRO_2:
1152+ case AV_CODEC_ID_ADPCM_SBPRO_4:
1153+ case AV_CODEC_ID_ADPCM_SBPRO_3:
1154+ case AV_CODEC_ID_ADPCM_SBPRO_2:
11551155 if (!c->status[0].step_index) {
11561156 /* the first byte is a raw sample */
11571157 *samples++ = 128 * (bytestream2_get_byteu(&gb) - 0x80);
@@ -1160,7 +1160,7 @@ static int adpcm_decode_frame(AVCodecContext *avctx, void *data, · 2 unmodified lines
11601160 c->status[0].step_index = 1;
11611161 nb_samples--;
11621162 }
1163− if (avctx->codec->id == CODEC_ID_ADPCM_SBPRO_4) {
1163+ if (avctx->codec->id == AV_CODEC_ID_ADPCM_SBPRO_4) {
11641164 for (n = nb_samples >> (1 - st); n > 0; n--) {
11651165 int byte = bytestream2_get_byteu(&gb);
11661166 *samples++ = adpcm_sbpro_expand_nibble(&c->status[0],
@@ -1168,7 +1168,7 @@ static int adpcm_decode_frame(AVCodecContext *avctx, void *data, · 1 unmodified line
11681168 *samples++ = adpcm_sbpro_expand_nibble(&c->status[st],
11691169 byte & 0x0F, 4, 0);
11701170 }
1171− } else if (avctx->codec->id == CODEC_ID_ADPCM_SBPRO_3) {
1171+ } else if (avctx->codec->id == AV_CODEC_ID_ADPCM_SBPRO_3) {
11721172 for (n = nb_samples / 3; n > 0; n--) {
11731173 int byte = bytestream2_get_byteu(&gb);
11741174 *samples++ = adpcm_sbpro_expand_nibble(&c->status[0],
@@ -1192,18 +1192,18 @@ static int adpcm_decode_frame(AVCodecContext *avctx, void *data, · 17 unmodified lines
11921192 }
11931193 }
11941194 break;
1195− case CODEC_ID_ADPCM_SWF:
1195+ case AV_CODEC_ID_ADPCM_SWF:
11961196 adpcm_swf_decode(avctx, buf, buf_size, samples);
11971197 bytestream2_seek(&gb, 0, SEEK_END);
11981198 break;
1199− case CODEC_ID_ADPCM_YAMAHA:
1199+ case AV_CODEC_ID_ADPCM_YAMAHA:
12001200 for (n = nb_samples >> (1 - st); n > 0; n--) {
12011201 int v = bytestream2_get_byteu(&gb);
12021202 *samples++ = adpcm_yamaha_expand_nibble(&c->status[0 ], v & 0x0F);
12031203 *samples++ = adpcm_yamaha_expand_nibble(&c->status[st], v >> 4 );
12041204 }
12051205 break;
1206− case CODEC_ID_ADPCM_THP:
1206+ case AV_CODEC_ID_ADPCM_THP:
12071207 {
12081208 int table[2][16];
12091209 int prev[2][2];
@@ -1279,30 +1279,30 @@ AVCodec ff_ ## name_ ## _decoder = { \ · 69 unmodified lines
12791279 }
12801280
12811281 /* Note: Do not forget to add new entries to the Makefile as well. */
1282−ADPCM_DECODER(CODEC_ID_ADPCM_4XM, adpcm_4xm, "ADPCM 4X Movie");
1283−ADPCM_DECODER(CODEC_ID_ADPCM_CT, adpcm_ct, "ADPCM Creative Technology");
1284−ADPCM_DECODER(CODEC_ID_ADPCM_EA, adpcm_ea, "ADPCM Electronic Arts");
1285−ADPCM_DECODER(CODEC_ID_ADPCM_EA_MAXIS_XA, adpcm_ea_maxis_xa, "ADPCM Electronic Arts Maxis CDROM XA");
1286−ADPCM_DECODER(CODEC_ID_ADPCM_EA_R1, adpcm_ea_r1, "ADPCM Electronic Arts R1");
1287−ADPCM_DECODER(CODEC_ID_ADPCM_EA_R2, adpcm_ea_r2, "ADPCM Electronic Arts R2");
1288−ADPCM_DECODER(CODEC_ID_ADPCM_EA_R3, adpcm_ea_r3, "ADPCM Electronic Arts R3");
1289−ADPCM_DECODER(CODEC_ID_ADPCM_EA_XAS, adpcm_ea_xas, "ADPCM Electronic Arts XAS");
1290−ADPCM_DECODER(CODEC_ID_ADPCM_IMA_AMV, adpcm_ima_amv, "ADPCM IMA AMV");
1291−ADPCM_DECODER(CODEC_ID_ADPCM_IMA_APC, adpcm_ima_apc, "ADPCM IMA CRYO APC");
1292−ADPCM_DECODER(CODEC_ID_ADPCM_IMA_DK3, adpcm_ima_dk3, "ADPCM IMA Duck DK3");
1293−ADPCM_DECODER(CODEC_ID_ADPCM_IMA_DK4, adpcm_ima_dk4, "ADPCM IMA Duck DK4");
1294−ADPCM_DECODER(CODEC_ID_ADPCM_IMA_EA_EACS, adpcm_ima_ea_eacs, "ADPCM IMA Electronic Arts EACS");
1295−ADPCM_DECODER(CODEC_ID_ADPCM_IMA_EA_SEAD, adpcm_ima_ea_sead, "ADPCM IMA Electronic Arts SEAD");
1296−ADPCM_DECODER(CODEC_ID_ADPCM_IMA_ISS, adpcm_ima_iss, "ADPCM IMA Funcom ISS");
1297−ADPCM_DECODER(CODEC_ID_ADPCM_IMA_QT, adpcm_ima_qt, "ADPCM IMA QuickTime");
1298−ADPCM_DECODER(CODEC_ID_ADPCM_IMA_SMJPEG, adpcm_ima_smjpeg, "ADPCM IMA Loki SDL MJPEG");
1299−ADPCM_DECODER(CODEC_ID_ADPCM_IMA_WAV, adpcm_ima_wav, "ADPCM IMA WAV");
1300−ADPCM_DECODER(CODEC_ID_ADPCM_IMA_WS, adpcm_ima_ws, "ADPCM IMA Westwood");
1301−ADPCM_DECODER(CODEC_ID_ADPCM_MS, adpcm_ms, "ADPCM Microsoft");
1302−ADPCM_DECODER(CODEC_ID_ADPCM_SBPRO_2, adpcm_sbpro_2, "ADPCM Sound Blaster Pro 2-bit");
1303−ADPCM_DECODER(CODEC_ID_ADPCM_SBPRO_3, adpcm_sbpro_3, "ADPCM Sound Blaster Pro 2.6-bit");
1304−ADPCM_DECODER(CODEC_ID_ADPCM_SBPRO_4, adpcm_sbpro_4, "ADPCM Sound Blaster Pro 4-bit");
1305−ADPCM_DECODER(CODEC_ID_ADPCM_SWF, adpcm_swf, "ADPCM Shockwave Flash");
1306−ADPCM_DECODER(CODEC_ID_ADPCM_THP, adpcm_thp, "ADPCM Nintendo Gamecube THP");
1307−ADPCM_DECODER(CODEC_ID_ADPCM_XA, adpcm_xa, "ADPCM CDROM XA");
1308−ADPCM_DECODER(CODEC_ID_ADPCM_YAMAHA, adpcm_yamaha, "ADPCM Yamaha");
1282+ADPCM_DECODER(AV_CODEC_ID_ADPCM_4XM, adpcm_4xm, "ADPCM 4X Movie");
1283+ADPCM_DECODER(AV_CODEC_ID_ADPCM_CT, adpcm_ct, "ADPCM Creative Technology");
1284+ADPCM_DECODER(AV_CODEC_ID_ADPCM_EA, adpcm_ea, "ADPCM Electronic Arts");
1285+ADPCM_DECODER(AV_CODEC_ID_ADPCM_EA_MAXIS_XA, adpcm_ea_maxis_xa, "ADPCM Electronic Arts Maxis CDROM XA");
1286+ADPCM_DECODER(AV_CODEC_ID_ADPCM_EA_R1, adpcm_ea_r1, "ADPCM Electronic Arts R1");
1287+ADPCM_DECODER(AV_CODEC_ID_ADPCM_EA_R2, adpcm_ea_r2, "ADPCM Electronic Arts R2");
1288+ADPCM_DECODER(AV_CODEC_ID_ADPCM_EA_R3, adpcm_ea_r3, "ADPCM Electronic Arts R3");
1289+ADPCM_DECODER(AV_CODEC_ID_ADPCM_EA_XAS, adpcm_ea_xas, "ADPCM Electronic Arts XAS");
1290+ADPCM_DECODER(AV_CODEC_ID_ADPCM_IMA_AMV, adpcm_ima_amv, "ADPCM IMA AMV");
1291+ADPCM_DECODER(AV_CODEC_ID_ADPCM_IMA_APC, adpcm_ima_apc, "ADPCM IMA CRYO APC");
1292+ADPCM_DECODER(AV_CODEC_ID_ADPCM_IMA_DK3, adpcm_ima_dk3, "ADPCM IMA Duck DK3");
1293+ADPCM_DECODER(AV_CODEC_ID_ADPCM_IMA_DK4, adpcm_ima_dk4, "ADPCM IMA Duck DK4");
1294+ADPCM_DECODER(AV_CODEC_ID_ADPCM_IMA_EA_EACS, adpcm_ima_ea_eacs, "ADPCM IMA Electronic Arts EACS");
1295+ADPCM_DECODER(AV_CODEC_ID_ADPCM_IMA_EA_SEAD, adpcm_ima_ea_sead, "ADPCM IMA Electronic Arts SEAD");
1296+ADPCM_DECODER(AV_CODEC_ID_ADPCM_IMA_ISS, adpcm_ima_iss, "ADPCM IMA Funcom ISS");
1297+ADPCM_DECODER(AV_CODEC_ID_ADPCM_IMA_QT, adpcm_ima_qt, "ADPCM IMA QuickTime");
1298+ADPCM_DECODER(AV_CODEC_ID_ADPCM_IMA_SMJPEG, adpcm_ima_smjpeg, "ADPCM IMA Loki SDL MJPEG");
1299+ADPCM_DECODER(AV_CODEC_ID_ADPCM_IMA_WAV, adpcm_ima_wav, "ADPCM IMA WAV");
1300+ADPCM_DECODER(AV_CODEC_ID_ADPCM_IMA_WS, adpcm_ima_ws, "ADPCM IMA Westwood");
1301+ADPCM_DECODER(AV_CODEC_ID_ADPCM_MS, adpcm_ms, "ADPCM Microsoft");
1302+ADPCM_DECODER(AV_CODEC_ID_ADPCM_SBPRO_2, adpcm_sbpro_2, "ADPCM Sound Blaster Pro 2-bit");
1303+ADPCM_DECODER(AV_CODEC_ID_ADPCM_SBPRO_3, adpcm_sbpro_3, "ADPCM Sound Blaster Pro 2.6-bit");
1304+ADPCM_DECODER(AV_CODEC_ID_ADPCM_SBPRO_4, adpcm_sbpro_4, "ADPCM Sound Blaster Pro 4-bit");
1305+ADPCM_DECODER(AV_CODEC_ID_ADPCM_SWF, adpcm_swf, "ADPCM Shockwave Flash");
1306+ADPCM_DECODER(AV_CODEC_ID_ADPCM_THP, adpcm_thp, "ADPCM Nintendo Gamecube THP");
1307+ADPCM_DECODER(AV_CODEC_ID_ADPCM_XA, adpcm_xa, "ADPCM CDROM XA");
1308+ADPCM_DECODER(AV_CODEC_ID_ADPCM_YAMAHA, adpcm_yamaha, "ADPCM Yamaha");
libavcodec/adpcmenc.c+26−26
@@ -92,7 +92,7 @@ static av_cold int adpcm_encode_init(AVCodecContext *avctx) · 91 unmodified lines
9292 avctx->bits_per_coded_sample = av_get_bits_per_sample(avctx->codec->id);
9393
9494 switch (avctx->codec->id) {
95− case CODEC_ID_ADPCM_IMA_WAV:
95+ case AV_CODEC_ID_ADPCM_IMA_WAV:
9696 /* each 16 bits sample gives one nibble
9797 and we have 4 bytes per channel overhead */
9898 avctx->frame_size = (BLKSIZE - 4 * avctx->channels) * 8 /
@@ -101,11 +101,11 @@ static av_cold int adpcm_encode_init(AVCodecContext *avctx) · 2 unmodified lines
101101 have to buffer the samples :-( */
102102 avctx->block_align = BLKSIZE;
103103 break;
104− case CODEC_ID_ADPCM_IMA_QT:
104+ case AV_CODEC_ID_ADPCM_IMA_QT:
105105 avctx->frame_size = 64;
106106 avctx->block_align = 34 * avctx->channels;
107107 break;
108− case CODEC_ID_ADPCM_MS:
108+ case AV_CODEC_ID_ADPCM_MS:
109109 /* each 16 bits sample gives one nibble
110110 and we have 7 bytes per channel overhead */
111111 avctx->frame_size = (BLKSIZE - 7 * avctx->channels) * 2 /
@@ -122,11 +122,11 @@ static av_cold int adpcm_encode_init(AVCodecContext *avctx) · 10 unmodified lines
122122 bytestream_put_le16(&extradata, ff_adpcm_AdaptCoeff2[i] * 4);
123123 }
124124 break;
125− case CODEC_ID_ADPCM_YAMAHA:
125+ case AV_CODEC_ID_ADPCM_YAMAHA:
126126 avctx->frame_size = BLKSIZE * 2 / avctx->channels;
127127 avctx->block_align = BLKSIZE;
128128 break;
129− case CODEC_ID_ADPCM_SWF:
129+ case AV_CODEC_ID_ADPCM_SWF:
130130 if (avctx->sample_rate != 11025 &&
131131 avctx->sample_rate != 22050 &&
132132 avctx->sample_rate != 44100) {
@@ -294,13 +294,13 @@ static void adpcm_compress_trellis(AVCodecContext *avctx, · 161 unmodified lines
294294 nodes[0]->step = c->step_index;
295295 nodes[0]->sample1 = c->sample1;
296296 nodes[0]->sample2 = c->sample2;
297− if (version == CODEC_ID_ADPCM_IMA_WAV ||
298− version == CODEC_ID_ADPCM_IMA_QT ||
299− version == CODEC_ID_ADPCM_SWF)
297+ if (version == AV_CODEC_ID_ADPCM_IMA_WAV ||
298+ version == AV_CODEC_ID_ADPCM_IMA_QT ||
299+ version == AV_CODEC_ID_ADPCM_SWF)
300300 nodes[0]->sample1 = c->prev_sample;
301− if (version == CODEC_ID_ADPCM_MS)
301+ if (version == AV_CODEC_ID_ADPCM_MS)
302302 nodes[0]->step = c->idelta;
303− if (version == CODEC_ID_ADPCM_YAMAHA) {
303+ if (version == AV_CODEC_ID_ADPCM_YAMAHA) {
304304 if (c->step == 0) {
305305 nodes[0]->step = 127;
306306 nodes[0]->sample1 = 0;
@@ -322,7 +322,7 @@ static void adpcm_compress_trellis(AVCodecContext *avctx, · 15 unmodified lines
322322 const int range = (j < frontier / 2) ? 1 : 0;
323323 const int step = nodes[j]->step;
324324 int nidx;
325− if (version == CODEC_ID_ADPCM_MS) {
325+ if (version == AV_CODEC_ID_ADPCM_MS) {
326326 const int predictor = ((nodes[j]->sample1 * c->coeff1) +
327327 (nodes[j]->sample2 * c->coeff2)) / 64;
328328 const int div = (sample - predictor) / step;
@@ -398,9 +398,9 @@ static void adpcm_compress_trellis(AVCodecContext *avctx, · 69 unmodified lines
398398 STORE_NODE(ms, FFMAX(16,
399399 (ff_adpcm_AdaptationTable[nibble] * step) >> 8));
400400 }
401− } else if (version == CODEC_ID_ADPCM_IMA_WAV ||
402− version == CODEC_ID_ADPCM_IMA_QT ||
403− version == CODEC_ID_ADPCM_SWF) {
401+ } else if (version == AV_CODEC_ID_ADPCM_IMA_WAV ||
402+ version == AV_CODEC_ID_ADPCM_IMA_QT ||
403+ version == AV_CODEC_ID_ADPCM_SWF) {
404404 #define LOOP_NODES(NAME, STEP_TABLE, STEP_INDEX)\
405405 const int predictor = nodes[j]->sample1;\
406406 const int div = (sample - predictor) * 4 / STEP_TABLE;\
@@ -419,7 +419,7 @@ static void adpcm_compress_trellis(AVCodecContext *avctx, · 12 unmodified lines
419419 }
420420 LOOP_NODES(ima, ff_adpcm_step_table[step],
421421 av_clip(step + ff_adpcm_index_table[nibble], 0, 88));
422− } else { //CODEC_ID_ADPCM_YAMAHA
422+ } else { //AV_CODEC_ID_ADPCM_YAMAHA
423423 LOOP_NODES(yamaha, step,
424424 av_clip((step * ff_adpcm_yamaha_indexscale[nibble]) >> 8,
425425 127, 24567));
@@ -487,7 +487,7 @@ static int adpcm_encode_frame(AVCodecContext *avctx, AVPacket *avpkt, · 61 unmodified lines
487487 samples = (const int16_t *)frame->data[0];
488488 st = avctx->channels == 2;
489489
490− if (avctx->codec_id == CODEC_ID_ADPCM_SWF)
490+ if (avctx->codec_id == AV_CODEC_ID_ADPCM_SWF)
491491 pkt_size = (2 + avctx->channels * (22 + 4 * (frame->nb_samples - 1)) + 7) / 8;
492492 else
493493 pkt_size = avctx->block_align;
@@ -498,7 +498,7 @@ static int adpcm_encode_frame(AVCodecContext *avctx, AVPacket *avpkt, · 4 unmodified lines
498498 dst = avpkt->data;
499499
500500 switch(avctx->codec->id) {
501− case CODEC_ID_ADPCM_IMA_WAV:
501+ case AV_CODEC_ID_ADPCM_IMA_WAV:
502502 n = frame->nb_samples / 8;
503503 c->status[0].prev_sample = samples[0];
504504 /* c->status[0].step_index = 0;
@@ -563,7 +563,7 @@ static int adpcm_encode_frame(AVCodecContext *avctx, AVPacket *avpkt, · 58 unmodified lines
563563 }
564564 }
565565 break;
566− case CODEC_ID_ADPCM_IMA_QT:
566+ case AV_CODEC_ID_ADPCM_IMA_QT:
567567 {
568568 int ch, i;
569569 PutBitContext pb;
@@ -593,7 +593,7 @@ static int adpcm_encode_frame(AVCodecContext *avctx, AVPacket *avpkt, · 23 unmodified lines
593593 flush_put_bits(&pb);
594594 break;
595595 }
596− case CODEC_ID_ADPCM_SWF:
596+ case AV_CODEC_ID_ADPCM_SWF:
597597 {
598598 int i;
599599 PutBitContext pb;
@@ -637,7 +637,7 @@ static int adpcm_encode_frame(AVCodecContext *avctx, AVPacket *avpkt, · 37 unmodified lines
637637 flush_put_bits(&pb);
638638 break;
639639 }
640− case CODEC_ID_ADPCM_MS:
640+ case AV_CODEC_ID_ADPCM_MS:
641641 for (i = 0; i < avctx->channels; i++) {
642642 int predictor = 0;
643643 *dst++ = predictor;
@@ -681,7 +681,7 @@ static int adpcm_encode_frame(AVCodecContext *avctx, AVPacket *avpkt, · 37 unmodified lines
681681 }
682682 }
683683 break;
684− case CODEC_ID_ADPCM_YAMAHA:
684+ case AV_CODEC_ID_ADPCM_YAMAHA:
685685 n = frame->nb_samples / 2;
686686 if (avctx->trellis > 0) {
687687 FF_ALLOC_OR_GOTO(avctx, buf, 2 * n * 2, error);
@@ -733,8 +733,8 @@ AVCodec ff_ ## name_ ## _encoder = { \ · 45 unmodified lines
733733 .long_name = NULL_IF_CONFIG_SMALL(long_name_), \
734734 }
735735
736−ADPCM_ENCODER(CODEC_ID_ADPCM_IMA_QT, adpcm_ima_qt, "ADPCM IMA QuickTime");
737−ADPCM_ENCODER(CODEC_ID_ADPCM_IMA_WAV, adpcm_ima_wav, "ADPCM IMA WAV");
738−ADPCM_ENCODER(CODEC_ID_ADPCM_MS, adpcm_ms, "ADPCM Microsoft");
739−ADPCM_ENCODER(CODEC_ID_ADPCM_SWF, adpcm_swf, "ADPCM Shockwave Flash");
740−ADPCM_ENCODER(CODEC_ID_ADPCM_YAMAHA, adpcm_yamaha, "ADPCM Yamaha");
736+ADPCM_ENCODER(AV_CODEC_ID_ADPCM_IMA_QT, adpcm_ima_qt, "ADPCM IMA QuickTime");
737+ADPCM_ENCODER(AV_CODEC_ID_ADPCM_IMA_WAV, adpcm_ima_wav, "ADPCM IMA WAV");
738+ADPCM_ENCODER(AV_CODEC_ID_ADPCM_MS, adpcm_ms, "ADPCM Microsoft");
739+ADPCM_ENCODER(AV_CODEC_ID_ADPCM_SWF, adpcm_swf, "ADPCM Shockwave Flash");
740+ADPCM_ENCODER(AV_CODEC_ID_ADPCM_YAMAHA, adpcm_yamaha, "ADPCM Yamaha");
libavcodec/adx_parser.c+1−1
@@ -89,7 +89,7 @@ static int adx_parse(AVCodecParserContext *s1, · 88 unmodified lines
8989 }
9090
9191 AVCodecParser ff_adx_parser = {
92− .codec_ids = { CODEC_ID_ADPCM_ADX },
92+ .codec_ids = { AV_CODEC_ID_ADPCM_ADX },
9393 .priv_data_size = sizeof(ADXParseContext),
9494 .parser_parse = adx_parse,
9595 .parser_close = ff_parse_close,
libavcodec/adxdec.c+1−1
@@ -175,7 +175,7 @@ static void adx_decode_flush(AVCodecContext *avctx) · 174 unmodified lines
175175 AVCodec ff_adpcm_adx_decoder = {
176176 .name = "adpcm_adx",
177177 .type = AVMEDIA_TYPE_AUDIO,
178− .id = CODEC_ID_ADPCM_ADX,
178+ .id = AV_CODEC_ID_ADPCM_ADX,
179179 .priv_data_size = sizeof(ADXContext),
180180 .init = adx_decode_init,
181181 .decode = adx_decode_frame,
libavcodec/adxenc.c+1−1
@@ -166,7 +166,7 @@ static int adx_encode_frame(AVCodecContext *avctx, AVPacket *avpkt, · 165 unmodified lines
166166 AVCodec ff_adpcm_adx_encoder = {
167167 .name = "adpcm_adx",
168168 .type = AVMEDIA_TYPE_AUDIO,
169− .id = CODEC_ID_ADPCM_ADX,
169+ .id = AV_CODEC_ID_ADPCM_ADX,
170170 .priv_data_size = sizeof(ADXContext),
171171 .init = adx_encode_init,
172172 .encode2 = adx_encode_frame,
libavcodec/alac.c+1−1
@@ -605,7 +605,7 @@ static av_cold int alac_decode_init(AVCodecContext * avctx) · 604 unmodified lines
605605 AVCodec ff_alac_decoder = {
606606 .name = "alac",
607607 .type = AVMEDIA_TYPE_AUDIO,
608− .id = CODEC_ID_ALAC,
608+ .id = AV_CODEC_ID_ALAC,
609609 .priv_data_size = sizeof(ALACContext),
610610 .init = alac_decode_init,
611611 .close = alac_decode_close,
libavcodec/alacenc.c+1−1
@@ -576,7 +576,7 @@ static int alac_encode_frame(AVCodecContext *avctx, AVPacket *avpkt, · 575 unmodified lines
576576 AVCodec ff_alac_encoder = {
577577 .name = "alac",
578578 .type = AVMEDIA_TYPE_AUDIO,
579− .id = CODEC_ID_ALAC,
579+ .id = AV_CODEC_ID_ALAC,
580580 .priv_data_size = sizeof(AlacEncodeContext),
581581 .init = alac_encode_init,
582582 .encode2 = alac_encode_frame,
libavcodec/alsdec.c+1−1
@@ -1740,7 +1740,7 @@ static av_cold void flush(AVCodecContext *avctx) · 1739 unmodified lines
17401740 AVCodec ff_als_decoder = {
17411741 .name = "als",
17421742 .type = AVMEDIA_TYPE_AUDIO,
1743− .id = CODEC_ID_MP4ALS,
1743+ .id = AV_CODEC_ID_MP4ALS,
17441744 .priv_data_size = sizeof(ALSDecContext),
17451745 .init = decode_init,
17461746 .close = decode_end,
libavcodec/amrnbdec.c+1−1
@@ -1057,7 +1057,7 @@ static int amrnb_decode_frame(AVCodecContext *avctx, void *data, · 1056 unmodified lines
10571057 AVCodec ff_amrnb_decoder = {
10581058 .name = "amrnb",
10591059 .type = AVMEDIA_TYPE_AUDIO,
1060− .id = CODEC_ID_AMR_NB,
1060+ .id = AV_CODEC_ID_AMR_NB,
10611061 .priv_data_size = sizeof(AMRContext),
10621062 .init = amrnb_decode_init,
10631063 .decode = amrnb_decode_frame,
libavcodec/amrwbdec.c+1−1
@@ -1237,7 +1237,7 @@ static int amrwb_decode_frame(AVCodecContext *avctx, void *data, · 1236 unmodified lines
12371237 AVCodec ff_amrwb_decoder = {
12381238 .name = "amrwb",
12391239 .type = AVMEDIA_TYPE_AUDIO,
1240− .id = CODEC_ID_AMR_WB,
1240+ .id = AV_CODEC_ID_AMR_WB,
12411241 .priv_data_size = sizeof(AMRWBContext),
12421242 .init = amrwb_decode_init,
12431243 .decode = amrwb_decode_frame,
libavcodec/anm.c+1−1
@@ -186,7 +186,7 @@ static av_cold int decode_end(AVCodecContext *avctx) · 185 unmodified lines
186186 AVCodec ff_anm_decoder = {
187187 .name = "anm",
188188 .type = AVMEDIA_TYPE_VIDEO,
189− .id = CODEC_ID_ANM,
189+ .id = AV_CODEC_ID_ANM,
190190 .priv_data_size = sizeof(AnmContext),
191191 .init = decode_init,
192192 .close = decode_end,
libavcodec/ansi.c+1−1
@@ -425,7 +425,7 @@ static av_cold int decode_close(AVCodecContext *avctx) · 424 unmodified lines
425425 AVCodec ff_ansi_decoder = {
426426 .name = "ansi",
427427 .type = AVMEDIA_TYPE_VIDEO,
428− .id = CODEC_ID_ANSI,
428+ .id = AV_CODEC_ID_ANSI,
429429 .priv_data_size = sizeof(AnsiContext),
430430 .init = decode_init,
431431 .close = decode_close,
libavcodec/apedec.c+1−1
@@ -987,7 +987,7 @@ static const AVClass ape_decoder_class = { · 986 unmodified lines
987987 AVCodec ff_ape_decoder = {
988988 .name = "ape",
989989 .type = AVMEDIA_TYPE_AUDIO,
990− .id = CODEC_ID_APE,
990+ .id = AV_CODEC_ID_APE,
991991 .priv_data_size = sizeof(APEContext),
992992 .init = ape_decode_init,
993993 .close = ape_decode_close,
libavcodec/api-example.c+4−4
@@ -60,7 +60,7 @@ static void audio_encode_example(const char *filename) · 59 unmodified lines
6060 printf("Audio encoding\n");
6161
6262 /* find the MP2 encoder */
63− codec = avcodec_find_encoder(CODEC_ID_MP2);
63+ codec = avcodec_find_encoder(AV_CODEC_ID_MP2);
6464 if (!codec) {
6565 fprintf(stderr, "codec not found\n");
6666 exit(1);
@@ -130,7 +130,7 @@ static void audio_decode_example(const char *outfilename, const char *filename) · 63 unmodified lines
130130 printf("Audio decoding\n");
131131
132132 /* find the mpeg audio decoder */
133− codec = avcodec_find_decoder(CODEC_ID_MP2);
133+ codec = avcodec_find_decoder(AV_CODEC_ID_MP2);
134134 if (!codec) {
135135 fprintf(stderr, "codec not found\n");
136136 exit(1);
@@ -221,7 +221,7 @@ static void video_encode_example(const char *filename) · 84 unmodified lines
221221 printf("Video encoding\n");
222222
223223 /* find the mpeg1 video encoder */
224− codec = avcodec_find_encoder(CODEC_ID_MPEG1VIDEO);
224+ codec = avcodec_find_encoder(AV_CODEC_ID_MPEG1VIDEO);
225225 if (!codec) {
226226 fprintf(stderr, "codec not found\n");
227227 exit(1);
@@ -352,7 +352,7 @@ static void video_decode_example(const char *outfilename, const char *filename) · 124 unmodified lines
352352 printf("Video decoding\n");
353353
354354 /* find the mpeg1 video decoder */
355− codec = avcodec_find_decoder(CODEC_ID_MPEG1VIDEO);
355+ codec = avcodec_find_decoder(AV_CODEC_ID_MPEG1VIDEO);
356356 if (!codec) {
357357 fprintf(stderr, "codec not found\n");
358358 exit(1);
libavcodec/arm/h264pred_init_arm.c+3−3
@@ -52,10 +52,10 @@ static void ff_h264_pred_init_neon(H264PredContext *h, int codec_id, const int b · 51 unmodified lines
5252
5353 h->pred8x8[VERT_PRED8x8 ] = ff_pred8x8_vert_neon;
5454 h->pred8x8[HOR_PRED8x8 ] = ff_pred8x8_hor_neon;
55− if (codec_id != CODEC_ID_VP8)
55+ if (codec_id != AV_CODEC_ID_VP8)
5656 h->pred8x8[PLANE_PRED8x8] = ff_pred8x8_plane_neon;
5757 h->pred8x8[DC_128_PRED8x8 ] = ff_pred8x8_128_dc_neon;
58− if (codec_id != CODEC_ID_RV40 && codec_id != CODEC_ID_VP8) {
58+ if (codec_id != AV_CODEC_ID_RV40 && codec_id != AV_CODEC_ID_VP8) {
5959 h->pred8x8[DC_PRED8x8 ] = ff_pred8x8_dc_neon;
6060 h->pred8x8[LEFT_DC_PRED8x8] = ff_pred8x8_left_dc_neon;
6161 h->pred8x8[TOP_DC_PRED8x8 ] = ff_pred8x8_top_dc_neon;
@@ -71,7 +71,7 @@ static void ff_h264_pred_init_neon(H264PredContext *h, int codec_id, const int b · 9 unmodified lines
7171 h->pred16x16[LEFT_DC_PRED8x8] = ff_pred16x16_left_dc_neon;
7272 h->pred16x16[TOP_DC_PRED8x8 ] = ff_pred16x16_top_dc_neon;
7373 h->pred16x16[DC_128_PRED8x8 ] = ff_pred16x16_128_dc_neon;
74− if (codec_id != CODEC_ID_SVQ3 && codec_id != CODEC_ID_RV40 && codec_id != CODEC_ID_VP8)
74+ if (codec_id != AV_CODEC_ID_SVQ3 && codec_id != AV_CODEC_ID_RV40 && codec_id != AV_CODEC_ID_VP8)
7575 h->pred16x16[PLANE_PRED8x8 ] = ff_pred16x16_plane_neon;
7676 }
7777
libavcodec/arm/vp56dsp_init_arm.c+2−2
@@ -27,11 +27,11 @@ · 26 unmodified lines
2727 void ff_vp6_edge_filter_hor_neon(uint8_t *yuv, int stride, int t);
2828 void ff_vp6_edge_filter_ver_neon(uint8_t *yuv, int stride, int t);
2929
30−void ff_vp56dsp_init_arm(VP56DSPContext *s, enum CodecID codec)
30+void ff_vp56dsp_init_arm(VP56DSPContext *s, enum AVCodecID codec)
3131 {
3232 int cpu_flags = av_get_cpu_flags();
3333
34− if (codec != CODEC_ID_VP5 && have_neon(cpu_flags)) {
34+ if (codec != AV_CODEC_ID_VP5 && have_neon(cpu_flags)) {
3535 s->edge_filter_hor = ff_vp6_edge_filter_hor_neon;
3636 s->edge_filter_ver = ff_vp6_edge_filter_ver_neon;
3737 }
libavcodec/assdec.c+1−1
@@ -56,7 +56,7 @@ AVCodec ff_ass_decoder = { · 55 unmodified lines
5656 .name = "ass",
5757 .long_name = NULL_IF_CONFIG_SMALL("SSA (SubStation Alpha) subtitle"),
5858 .type = AVMEDIA_TYPE_SUBTITLE,
59− .id = CODEC_ID_SSA,
59+ .id = AV_CODEC_ID_SSA,
6060 .init = ass_decode_init,
6161 .decode = ass_decode_frame,
6262 };
libavcodec/assenc.c+1−1
@@ -61,7 +61,7 @@ AVCodec ff_ass_encoder = { · 60 unmodified lines
6161 .name = "ass",
6262 .long_name = NULL_IF_CONFIG_SMALL("SSA (SubStation Alpha) subtitle"),
6363 .type = AVMEDIA_TYPE_SUBTITLE,
64− .id = CODEC_ID_SSA,
64+ .id = AV_CODEC_ID_SSA,
6565 .init = ass_encode_init,
6666 .encode = ass_encode_frame,
6767 };
libavcodec/asv1.c+11−11
@@ -311,7 +311,7 @@ static inline int decode_mb(ASV1Context *a, DCTELEM block[6][64]){ · 310 unmodified lines
311311
312312 a->dsp.clear_blocks(block[0]);
313313
314− if(a->avctx->codec_id == CODEC_ID_ASV1){
314+ if(a->avctx->codec_id == AV_CODEC_ID_ASV1){
315315 for(i=0; i<6; i++){
316316 if( asv1_decode_block(a, block[i]) < 0)
317317 return -1;
@@ -335,7 +335,7 @@ static inline int encode_mb(ASV1Context *a, DCTELEM block[6][64]){ · 17 unmodified lines
335335 return -1;
336336 }
337337
338− if(a->avctx->codec_id == CODEC_ID_ASV1){
338+ if(a->avctx->codec_id == AV_CODEC_ID_ASV1){
339339 for(i=0; i<6; i++)
340340 asv1_encode_block(a, block[i]);
341341 }else{
@@ -415,7 +415,7 @@ static int decode_frame(AVCodecContext *avctx, · 73 unmodified lines
415415 if (!a->bitstream_buffer)
416416 return AVERROR(ENOMEM);
417417
418− if(avctx->codec_id == CODEC_ID_ASV1)
418+ if(avctx->codec_id == AV_CODEC_ID_ASV1)
419419 a->dsp.bswap_buf((uint32_t*)a->bitstream_buffer, (const uint32_t*)buf, buf_size/4);
420420 else{
421421 int i;
@@ -514,7 +514,7 @@ static int encode_frame(AVCodecContext *avctx, AVPacket *pkt, · 92 unmodified lines
514514
515515 size= put_bits_count(&a->pb)/32;
516516
517− if(avctx->codec_id == CODEC_ID_ASV1)
517+ if(avctx->codec_id == AV_CODEC_ID_ASV1)
518518 a->dsp.bswap_buf((uint32_t*)pkt->data, (uint32_t*)pkt->data, size);
519519 else{
520520 int i;
@@ -548,7 +548,7 @@ static av_cold int decode_init(AVCodecContext *avctx){ · 27 unmodified lines
548548 ASV1Context * const a = avctx->priv_data;
549549 AVFrame *p= &a->picture;
550550 int i;
551− const int scale= avctx->codec_id == CODEC_ID_ASV1 ? 1 : 2;
551+ const int scale= avctx->codec_id == AV_CODEC_ID_ASV1 ? 1 : 2;
552552
553553 common_init(avctx);
554554 init_vlcs(a);
@@ -558,7 +558,7 @@ static av_cold int decode_init(AVCodecContext *avctx){ · 3 unmodified lines
558558 a->inv_qscale= avctx->extradata[0];
559559 if(a->inv_qscale == 0){
560560 av_log(avctx, AV_LOG_ERROR, "illegal qscale 0\n");
561− if(avctx->codec_id == CODEC_ID_ASV1)
561+ if(avctx->codec_id == AV_CODEC_ID_ASV1)
562562 a->inv_qscale= 6;
563563 else
564564 a->inv_qscale= 10;
@@ -582,7 +582,7 @@ static av_cold int decode_init(AVCodecContext *avctx){ · 17 unmodified lines
582582 static av_cold int encode_init(AVCodecContext *avctx){
583583 ASV1Context * const a = avctx->priv_data;
584584 int i;
585− const int scale= avctx->codec_id == CODEC_ID_ASV1 ? 1 : 2;
585+ const int scale= avctx->codec_id == AV_CODEC_ID_ASV1 ? 1 : 2;
586586
587587 common_init(avctx);
588588
@@ -620,7 +620,7 @@ static av_cold int decode_end(AVCodecContext *avctx){ · 31 unmodified lines
620620 AVCodec ff_asv1_decoder = {
621621 .name = "asv1",
622622 .type = AVMEDIA_TYPE_VIDEO,
623− .id = CODEC_ID_ASV1,
623+ .id = AV_CODEC_ID_ASV1,
624624 .priv_data_size = sizeof(ASV1Context),
625625 .init = decode_init,
626626 .close = decode_end,
@@ -632,7 +632,7 @@ AVCodec ff_asv1_decoder = { · 5 unmodified lines
632632 AVCodec ff_asv2_decoder = {
633633 .name = "asv2",
634634 .type = AVMEDIA_TYPE_VIDEO,
635− .id = CODEC_ID_ASV2,
635+ .id = AV_CODEC_ID_ASV2,
636636 .priv_data_size = sizeof(ASV1Context),
637637 .init = decode_init,
638638 .close = decode_end,
@@ -645,7 +645,7 @@ AVCodec ff_asv2_decoder = { · 6 unmodified lines
645645 AVCodec ff_asv1_encoder = {
646646 .name = "asv1",
647647 .type = AVMEDIA_TYPE_VIDEO,
648− .id = CODEC_ID_ASV1,
648+ .id = AV_CODEC_ID_ASV1,
649649 .priv_data_size = sizeof(ASV1Context),
650650 .init = encode_init,
651651 .encode2 = encode_frame,
@@ -658,7 +658,7 @@ AVCodec ff_asv1_encoder = { · 6 unmodified lines
658658 AVCodec ff_asv2_encoder = {
659659 .name = "asv2",
660660 .type = AVMEDIA_TYPE_VIDEO,
661− .id = CODEC_ID_ASV2,
661+ .id = AV_CODEC_ID_ASV2,
662662 .priv_data_size = sizeof(ASV1Context),
663663 .init = encode_init,
664664 .encode2 = encode_frame,
libavcodec/atrac1.c+1−1
@@ -403,7 +403,7 @@ static av_cold int atrac1_decode_init(AVCodecContext *avctx) · 402 unmodified lines
403403 AVCodec ff_atrac1_decoder = {
404404 .name = "atrac1",
405405 .type = AVMEDIA_TYPE_AUDIO,
406− .id = CODEC_ID_ATRAC1,
406+ .id = AV_CODEC_ID_ATRAC1,
407407 .priv_data_size = sizeof(AT1Ctx),
408408 .init = atrac1_decode_init,
409409 .close = atrac1_decode_end,
libavcodec/atrac3.c+1−1
@@ -1068,7 +1068,7 @@ AVCodec ff_atrac3_decoder = · 1067 unmodified lines
10681068 {
10691069 .name = "atrac3",
10701070 .type = AVMEDIA_TYPE_AUDIO,
1071− .id = CODEC_ID_ATRAC3,
1071+ .id = AV_CODEC_ID_ATRAC3,
10721072 .priv_data_size = sizeof(ATRAC3Context),
10731073 .init = atrac3_decode_init,
10741074 .close = atrac3_decode_close,
libavcodec/aura.c+1−1
@@ -125,7 +125,7 @@ static av_cold int aura_decode_end(AVCodecContext *avctx) · 124 unmodified lines
125125 AVCodec ff_aura2_decoder = {
126126 .name = "aura2",
127127 .type = AVMEDIA_TYPE_VIDEO,
128− .id = CODEC_ID_AURA2,
128+ .id = AV_CODEC_ID_AURA2,
129129 .priv_data_size = sizeof(AuraDecodeContext),
130130 .init = aura_decode_init,
131131 .close = aura_decode_end,
libavcodec/avcodec.h+11−11
@@ -1265,7 +1265,7 @@ typedef struct AVCodecContext { · 1264 unmodified lines
12651265 enum AVMediaType codec_type; /* see AVMEDIA_TYPE_xxx */
12661266 struct AVCodec *codec;
12671267 char codec_name[32];
1268− enum CodecID codec_id; /* see AV_CODEC_ID_xxx */
1268+ enum AVCodecID codec_id; /* see AV_CODEC_ID_xxx */
12691269
12701270 /**
12711271 * fourcc (LSB first, so "ABCD" -> ('D'<<24) + ('C'<<16) + ('B'<<8) + 'A').
@@ -2869,7 +2869,7 @@ typedef struct AVCodec { · 1597 unmodified lines
28692869 */
28702870 const char *long_name;
28712871 enum AVMediaType type;
2872− enum CodecID id;
2872+ enum AVCodecID id;
28732873 /**
28742874 * Codec capabilities.
28752875 * see CODEC_CAP_*
@@ -2967,9 +2967,9 @@ typedef struct AVHWAccel { · 91 unmodified lines
29672967 /**
29682968 * Codec implemented by the hardware accelerator.
29692969 *
2970− * See CODEC_ID_xxx
2970+ * See AV_CODEC_ID_xxx
29712971 */
2972− enum CodecID id;
2972+ enum AVCodecID id;
29732973
29742974 /**
29752975 * Supported pixel format.
@@ -3388,10 +3388,10 @@ uint8_t* av_packet_get_side_data(AVPacket *pkt, enum AVPacketSideDataType type, · 412 unmodified lines
33883388 /**
33893389 * Find a registered decoder with a matching codec ID.
33903390 *
3391− * @param id CodecID of the requested decoder
3391+ * @param id AVCodecID of the requested decoder
33923392 * @return A decoder if one was found, NULL otherwise.
33933393 */
3394−AVCodec *avcodec_find_decoder(enum CodecID id);
3394+AVCodec *avcodec_find_decoder(enum AVCodecID id);
33953395
33963396 /**
33973397 * Find a registered decoder with the specified name.
@@ -3810,10 +3810,10 @@ void av_parser_close(AVCodecParserContext *s); · 412 unmodified lines
38103810 /**
38113811 * Find a registered encoder with a matching codec ID.
38123812 *
3813− * @param id CodecID of the requested encoder
3813+ * @param id AVCodecID of the requested encoder
38143814 * @return An encoder if one was found, NULL otherwise.
38153815 */
3816−AVCodec *avcodec_find_encoder(enum CodecID id);
3816+AVCodec *avcodec_find_encoder(enum AVCodecID id);
38173817
38183818 /**
38193819 * Find a registered encoder with the specified name.
@@ -4323,7 +4323,7 @@ void avcodec_default_free_buffers(AVCodecContext *s); · 503 unmodified lines
43234323 * @param[in] codec_id the codec
43244324 * @return Number of bits per sample or zero if unknown for the given codec.
43254325 */
4326−int av_get_bits_per_sample(enum CodecID codec_id);
4326+int av_get_bits_per_sample(enum AVCodecID codec_id);
43274327
43284328 /**
43294329 * Return codec bits per sample.
@@ -4333,7 +4333,7 @@ int av_get_bits_per_sample(enum CodecID codec_id); · 3 unmodified lines
43334333 * @param[in] codec_id the codec
43344334 * @return Number of bits per sample or zero if unknown for the given codec.
43354335 */
4336−int av_get_exact_bits_per_sample(enum CodecID codec_id);
4336+int av_get_exact_bits_per_sample(enum AVCodecID codec_id);
43374337
43384338 /**
43394339 * Return audio frame duration.
@@ -4481,7 +4481,7 @@ int av_lockmgr_register(int (*cb)(void **mutex, enum AVLockOp op)); · 141 unmodified lines
44814481 /**
44824482 * Get the type of the given codec.
44834483 */
4484−enum AVMediaType avcodec_get_type(enum CodecID codec_id);
4484+enum AVMediaType avcodec_get_type(enum AVCodecID codec_id);
44854485
44864486 /**
44874487 * @return a positive value if s is open (i.e. avcodec_open2() was called on it
libavcodec/avs.c+1−1
@@ -173,7 +173,7 @@ static av_cold int avs_decode_end(AVCodecContext *avctx) · 172 unmodified lines
173173 AVCodec ff_avs_decoder = {
174174 .name = "avs",
175175 .type = AVMEDIA_TYPE_VIDEO,
176− .id = CODEC_ID_AVS,
176+ .id = AV_CODEC_ID_AVS,
177177 .priv_data_size = sizeof(AvsContext),
178178 .init = avs_decode_init,
179179 .decode = avs_decode_frame,
libavcodec/bethsoftvideo.c+1−1
@@ -153,7 +153,7 @@ static av_cold int bethsoftvid_decode_end(AVCodecContext *avctx) · 152 unmodified lines
153153 AVCodec ff_bethsoftvid_decoder = {
154154 .name = "bethsoftvid",
155155 .type = AVMEDIA_TYPE_VIDEO,
156− .id = CODEC_ID_BETHSOFTVID,
156+ .id = AV_CODEC_ID_BETHSOFTVID,
157157 .priv_data_size = sizeof(BethsoftvidContext),
158158 .init = bethsoftvid_decode_init,
159159 .close = bethsoftvid_decode_end,
libavcodec/bfi.c+1−1
@@ -180,7 +180,7 @@ static av_cold int bfi_decode_close(AVCodecContext *avctx) · 179 unmodified lines
180180 AVCodec ff_bfi_decoder = {
181181 .name = "bfi",
182182 .type = AVMEDIA_TYPE_VIDEO,
183− .id = CODEC_ID_BFI,
183+ .id = AV_CODEC_ID_BFI,
184184 .priv_data_size = sizeof(BFIContext),
185185 .init = bfi_decode_init,
186186 .close = bfi_decode_close,
libavcodec/bink.c+1−1
@@ -1330,7 +1330,7 @@ static av_cold int decode_end(AVCodecContext *avctx) · 1329 unmodified lines
13301330 AVCodec ff_bink_decoder = {
13311331 .name = "binkvideo",
13321332 .type = AVMEDIA_TYPE_VIDEO,
1333− .id = CODEC_ID_BINKVIDEO,
1333+ .id = AV_CODEC_ID_BINKVIDEO,
13341334 .priv_data_size = sizeof(BinkContext),
13351335 .init = decode_init,
13361336 .close = decode_end,
libavcodec/binkaudio.c+6−6
@@ -98,7 +98,7 @@ static av_cold int decode_init(AVCodecContext *avctx) · 97 unmodified lines
9898
9999 s->version_b = avctx->extradata && avctx->extradata[3] == 'b';
100100
101− if (avctx->codec->id == CODEC_ID_BINKAUDIO_RDFT) {
101+ if (avctx->codec->id == AV_CODEC_ID_BINKAUDIO_RDFT) {
102102 // audio is already interleaved for the RDFT format variant
103103 sample_rate *= avctx->channels;
104104 s->channels = 1;
@@ -141,7 +141,7 @@ static av_cold int decode_init(AVCodecContext *avctx) · 36 unmodified lines
141141 s->prev_ptr[i] = s->coeffs_ptr[i] + s->frame_len - s->overlap_len;
142142 }
143143
144− if (CONFIG_BINKAUDIO_RDFT_DECODER && avctx->codec->id == CODEC_ID_BINKAUDIO_RDFT)
144+ if (CONFIG_BINKAUDIO_RDFT_DECODER && avctx->codec->id == AV_CODEC_ID_BINKAUDIO_RDFT)
145145 ff_rdft_init(&s->trans.rdft, frame_len_bits, DFT_C2R);
146146 else if (CONFIG_BINKAUDIO_DCT_DECODER)
147147 ff_dct_init(&s->trans.dct, frame_len_bits, DCT_III);
@@ -293,7 +293,7 @@ static av_cold int decode_end(AVCodecContext *avctx) · 145 unmodified lines
293293 BinkAudioContext * s = avctx->priv_data;
294294 av_freep(&s->bands);
295295 av_freep(&s->packet_buffer);
296− if (CONFIG_BINKAUDIO_RDFT_DECODER && avctx->codec->id == CODEC_ID_BINKAUDIO_RDFT)
296+ if (CONFIG_BINKAUDIO_RDFT_DECODER && avctx->codec->id == AV_CODEC_ID_BINKAUDIO_RDFT)
297297 ff_rdft_end(&s->trans.rdft);
298298 else if (CONFIG_BINKAUDIO_DCT_DECODER)
299299 ff_dct_end(&s->trans.dct);
@@ -346,7 +346,7 @@ static int decode_frame(AVCodecContext *avctx, void *data, · 46 unmodified lines
346346 }
347347 samples = (int16_t *)s->frame.data[0];
348348
349− if (decode_block(s, samples, avctx->codec->id == CODEC_ID_BINKAUDIO_DCT)) {
349+ if (decode_block(s, samples, avctx->codec->id == AV_CODEC_ID_BINKAUDIO_DCT)) {
350350 av_log(avctx, AV_LOG_ERROR, "Incomplete packet\n");
351351 return AVERROR_INVALIDDATA;
352352 }
@@ -361,7 +361,7 @@ static int decode_frame(AVCodecContext *avctx, void *data, · 8 unmodified lines
361361 AVCodec ff_binkaudio_rdft_decoder = {
362362 .name = "binkaudio_rdft",
363363 .type = AVMEDIA_TYPE_AUDIO,
364− .id = CODEC_ID_BINKAUDIO_RDFT,
364+ .id = AV_CODEC_ID_BINKAUDIO_RDFT,
365365 .priv_data_size = sizeof(BinkAudioContext),
366366 .init = decode_init,
367367 .close = decode_end,
@@ -373,7 +373,7 @@ AVCodec ff_binkaudio_rdft_decoder = { · 5 unmodified lines
373373 AVCodec ff_binkaudio_dct_decoder = {
374374 .name = "binkaudio_dct",
375375 .type = AVMEDIA_TYPE_AUDIO,
376− .id = CODEC_ID_BINKAUDIO_DCT,
376+ .id = AV_CODEC_ID_BINKAUDIO_DCT,
377377 .priv_data_size = sizeof(BinkAudioContext),
378378 .init = decode_init,
379379 .close = decode_end,
libavcodec/bmp.c+1−1
@@ -364,7 +364,7 @@ static av_cold int bmp_decode_end(AVCodecContext *avctx) · 363 unmodified lines
364364 AVCodec ff_bmp_decoder = {
365365 .name = "bmp",
366366 .type = AVMEDIA_TYPE_VIDEO,
367− .id = CODEC_ID_BMP,
367+ .id = AV_CODEC_ID_BMP,
368368 .priv_data_size = sizeof(BMPContext),
369369 .init = bmp_decode_init,
370370 .close = bmp_decode_end,
libavcodec/bmpenc.c+1−1
@@ -162,7 +162,7 @@ static int bmp_encode_frame(AVCodecContext *avctx, AVPacket *pkt, · 161 unmodified lines
162162 AVCodec ff_bmp_encoder = {
163163 .name = "bmp",
164164 .type = AVMEDIA_TYPE_VIDEO,
165− .id = CODEC_ID_BMP,
165+ .id = AV_CODEC_ID_BMP,
166166 .priv_data_size = sizeof(BMPContext),
167167 .init = bmp_encode_init,
168168 .encode2 = bmp_encode_frame,
libavcodec/bmv.c+2−2
@@ -360,7 +360,7 @@ static int bmv_aud_decode_frame(AVCodecContext *avctx, void *data, · 359 unmodified lines
360360 AVCodec ff_bmv_video_decoder = {
361361 .name = "bmv_video",
362362 .type = AVMEDIA_TYPE_VIDEO,
363− .id = CODEC_ID_BMV_VIDEO,
363+ .id = AV_CODEC_ID_BMV_VIDEO,
364364 .priv_data_size = sizeof(BMVDecContext),
365365 .init = decode_init,
366366 .close = decode_end,
@@ -371,7 +371,7 @@ AVCodec ff_bmv_video_decoder = { · 4 unmodified lines
371371 AVCodec ff_bmv_audio_decoder = {
372372 .name = "bmv_audio",
373373 .type = AVMEDIA_TYPE_AUDIO,
374− .id = CODEC_ID_BMV_AUDIO,
374+ .id = AV_CODEC_ID_BMV_AUDIO,
375375 .priv_data_size = sizeof(BMVAudioDecContext),
376376 .init = bmv_aud_decode_init,
377377 .decode = bmv_aud_decode_frame,
libavcodec/c93.c+1−1
@@ -247,7 +247,7 @@ static int decode_frame(AVCodecContext *avctx, void *data, · 246 unmodified lines
247247 AVCodec ff_c93_decoder = {
248248 .name = "c93",
249249 .type = AVMEDIA_TYPE_VIDEO,
250− .id = CODEC_ID_C93,
250+ .id = AV_CODEC_ID_C93,
251251 .priv_data_size = sizeof(C93DecoderContext),
252252 .init = decode_init,
253253 .close = decode_end,
libavcodec/cavs_parser.c+1−1
@@ -98,7 +98,7 @@ static int cavsvideo_parse(AVCodecParserContext *s, · 97 unmodified lines
9898 }
9999
100100 AVCodecParser ff_cavsvideo_parser = {
101− .codec_ids = { CODEC_ID_CAVS },
101+ .codec_ids = { AV_CODEC_ID_CAVS },
102102 .priv_data_size = sizeof(ParseContext),
103103 .parser_parse = cavsvideo_parse,
104104 .parser_close = ff_parse_close,
libavcodec/cavsdec.c+1−1
@@ -718,7 +718,7 @@ static int cavs_decode_frame(AVCodecContext * avctx,void *data, int *data_size, · 717 unmodified lines
718718 AVCodec ff_cavs_decoder = {
719719 .name = "cavs",
720720 .type = AVMEDIA_TYPE_VIDEO,
721− .id = CODEC_ID_CAVS,
721+ .id = AV_CODEC_ID_CAVS,
722722 .priv_data_size = sizeof(AVSContext),
723723 .init = ff_cavs_init,
724724 .close = ff_cavs_end,
libavcodec/cdgraphics.c+1−1
@@ -370,7 +370,7 @@ static av_cold int cdg_decode_end(AVCodecContext *avctx) · 369 unmodified lines
370370 AVCodec ff_cdgraphics_decoder = {
371371 .name = "cdgraphics",
372372 .type = AVMEDIA_TYPE_VIDEO,
373− .id = CODEC_ID_CDGRAPHICS,
373+ .id = AV_CODEC_ID_CDGRAPHICS,
374374 .priv_data_size = sizeof(CDGraphicsContext),
375375 .init = cdg_decode_init,
376376 .close = cdg_decode_end,
libavcodec/cdxl.c+1−1
@@ -300,7 +300,7 @@ static av_cold int cdxl_decode_end(AVCodecContext *avctx) · 299 unmodified lines
300300 AVCodec ff_cdxl_decoder = {
301301 .name = "cdxl",
302302 .type = AVMEDIA_TYPE_VIDEO,
303− .id = CODEC_ID_CDXL,
303+ .id = AV_CODEC_ID_CDXL,
304304 .priv_data_size = sizeof(CDXLVideoContext),
305305 .init = cdxl_decode_init,
306306 .close = cdxl_decode_end,
libavcodec/cinepak.c+1−1
@@ -469,7 +469,7 @@ static av_cold int cinepak_decode_end(AVCodecContext *avctx) · 468 unmodified lines
469469 AVCodec ff_cinepak_decoder = {
470470 .name = "cinepak",
471471 .type = AVMEDIA_TYPE_VIDEO,
472− .id = CODEC_ID_CINEPAK,
472+ .id = AV_CODEC_ID_CINEPAK,
473473 .priv_data_size = sizeof(CinepakContext),
474474 .init = cinepak_decode_init,
475475 .close = cinepak_decode_end,
libavcodec/cljr.c+2−2
@@ -118,7 +118,7 @@ static av_cold int decode_end(AVCodecContext *avctx) · 117 unmodified lines
118118 AVCodec ff_cljr_decoder = {
119119 .name = "cljr",
120120 .type = AVMEDIA_TYPE_VIDEO,
121− .id = CODEC_ID_CLJR,
121+ .id = AV_CODEC_ID_CLJR,
122122 .priv_data_size = sizeof(CLJRContext),
123123 .init = decode_init,
124124 .close = decode_end,
@@ -171,7 +171,7 @@ static int encode_frame(AVCodecContext *avctx, AVPacket *pkt, · 46 unmodified lines
171171 AVCodec ff_cljr_encoder = {
172172 .name = "cljr",
173173 .type = AVMEDIA_TYPE_VIDEO,
174− .id = CODEC_ID_CLJR,
174+ .id = AV_CODEC_ID_CLJR,
175175 .priv_data_size = sizeof(CLJRContext),
176176 .init = common_init,
177177 .encode2 = encode_frame,
libavcodec/cllc.c+1−1
@@ -274,7 +274,7 @@ static av_cold int cllc_decode_init(AVCodecContext *avctx) · 273 unmodified lines
274274 AVCodec ff_cllc_decoder = {
275275 .name = "cllc",
276276 .type = AVMEDIA_TYPE_VIDEO,
277− .id = CODEC_ID_CLLC,
277+ .id = AV_CODEC_ID_CLLC,
278278 .priv_data_size = sizeof(CLLCContext),
279279 .init = cllc_decode_init,
280280 .decode = cllc_decode_frame,
libavcodec/cook.c+1−1
@@ -1297,7 +1297,7 @@ static av_cold int cook_decode_init(AVCodecContext *avctx) · 1296 unmodified lines
12971297 AVCodec ff_cook_decoder = {
12981298 .name = "cook",
12991299 .type = AVMEDIA_TYPE_AUDIO,
1300− .id = CODEC_ID_COOK,
1300+ .id = AV_CODEC_ID_COOK,
13011301 .priv_data_size = sizeof(COOKContext),
13021302 .init = cook_decode_init,
13031303 .close = cook_decode_close,
libavcodec/cook_parser.c+1−1
@@ -53,7 +53,7 @@ static int cook_parse(AVCodecParserContext *s1, AVCodecContext *avctx, · 52 unmodified lines
5353 }
5454
5555 AVCodecParser ff_cook_parser = {
56− .codec_ids = { CODEC_ID_COOK },
56+ .codec_ids = { AV_CODEC_ID_COOK },
5757 .priv_data_size = sizeof(CookParseContext),
5858 .parser_parse = cook_parse,
5959 };
libavcodec/cscd.c+1−1
@@ -257,7 +257,7 @@ static av_cold int decode_end(AVCodecContext *avctx) { · 256 unmodified lines
257257 AVCodec ff_cscd_decoder = {
258258 .name = "camstudio",
259259 .type = AVMEDIA_TYPE_VIDEO,
260− .id = CODEC_ID_CSCD,
260+ .id = AV_CODEC_ID_CSCD,
261261 .priv_data_size = sizeof(CamStudioContext),
262262 .init = decode_init,
263263 .close = decode_end,
libavcodec/cyuv.c+3−3
@@ -82,7 +82,7 @@ static int cyuv_decode_frame(AVCodecContext *avctx, · 81 unmodified lines
8282 unsigned char cur_byte;
8383 int pixel_groups;
8484
85− if (avctx->codec_id == CODEC_ID_AURA) {
85+ if (avctx->codec_id == AV_CODEC_ID_AURA) {
8686 y_table = u_table;
8787 u_table = v_table;
8888 }
@@ -181,7 +181,7 @@ static av_cold int cyuv_decode_end(AVCodecContext *avctx) · 92 unmodified lines
181181 AVCodec ff_aura_decoder = {
182182 .name = "aura",
183183 .type = AVMEDIA_TYPE_VIDEO,
184− .id = CODEC_ID_AURA,
184+ .id = AV_CODEC_ID_AURA,
185185 .priv_data_size = sizeof(CyuvDecodeContext),
186186 .init = cyuv_decode_init,
187187 .close = cyuv_decode_end,
@@ -195,7 +195,7 @@ AVCodec ff_aura_decoder = { · 7 unmodified lines
195195 AVCodec ff_cyuv_decoder = {
196196 .name = "cyuv",
197197 .type = AVMEDIA_TYPE_VIDEO,
198− .id = CODEC_ID_CYUV,
198+ .id = AV_CODEC_ID_CYUV,
199199 .priv_data_size = sizeof(CyuvDecodeContext),
200200 .init = cyuv_decode_init,
201201 .close = cyuv_decode_end,
libavcodec/dca_parser.c+1−1
@@ -203,7 +203,7 @@ static int dca_parse(AVCodecParserContext * s, · 202 unmodified lines
203203 }
204204
205205 AVCodecParser ff_dca_parser = {
206− .codec_ids = { CODEC_ID_DTS },
206+ .codec_ids = { AV_CODEC_ID_DTS },
207207 .priv_data_size = sizeof(DCAParseContext),
208208 .parser_init = dca_parse_init,
209209 .parser_parse = dca_parse,
libavcodec/dcadec.c+1−1
@@ -1957,7 +1957,7 @@ static const AVProfile profiles[] = { · 1956 unmodified lines
19571957 AVCodec ff_dca_decoder = {
19581958 .name = "dca",
19591959 .type = AVMEDIA_TYPE_AUDIO,
1960− .id = CODEC_ID_DTS,
1960+ .id = AV_CODEC_ID_DTS,
19611961 .priv_data_size = sizeof(DCAContext),
19621962 .init = dca_decode_init,
19631963 .decode = dca_decode_frame,
libavcodec/dfa.c+1−1
@@ -377,7 +377,7 @@ static av_cold int dfa_decode_end(AVCodecContext *avctx) · 376 unmodified lines
377377 AVCodec ff_dfa_decoder = {
378378 .name = "dfa",
379379 .type = AVMEDIA_TYPE_VIDEO,
380− .id = CODEC_ID_DFA,
380+ .id = AV_CODEC_ID_DFA,
381381 .priv_data_size = sizeof(DfaContext),
382382 .init = dfa_decode_init,
383383 .close = dfa_decode_end,
libavcodec/dirac_parser.c+1−1
@@ -248,7 +248,7 @@ static void dirac_parse_close(AVCodecParserContext *s) · 247 unmodified lines
248248 }
249249
250250 AVCodecParser ff_dirac_parser = {
251− .codec_ids = { CODEC_ID_DIRAC },
251+ .codec_ids = { AV_CODEC_ID_DIRAC },
252252 .priv_data_size = sizeof(DiracParseContext),
253253 .parser_parse = dirac_parse,
254254 .parser_close = dirac_parse_close,
libavcodec/dnxhd_parser.c+1−1
@@ -87,7 +87,7 @@ static int dnxhd_parse(AVCodecParserContext *s, · 86 unmodified lines
8787 }
8888
8989 AVCodecParser ff_dnxhd_parser = {
90− .codec_ids = { CODEC_ID_DNXHD },
90+ .codec_ids = { AV_CODEC_ID_DNXHD },
9191 .priv_data_size = sizeof(ParseContext),
9292 .parser_parse = dnxhd_parse,
9393 .parser_close = ff_parse_close,
libavcodec/dnxhddec.c+1−1
@@ -400,7 +400,7 @@ static av_cold int dnxhd_decode_close(AVCodecContext *avctx) · 399 unmodified lines
400400 AVCodec ff_dnxhd_decoder = {
401401 .name = "dnxhd",
402402 .type = AVMEDIA_TYPE_VIDEO,
403− .id = CODEC_ID_DNXHD,
403+ .id = AV_CODEC_ID_DNXHD,
404404 .priv_data_size = sizeof(DNXHDContext),
405405 .init = dnxhd_decode_init,
406406 .close = dnxhd_decode_close,
libavcodec/dnxhdenc.c+1−1
@@ -1001,7 +1001,7 @@ static int dnxhd_encode_end(AVCodecContext *avctx) · 1000 unmodified lines
10011001 AVCodec ff_dnxhd_encoder = {
10021002 .name = "dnxhd",
10031003 .type = AVMEDIA_TYPE_VIDEO,
1004− .id = CODEC_ID_DNXHD,
1004+ .id = AV_CODEC_ID_DNXHD,
10051005 .priv_data_size = sizeof(DNXHDEncContext),
10061006 .init = dnxhd_encode_init,
10071007 .encode2 = dnxhd_encode_picture,
libavcodec/dpcm.c+15−15
@@ -128,7 +128,7 @@ static av_cold int dpcm_decode_init(AVCodecContext *avctx) · 127 unmodified lines
128128
129129 switch(avctx->codec->id) {
130130
131− case CODEC_ID_ROQ_DPCM:
131+ case AV_CODEC_ID_ROQ_DPCM:
132132 /* initialize square table */
133133 for (i = 0; i < 128; i++) {
134134 int16_t square = i * i;
@@ -137,7 +137,7 @@ static av_cold int dpcm_decode_init(AVCodecContext *avctx) · 2 unmodified lines
137137 }
138138 break;
139139
140− case CODEC_ID_SOL_DPCM:
140+ case AV_CODEC_ID_SOL_DPCM:
141141 switch(avctx->codec_tag){
142142 case 1:
143143 s->sol_table = sol_table_old;
@@ -159,7 +159,7 @@ static av_cold int dpcm_decode_init(AVCodecContext *avctx) · 15 unmodified lines
159159 break;
160160 }
161161
162− if (avctx->codec->id == CODEC_ID_SOL_DPCM && avctx->codec_tag != 3)
162+ if (avctx->codec->id == AV_CODEC_ID_SOL_DPCM && avctx->codec_tag != 3)
163163 avctx->sample_fmt = AV_SAMPLE_FMT_U8;
164164 else
165165 avctx->sample_fmt = AV_SAMPLE_FMT_S16;
@@ -189,16 +189,16 @@ static int dpcm_decode_frame(AVCodecContext *avctx, void *data, · 23 unmodified lines
189189
190190 /* calculate output size */
191191 switch(avctx->codec->id) {
192− case CODEC_ID_ROQ_DPCM:
192+ case AV_CODEC_ID_ROQ_DPCM:
193193 out = buf_size - 8;
194194 break;
195− case CODEC_ID_INTERPLAY_DPCM:
195+ case AV_CODEC_ID_INTERPLAY_DPCM:
196196 out = buf_size - 6 - s->channels;
197197 break;
198− case CODEC_ID_XAN_DPCM:
198+ case AV_CODEC_ID_XAN_DPCM:
199199 out = buf_size - 2 * s->channels;
200200 break;
201− case CODEC_ID_SOL_DPCM:
201+ case AV_CODEC_ID_SOL_DPCM:
202202 if (avctx->codec_tag != 3)
203203 out = buf_size * 2;
204204 else
@@ -221,7 +221,7 @@ static int dpcm_decode_frame(AVCodecContext *avctx, void *data, · 16 unmodified lines
221221
222222 switch(avctx->codec->id) {
223223
224− case CODEC_ID_ROQ_DPCM:
224+ case AV_CODEC_ID_ROQ_DPCM:
225225 bytestream2_skipu(&gb, 6);
226226
227227 if (stereo) {
@@ -242,7 +242,7 @@ static int dpcm_decode_frame(AVCodecContext *avctx, void *data, · 14 unmodified lines
242242 }
243243 break;
244244
245− case CODEC_ID_INTERPLAY_DPCM:
245+ case AV_CODEC_ID_INTERPLAY_DPCM:
246246 bytestream2_skipu(&gb, 6); /* skip over the stream mask and stream length */
247247
248248 for (ch = 0; ch < s->channels; ch++) {
@@ -261,7 +261,7 @@ static int dpcm_decode_frame(AVCodecContext *avctx, void *data, · 12 unmodified lines
261261 }
262262 break;
263263
264− case CODEC_ID_XAN_DPCM:
264+ case AV_CODEC_ID_XAN_DPCM:
265265 {
266266 int shift[2] = { 4, 4 };
267267
@@ -294,7 +294,7 @@ static int dpcm_decode_frame(AVCodecContext *avctx, void *data, · 26 unmodified lines
294294 }
295295 break;
296296 }
297− case CODEC_ID_SOL_DPCM:
297+ case AV_CODEC_ID_SOL_DPCM:
298298 if (avctx->codec_tag != 3) {
299299 uint8_t *output_samples_u8 = s->frame.data[0],
300300 *samples_end_u8 = output_samples_u8 + out;
@@ -341,7 +341,7 @@ AVCodec ff_ ## name_ ## _decoder = { \ · 40 unmodified lines
341341 .long_name = NULL_IF_CONFIG_SMALL(long_name_), \
342342 }
343343
344−DPCM_DECODER(CODEC_ID_INTERPLAY_DPCM, interplay_dpcm, "DPCM Interplay");
345−DPCM_DECODER(CODEC_ID_ROQ_DPCM, roq_dpcm, "DPCM id RoQ");
346−DPCM_DECODER(CODEC_ID_SOL_DPCM, sol_dpcm, "DPCM Sol");
347−DPCM_DECODER(CODEC_ID_XAN_DPCM, xan_dpcm, "DPCM Xan");
344+DPCM_DECODER(AV_CODEC_ID_INTERPLAY_DPCM, interplay_dpcm, "DPCM Interplay");
345+DPCM_DECODER(AV_CODEC_ID_ROQ_DPCM, roq_dpcm, "DPCM id RoQ");
346+DPCM_DECODER(AV_CODEC_ID_SOL_DPCM, sol_dpcm, "DPCM Sol");
347+DPCM_DECODER(AV_CODEC_ID_XAN_DPCM, xan_dpcm, "DPCM Xan");
libavcodec/dpx.c+1−1
@@ -237,7 +237,7 @@ static av_cold int decode_end(AVCodecContext *avctx) · 236 unmodified lines
237237 AVCodec ff_dpx_decoder = {
238238 .name = "dpx",
239239 .type = AVMEDIA_TYPE_VIDEO,
240− .id = CODEC_ID_DPX,
240+ .id = AV_CODEC_ID_DPX,
241241 .priv_data_size = sizeof(DPXContext),
242242 .init = decode_init,
243243 .close = decode_end,
libavcodec/dpxenc.c+1−1
@@ -175,7 +175,7 @@ static int encode_frame(AVCodecContext *avctx, AVPacket *pkt, · 174 unmodified lines
175175 AVCodec ff_dpx_encoder = {
176176 .name = "dpx",
177177 .type = AVMEDIA_TYPE_VIDEO,
178− .id = CODEC_ID_DPX,
178+ .id = AV_CODEC_ID_DPX,
179179 .priv_data_size = sizeof(DPXContext),
180180 .init = encode_init,
181181 .encode2 = encode_frame,
libavcodec/dsicinav.c+2−2
@@ -375,7 +375,7 @@ static int cinaudio_decode_frame(AVCodecContext *avctx, void *data, · 374 unmodified lines
375375 AVCodec ff_dsicinvideo_decoder = {
376376 .name = "dsicinvideo",
377377 .type = AVMEDIA_TYPE_VIDEO,
378− .id = CODEC_ID_DSICINVIDEO,
378+ .id = AV_CODEC_ID_DSICINVIDEO,
379379 .priv_data_size = sizeof(CinVideoContext),
380380 .init = cinvideo_decode_init,
381381 .close = cinvideo_decode_end,
@@ -387,7 +387,7 @@ AVCodec ff_dsicinvideo_decoder = { · 5 unmodified lines
387387 AVCodec ff_dsicinaudio_decoder = {
388388 .name = "dsicinaudio",
389389 .type = AVMEDIA_TYPE_AUDIO,
390− .id = CODEC_ID_DSICINAUDIO,
390+ .id = AV_CODEC_ID_DSICINAUDIO,
391391 .priv_data_size = sizeof(CinAudioContext),
392392 .init = cinaudio_decode_init,
393393 .decode = cinaudio_decode_frame,
libavcodec/dv.c+1−1
@@ -979,7 +979,7 @@ static int dvvideo_encode_frame(AVCodecContext *c, AVPacket *pkt, · 978 unmodified lines
979979 AVCodec ff_dvvideo_encoder = {
980980 .name = "dvvideo",
981981 .type = AVMEDIA_TYPE_VIDEO,
982− .id = CODEC_ID_DVVIDEO,
982+ .id = AV_CODEC_ID_DVVIDEO,
983983 .priv_data_size = sizeof(DVVideoContext),
984984 .init = dvvideo_init_encoder,
985985 .encode2 = dvvideo_encode_frame,
libavcodec/dvbsub.c+1−1
@@ -405,7 +405,7 @@ static int dvbsub_encode(AVCodecContext *avctx, · 404 unmodified lines
405405 AVCodec ff_dvbsub_encoder = {
406406 .name = "dvbsub",
407407 .type = AVMEDIA_TYPE_SUBTITLE,
408− .id = CODEC_ID_DVB_SUBTITLE,
408+ .id = AV_CODEC_ID_DVB_SUBTITLE,
409409 .priv_data_size = sizeof(DVBSubtitleContext),
410410 .encode = dvbsub_encode,
411411 .long_name = NULL_IF_CONFIG_SMALL("DVB subtitles"),
libavcodec/dvbsub_parser.c+1−1
@@ -172,7 +172,7 @@ static av_cold void dvbsub_parse_close(AVCodecParserContext *s) · 171 unmodified lines
172172 }
173173
174174 AVCodecParser ff_dvbsub_parser = {
175− .codec_ids = { CODEC_ID_DVB_SUBTITLE },
175+ .codec_ids = { AV_CODEC_ID_DVB_SUBTITLE },
176176 .priv_data_size = sizeof(DVBSubParseContext),
177177 .parser_init = dvbsub_parse_init,
178178 .parser_parse = dvbsub_parse,
libavcodec/dvbsubdec.c+1−1
@@ -1466,7 +1466,7 @@ static int dvbsub_decode(AVCodecContext *avctx, · 1465 unmodified lines
14661466 AVCodec ff_dvbsub_decoder = {
14671467 .name = "dvbsub",
14681468 .type = AVMEDIA_TYPE_SUBTITLE,
1469− .id = CODEC_ID_DVB_SUBTITLE,
1469+ .id = AV_CODEC_ID_DVB_SUBTITLE,
14701470 .priv_data_size = sizeof(DVBSubContext),
14711471 .init = dvbsub_init_decoder,
14721472 .close = dvbsub_close_decoder,
libavcodec/dvdec.c+1−1
@@ -375,7 +375,7 @@ static int dvvideo_close(AVCodecContext *c) · 374 unmodified lines
375375 AVCodec ff_dvvideo_decoder = {
376376 .name = "dvvideo",
377377 .type = AVMEDIA_TYPE_VIDEO,
378− .id = CODEC_ID_DVVIDEO,
378+ .id = AV_CODEC_ID_DVVIDEO,
379379 .priv_data_size = sizeof(DVVideoContext),
380380 .init = ff_dvvideo_init,
381381 .close = dvvideo_close,
libavcodec/dvdsub_parser.c+1−1
@@ -77,7 +77,7 @@ static av_cold void dvdsub_parse_close(AVCodecParserContext *s) · 76 unmodified lines
7777 }
7878
7979 AVCodecParser ff_dvdsub_parser = {
80− .codec_ids = { CODEC_ID_DVD_SUBTITLE },
80+ .codec_ids = { AV_CODEC_ID_DVD_SUBTITLE },
8181 .priv_data_size = sizeof(DVDSubParseContext),
8282 .parser_init = dvdsub_parse_init,
8383 .parser_parse = dvdsub_parse,
libavcodec/dvdsubdec.c+1−1
@@ -487,7 +487,7 @@ static int dvdsub_decode(AVCodecContext *avctx, · 486 unmodified lines
487487 AVCodec ff_dvdsub_decoder = {
488488 .name = "dvdsub",
489489 .type = AVMEDIA_TYPE_SUBTITLE,
490− .id = CODEC_ID_DVD_SUBTITLE,
490+ .id = AV_CODEC_ID_DVD_SUBTITLE,
491491 .decode = dvdsub_decode,
492492 .long_name = NULL_IF_CONFIG_SMALL("DVD subtitles"),
493493 };
libavcodec/dvdsubenc.c+1−1
@@ -218,7 +218,7 @@ static int dvdsub_encode(AVCodecContext *avctx, · 217 unmodified lines
218218 AVCodec ff_dvdsub_encoder = {
219219 .name = "dvdsub",
220220 .type = AVMEDIA_TYPE_SUBTITLE,
221− .id = CODEC_ID_DVD_SUBTITLE,
221+ .id = AV_CODEC_ID_DVD_SUBTITLE,
222222 .encode = dvdsub_encode,
223223 .long_name = NULL_IF_CONFIG_SMALL("DVD subtitles"),
224224 };
libavcodec/dxa.c+1−1
@@ -318,7 +318,7 @@ static av_cold int decode_end(AVCodecContext *avctx) · 317 unmodified lines
318318 AVCodec ff_dxa_decoder = {
319319 .name = "dxa",
320320 .type = AVMEDIA_TYPE_VIDEO,
321− .id = CODEC_ID_DXA,
321+ .id = AV_CODEC_ID_DXA,
322322 .priv_data_size = sizeof(DxaDecContext),
323323 .init = decode_init,
324324 .close = decode_end,
libavcodec/dxtory.c+1−1
@@ -101,7 +101,7 @@ AVCodec ff_dxtory_decoder = { · 100 unmodified lines
101101 .name = "dxtory",
102102 .long_name = NULL_IF_CONFIG_SMALL("Dxtory"),
103103 .type = AVMEDIA_TYPE_VIDEO,
104− .id = CODEC_ID_DXTORY,
104+ .id = AV_CODEC_ID_DXTORY,
105105 .init = decode_init,
106106 .close = decode_close,
107107 .decode = decode_frame,
libavcodec/dxva2_h264.c+1−1
@@ -442,7 +442,7 @@ static int end_frame(AVCodecContext *avctx) · 441 unmodified lines
442442 AVHWAccel ff_h264_dxva2_hwaccel = {
443443 .name = "h264_dxva2",
444444 .type = AVMEDIA_TYPE_VIDEO,
445− .id = CODEC_ID_H264,
445+ .id = AV_CODEC_ID_H264,
446446 .pix_fmt = PIX_FMT_DXVA2_VLD,
447447 .start_frame = start_frame,
448448 .decode_slice = decode_slice,
libavcodec/dxva2_mpeg2.c+1−1
@@ -263,7 +263,7 @@ static int end_frame(AVCodecContext *avctx) · 262 unmodified lines
263263 AVHWAccel ff_mpeg2_dxva2_hwaccel = {
264264 .name = "mpeg2_dxva2",
265265 .type = AVMEDIA_TYPE_VIDEO,
266− .id = CODEC_ID_MPEG2VIDEO,
266+ .id = AV_CODEC_ID_MPEG2VIDEO,
267267 .pix_fmt = PIX_FMT_DXVA2_VLD,
268268 .start_frame = start_frame,
269269 .decode_slice = decode_slice,
libavcodec/dxva2_vc1.c+4−4
@@ -167,7 +167,7 @@ static int commit_bitstream_and_slice_buffer(AVCodecContext *avctx, · 166 unmodified lines
167167 DXVA_SliceInfo *slice = &ctx_pic->si;
168168
169169 static const uint8_t start_code[] = { 0, 0, 1, 0x0d };
170− const unsigned start_code_size = avctx->codec_id == CODEC_ID_VC1 ? sizeof(start_code) : 0;
170+ const unsigned start_code_size = avctx->codec_id == AV_CODEC_ID_VC1 ? sizeof(start_code) : 0;
171171 const unsigned slice_size = slice->dwSliceBitsInBuffer / 8;
172172 const unsigned padding = 128 - ((start_code_size + slice_size) & 127);
173173 const unsigned data_size = start_code_size + slice_size + padding;
@@ -237,7 +237,7 @@ static int decode_slice(AVCodecContext *avctx, · 63 unmodified lines
237237 if (ctx_pic->bitstream_size > 0)
238238 return -1;
239239
240− if (avctx->codec_id == CODEC_ID_VC1 &&
240+ if (avctx->codec_id == AV_CODEC_ID_VC1 &&
241241 size >= 4 && IS_MARKER(AV_RB32(buffer))) {
242242 buffer += 4;
243243 size -= 4;
@@ -268,7 +268,7 @@ static int end_frame(AVCodecContext *avctx) · 24 unmodified lines
268268 AVHWAccel ff_wmv3_dxva2_hwaccel = {
269269 .name = "wmv3_dxva2",
270270 .type = AVMEDIA_TYPE_VIDEO,
271− .id = CODEC_ID_WMV3,
271+ .id = AV_CODEC_ID_WMV3,
272272 .pix_fmt = PIX_FMT_DXVA2_VLD,
273273 .start_frame = start_frame,
274274 .decode_slice = decode_slice,
@@ -280,7 +280,7 @@ AVHWAccel ff_wmv3_dxva2_hwaccel = { · 5 unmodified lines
280280 AVHWAccel ff_vc1_dxva2_hwaccel = {
281281 .name = "vc1_dxva2",
282282 .type = AVMEDIA_TYPE_VIDEO,
283− .id = CODEC_ID_VC1,
283+ .id = AV_CODEC_ID_VC1,
284284 .pix_fmt = PIX_FMT_DXVA2_VLD,
285285 .start_frame = start_frame,
286286 .decode_slice = decode_slice,
libavcodec/eac3enc.c+1−1
@@ -249,7 +249,7 @@ void ff_eac3_output_frame_header(AC3EncodeContext *s) · 248 unmodified lines
249249 AVCodec ff_eac3_encoder = {
250250 .name = "eac3",
251251 .type = AVMEDIA_TYPE_AUDIO,
252− .id = CODEC_ID_EAC3,
252+ .id = AV_CODEC_ID_EAC3,
253253 .priv_data_size = sizeof(AC3EncodeContext),
254254 .init = ff_ac3_encode_init,
255255 .encode2 = ff_ac3_float_encode_frame,
libavcodec/eacmv.c+1−1
@@ -211,7 +211,7 @@ static av_cold int cmv_decode_end(AVCodecContext *avctx){ · 210 unmodified lines
211211 AVCodec ff_eacmv_decoder = {
212212 .name = "eacmv",
213213 .type = AVMEDIA_TYPE_VIDEO,
214− .id = CODEC_ID_CMV,
214+ .id = AV_CODEC_ID_CMV,
215215 .priv_data_size = sizeof(CmvContext),
216216 .init = cmv_decode_init,
217217 .close = cmv_decode_end,
libavcodec/eamad.c+1−1
@@ -296,7 +296,7 @@ static av_cold int decode_end(AVCodecContext *avctx) · 295 unmodified lines
296296 AVCodec ff_eamad_decoder = {
297297 .name = "eamad",
298298 .type = AVMEDIA_TYPE_VIDEO,
299− .id = CODEC_ID_MAD,
299+ .id = AV_CODEC_ID_MAD,
300300 .priv_data_size = sizeof(MadContext),
301301 .init = decode_init,
302302 .close = decode_end,
libavcodec/eatgq.c+1−1
@@ -242,7 +242,7 @@ static av_cold int tgq_decode_end(AVCodecContext *avctx){ · 241 unmodified lines
242242 AVCodec ff_eatgq_decoder = {
243243 .name = "eatgq",
244244 .type = AVMEDIA_TYPE_VIDEO,
245− .id = CODEC_ID_TGQ,
245+ .id = AV_CODEC_ID_TGQ,
246246 .priv_data_size = sizeof(TgqContext),
247247 .init = tgq_decode_init,
248248 .close = tgq_decode_end,
libavcodec/eatgv.c+1−1
@@ -345,7 +345,7 @@ static av_cold int tgv_decode_end(AVCodecContext *avctx) · 344 unmodified lines
345345 AVCodec ff_eatgv_decoder = {
346346 .name = "eatgv",
347347 .type = AVMEDIA_TYPE_VIDEO,
348− .id = CODEC_ID_TGV,
348+ .id = AV_CODEC_ID_TGV,
349349 .priv_data_size = sizeof(TgvContext),
350350 .init = tgv_decode_init,
351351 .close = tgv_decode_end,
libavcodec/eatqi.c+1−1
@@ -154,7 +154,7 @@ static av_cold int tqi_decode_end(AVCodecContext *avctx) · 153 unmodified lines
154154 AVCodec ff_eatqi_decoder = {
155155 .name = "eatqi",
156156 .type = AVMEDIA_TYPE_VIDEO,
157− .id = CODEC_ID_TQI,
157+ .id = AV_CODEC_ID_TQI,
158158 .priv_data_size = sizeof(TqiContext),
159159 .init = tqi_decode_init,
160160 .close = tqi_decode_end,
libavcodec/error_resilience.c+6−6
@@ -46,7 +46,7 @@ static void decode_mb(MpegEncContext *s, int ref) · 45 unmodified lines
4646 s->dest[1] = s->current_picture.f.data[1] + (s->mb_y * (16 >> s->chroma_y_shift) * s->uvlinesize) + s->mb_x * (16 >> s->chroma_x_shift);
4747 s->dest[2] = s->current_picture.f.data[2] + (s->mb_y * (16 >> s->chroma_y_shift) * s->uvlinesize) + s->mb_x * (16 >> s->chroma_x_shift);
4848
49− if (CONFIG_H264_DECODER && s->codec_id == CODEC_ID_H264) {
49+ if (CONFIG_H264_DECODER && s->codec_id == AV_CODEC_ID_H264) {
5050 H264Context *h = (void*)s;
5151 h->mb_xy = s->mb_x + s->mb_y * s->mb_stride;
5252 memset(h->non_zero_count_cache, 0, sizeof(h->non_zero_count_cache));
@@ -76,7 +76,7 @@ static void decode_mb(MpegEncContext *s, int ref) · 23 unmodified lines
7676 */
7777 static void set_mv_strides(MpegEncContext *s, int *mv_step, int *stride)
7878 {
79− if (s->codec_id == CODEC_ID_H264) {
79+ if (s->codec_id == AV_CODEC_ID_H264) {
8080 H264Context *h = (void*)s;
8181 assert(s->quarter_sample);
8282 *mv_step = 4;
@@ -599,7 +599,7 @@ skip_mean_and_median: · 516 unmodified lines
599599 pred_count++;
600600
601601 if (!fixed[mb_xy]) {
602− if (s->avctx->codec_id == CODEC_ID_H264) {
602+ if (s->avctx->codec_id == AV_CODEC_ID_H264) {
603603 // FIXME
604604 } else {
605605 ff_thread_await_progress(&s->last_picture_ptr->f,
@@ -730,7 +730,7 @@ static int is_intra_more_likely(MpegEncContext *s) · 124 unmodified lines
730730 undamaged_count++;
731731 }
732732
733− if (s->codec_id == CODEC_ID_H264) {
733+ if (s->codec_id == AV_CODEC_ID_H264) {
734734 H264Context *h = (void*) s;
735735 if (h->list_count <= 0 || h->ref_count[0] <= 0 ||
736736 !h->ref_list[0][0].f.data[0])
@@ -770,7 +770,7 @@ static int is_intra_more_likely(MpegEncContext *s) · 33 unmodified lines
770770 uint8_t *last_mb_ptr = s->last_picture.f.data[0] +
771771 mb_x * 16 + mb_y * 16 * s->linesize;
772772
773− if (s->avctx->codec_id == CODEC_ID_H264) {
773+ if (s->avctx->codec_id == AV_CODEC_ID_H264) {
774774 // FIXME
775775 } else {
776776 ff_thread_await_progress(&s->last_picture_ptr->f,
@@ -1161,7 +1161,7 @@ void ff_er_frame_end(MpegEncContext *s) · 384 unmodified lines
11611161 int time_pp = s->pp_time;
11621162 int time_pb = s->pb_time;
11631163
1164− if (s->avctx->codec_id == CODEC_ID_H264) {
1164+ if (s->avctx->codec_id == AV_CODEC_ID_H264) {
11651165 // FIXME
11661166 } else {
11671167 ff_thread_await_progress(&s->next_picture_ptr->f, mb_y, 0);
libavcodec/escape124.c+1−1
@@ -366,7 +366,7 @@ static int escape124_decode_frame(AVCodecContext *avctx, · 365 unmodified lines
366366 AVCodec ff_escape124_decoder = {
367367 .name = "escape124",
368368 .type = AVMEDIA_TYPE_VIDEO,
369− .id = CODEC_ID_ESCAPE124,
369+ .id = AV_CODEC_ID_ESCAPE124,
370370 .priv_data_size = sizeof(Escape124Context),
371371 .init = escape124_decode_init,
372372 .close = escape124_decode_close,
libavcodec/ffv1.c+2−2
@@ -1738,7 +1738,7 @@ static int decode_frame(AVCodecContext *avctx, void *data, int *data_size, AVPac · 1737 unmodified lines
17381738 AVCodec ff_ffv1_decoder = {
17391739 .name = "ffv1",
17401740 .type = AVMEDIA_TYPE_VIDEO,
1741− .id = CODEC_ID_FFV1,
1741+ .id = AV_CODEC_ID_FFV1,
17421742 .priv_data_size = sizeof(FFV1Context),
17431743 .init = decode_init,
17441744 .close = common_end,
@@ -1752,7 +1752,7 @@ AVCodec ff_ffv1_decoder = { · 7 unmodified lines
17521752 AVCodec ff_ffv1_encoder = {
17531753 .name = "ffv1",
17541754 .type = AVMEDIA_TYPE_VIDEO,
1755− .id = CODEC_ID_FFV1,
1755+ .id = AV_CODEC_ID_FFV1,
17561756 .priv_data_size = sizeof(FFV1Context),
17571757 .init = encode_init,
17581758 .encode2 = encode_frame,
libavcodec/flac_parser.c+1−1
@@ -675,7 +675,7 @@ static void flac_parse_close(AVCodecParserContext *c) · 674 unmodified lines
675675 }
676676
677677 AVCodecParser ff_flac_parser = {
678− .codec_ids = { CODEC_ID_FLAC },
678+ .codec_ids = { AV_CODEC_ID_FLAC },
679679 .priv_data_size = sizeof(FLACParseContext),
680680 .parser_init = flac_parse_init,
681681 .parser_parse = flac_parse,
libavcodec/flacdec.c+1−1
@@ -561,7 +561,7 @@ static av_cold int flac_decode_close(AVCodecContext *avctx) · 560 unmodified lines
561561 AVCodec ff_flac_decoder = {
562562 .name = "flac",
563563 .type = AVMEDIA_TYPE_AUDIO,
564− .id = CODEC_ID_FLAC,
564+ .id = AV_CODEC_ID_FLAC,
565565 .priv_data_size = sizeof(FLACContext),
566566 .init = flac_decode_init,
567567 .close = flac_decode_close,
libavcodec/flacenc.c+1−1
@@ -1304,7 +1304,7 @@ static const AVClass flac_encoder_class = { · 1303 unmodified lines
13041304 AVCodec ff_flac_encoder = {
13051305 .name = "flac",
13061306 .type = AVMEDIA_TYPE_AUDIO,
1307− .id = CODEC_ID_FLAC,
1307+ .id = AV_CODEC_ID_FLAC,
13081308 .priv_data_size = sizeof(FlacEncodeContext),
13091309 .init = flac_encode_init,
13101310 .encode2 = flac_encode_frame,
libavcodec/flashsv.c+2−2
@@ -455,7 +455,7 @@ static av_cold int flashsv_decode_end(AVCodecContext *avctx) · 454 unmodified lines
455455 AVCodec ff_flashsv_decoder = {
456456 .name = "flashsv",
457457 .type = AVMEDIA_TYPE_VIDEO,
458− .id = CODEC_ID_FLASHSV,
458+ .id = AV_CODEC_ID_FLASHSV,
459459 .priv_data_size = sizeof(FlashSVContext),
460460 .init = flashsv_decode_init,
461461 .close = flashsv_decode_end,
@@ -518,7 +518,7 @@ static av_cold int flashsv2_decode_end(AVCodecContext *avctx) · 56 unmodified lines
518518 AVCodec ff_flashsv2_decoder = {
519519 .name = "flashsv2",
520520 .type = AVMEDIA_TYPE_VIDEO,
521− .id = CODEC_ID_FLASHSV2,
521+ .id = AV_CODEC_ID_FLASHSV2,
522522 .priv_data_size = sizeof(FlashSVContext),
523523 .init = flashsv2_decode_init,
524524 .close = flashsv2_decode_end,
libavcodec/flashsvenc.c+1−1
@@ -282,7 +282,7 @@ static av_cold int flashsv_encode_end(AVCodecContext *avctx) · 281 unmodified lines
282282 AVCodec ff_flashsv_encoder = {
283283 .name = "flashsv",
284284 .type = AVMEDIA_TYPE_VIDEO,
285− .id = CODEC_ID_FLASHSV,
285+ .id = AV_CODEC_ID_FLASHSV,
286286 .priv_data_size = sizeof(FlashSVContext),
287287 .init = flashsv_encode_init,
288288 .encode2 = flashsv_encode_frame,
libavcodec/flicvideo.c+1−1
@@ -735,7 +735,7 @@ static av_cold int flic_decode_end(AVCodecContext *avctx) · 734 unmodified lines
735735 AVCodec ff_flic_decoder = {
736736 .name = "flic",
737737 .type = AVMEDIA_TYPE_VIDEO,
738− .id = CODEC_ID_FLIC,
738+ .id = AV_CODEC_ID_FLIC,
739739 .priv_data_size = sizeof(FlicDecodeContext),
740740 .init = flic_decode_init,
741741 .close = flic_decode_end,
libavcodec/flvdec.c+1−1
@@ -121,7 +121,7 @@ int ff_flv_decode_picture_header(MpegEncContext *s) · 120 unmodified lines
121121 AVCodec ff_flv_decoder = {
122122 .name = "flv",
123123 .type = AVMEDIA_TYPE_VIDEO,
124− .id = CODEC_ID_FLV1,
124+ .id = AV_CODEC_ID_FLV1,
125125 .priv_data_size = sizeof(MpegEncContext),
126126 .init = ff_h263_decode_init,
127127 .close = ff_h263_decode_end,
libavcodec/flvenc.c+1−1
@@ -89,7 +89,7 @@ FF_MPV_GENERIC_CLASS(flv) · 88 unmodified lines
8989 AVCodec ff_flv_encoder = {
9090 .name = "flv",
9191 .type = AVMEDIA_TYPE_VIDEO,
92− .id = CODEC_ID_FLV1,
92+ .id = AV_CODEC_ID_FLV1,
9393 .priv_data_size = sizeof(MpegEncContext),
9494 .init = ff_MPV_encode_init,
9595 .encode2 = ff_MPV_encode_picture,
libavcodec/fraps.c+1−1
@@ -369,7 +369,7 @@ static av_cold int decode_end(AVCodecContext *avctx) · 368 unmodified lines
369369 AVCodec ff_fraps_decoder = {
370370 .name = "fraps",
371371 .type = AVMEDIA_TYPE_VIDEO,
372− .id = CODEC_ID_FRAPS,
372+ .id = AV_CODEC_ID_FRAPS,
373373 .priv_data_size = sizeof(FrapsContext),
374374 .init = decode_init,
375375 .close = decode_end,
libavcodec/frwu.c+1−1
@@ -115,7 +115,7 @@ static av_cold int decode_close(AVCodecContext *avctx) · 114 unmodified lines
115115 AVCodec ff_frwu_decoder = {
116116 .name = "frwu",
117117 .type = AVMEDIA_TYPE_VIDEO,
118− .id = CODEC_ID_FRWU,
118+ .id = AV_CODEC_ID_FRWU,
119119 .init = decode_init,
120120 .close = decode_close,
121121 .decode = decode_frame,
libavcodec/g722dec.c+1−1
@@ -144,7 +144,7 @@ static int g722_decode_frame(AVCodecContext *avctx, void *data, · 143 unmodified lines
144144 AVCodec ff_adpcm_g722_decoder = {
145145 .name = "g722",
146146 .type = AVMEDIA_TYPE_AUDIO,
147− .id = CODEC_ID_ADPCM_G722,
147+ .id = AV_CODEC_ID_ADPCM_G722,
148148 .priv_data_size = sizeof(G722Context),
149149 .init = g722_decode_init,
150150 .decode = g722_decode_frame,
libavcodec/g722enc.c+1−1
@@ -393,7 +393,7 @@ static int g722_encode_frame(AVCodecContext *avctx, AVPacket *avpkt, · 392 unmodified lines
393393 AVCodec ff_adpcm_g722_encoder = {
394394 .name = "g722",
395395 .type = AVMEDIA_TYPE_AUDIO,
396− .id = CODEC_ID_ADPCM_G722,
396+ .id = AV_CODEC_ID_ADPCM_G722,
397397 .priv_data_size = sizeof(G722Context),
398398 .init = g722_encode_init,
399399 .close = g722_encode_close,
libavcodec/g723_1.c+1−1
@@ -1175,7 +1175,7 @@ static const AVClass g723_1dec_class = { · 1174 unmodified lines
11751175 AVCodec ff_g723_1_decoder = {
11761176 .name = "g723_1",
11771177 .type = AVMEDIA_TYPE_AUDIO,
1178− .id = CODEC_ID_G723_1,
1178+ .id = AV_CODEC_ID_G723_1,
11791179 .priv_data_size = sizeof(G723_1_Context),
11801180 .init = g723_1_decode_init,
11811181 .decode = g723_1_decode_frame,
libavcodec/g726.c+2−2
@@ -399,7 +399,7 @@ static const AVCodecDefault defaults[] = { · 398 unmodified lines
399399 AVCodec ff_adpcm_g726_encoder = {
400400 .name = "g726",
401401 .type = AVMEDIA_TYPE_AUDIO,
402− .id = CODEC_ID_ADPCM_G726,
402+ .id = AV_CODEC_ID_ADPCM_G726,
403403 .priv_data_size = sizeof(G726Context),
404404 .init = g726_encode_init,
405405 .encode2 = g726_encode_frame,
@@ -491,7 +491,7 @@ static void g726_decode_flush(AVCodecContext *avctx) · 85 unmodified lines
491491 AVCodec ff_adpcm_g726_decoder = {
492492 .name = "g726",
493493 .type = AVMEDIA_TYPE_AUDIO,
494− .id = CODEC_ID_ADPCM_G726,
494+ .id = AV_CODEC_ID_ADPCM_G726,
495495 .priv_data_size = sizeof(G726Context),
496496 .init = g726_decode_init,
497497 .decode = g726_decode_frame,
libavcodec/gif.c+1−1
@@ -182,7 +182,7 @@ static int gif_encode_close(AVCodecContext *avctx) · 181 unmodified lines
182182 AVCodec ff_gif_encoder = {
183183 .name = "gif",
184184 .type = AVMEDIA_TYPE_VIDEO,
185− .id = CODEC_ID_GIF,
185+ .id = AV_CODEC_ID_GIF,
186186 .priv_data_size = sizeof(GIFContext),
187187 .init = gif_encode_init,
188188 .encode2 = gif_encode_frame,
libavcodec/gifdec.c+1−1
@@ -328,7 +328,7 @@ static av_cold int gif_decode_close(AVCodecContext *avctx) · 327 unmodified lines
328328 AVCodec ff_gif_decoder = {
329329 .name = "gif",
330330 .type = AVMEDIA_TYPE_VIDEO,
331− .id = CODEC_ID_GIF,
331+ .id = AV_CODEC_ID_GIF,
332332 .priv_data_size = sizeof(GifState),
333333 .init = gif_decode_init,
334334 .close = gif_decode_close,
libavcodec/gsm_parser.c+3−3
@@ -45,11 +45,11 @@ static int gsm_parse(AVCodecParserContext *s1, AVCodecContext *avctx, · 44 unmodified lines
4545
4646 if (!s->block_size) {
4747 switch (avctx->codec_id) {
48− case CODEC_ID_GSM:
48+ case AV_CODEC_ID_GSM:
4949 s->block_size = GSM_BLOCK_SIZE;
5050 s->duration = GSM_FRAME_SIZE;
5151 break;
52− case CODEC_ID_GSM_MS:
52+ case AV_CODEC_ID_GSM_MS:
5353 s->block_size = GSM_MS_BLOCK_SIZE;
5454 s->duration = GSM_FRAME_SIZE * 2;
5555 break;
@@ -82,7 +82,7 @@ static int gsm_parse(AVCodecParserContext *s1, AVCodecContext *avctx, · 26 unmodified lines
8282 }
8383
8484 AVCodecParser ff_gsm_parser = {
85− .codec_ids = { CODEC_ID_GSM, CODEC_ID_GSM_MS },
85+ .codec_ids = { AV_CODEC_ID_GSM, AV_CODEC_ID_GSM_MS },
8686 .priv_data_size = sizeof(GSMParseContext),
8787 .parser_parse = gsm_parse,
8888 .parser_close = ff_parse_close,
libavcodec/gsmdec.c+6−6
@@ -40,11 +40,11 @@ static av_cold int gsm_init(AVCodecContext *avctx) · 39 unmodified lines
4040 avctx->sample_fmt = AV_SAMPLE_FMT_S16;
4141
4242 switch (avctx->codec_id) {
43− case CODEC_ID_GSM:
43+ case AV_CODEC_ID_GSM:
4444 avctx->frame_size = GSM_FRAME_SIZE;
4545 avctx->block_align = GSM_BLOCK_SIZE;
4646 break;
47− case CODEC_ID_GSM_MS:
47+ case AV_CODEC_ID_GSM_MS:
4848 avctx->frame_size = 2 * GSM_FRAME_SIZE;
4949 avctx->block_align = GSM_MS_BLOCK_SIZE;
5050 }
@@ -79,7 +79,7 @@ static int gsm_decode_frame(AVCodecContext *avctx, void *data, · 28 unmodified lines
7979 samples = (int16_t *)s->frame.data[0];
8080
8181 switch (avctx->codec_id) {
82− case CODEC_ID_GSM:
82+ case AV_CODEC_ID_GSM:
8383 init_get_bits(&gb, buf, buf_size * 8);
8484 if (get_bits(&gb, 4) != 0xd)
8585 av_log(avctx, AV_LOG_WARNING, "Missing GSM magic!\n");
@@ -87,7 +87,7 @@ static int gsm_decode_frame(AVCodecContext *avctx, void *data, · 1 unmodified line
8787 if (res < 0)
8888 return res;
8989 break;
90− case CODEC_ID_GSM_MS:
90+ case AV_CODEC_ID_GSM_MS:
9191 res = ff_msgsm_decode_block(avctx, samples, buf);
9292 if (res < 0)
9393 return res;
@@ -108,7 +108,7 @@ static void gsm_flush(AVCodecContext *avctx) · 14 unmodified lines
108108 AVCodec ff_gsm_decoder = {
109109 .name = "gsm",
110110 .type = AVMEDIA_TYPE_AUDIO,
111− .id = CODEC_ID_GSM,
111+ .id = AV_CODEC_ID_GSM,
112112 .priv_data_size = sizeof(GSMContext),
113113 .init = gsm_init,
114114 .decode = gsm_decode_frame,
@@ -120,7 +120,7 @@ AVCodec ff_gsm_decoder = { · 5 unmodified lines
120120 AVCodec ff_gsm_ms_decoder = {
121121 .name = "gsm_ms",
122122 .type = AVMEDIA_TYPE_AUDIO,
123− .id = CODEC_ID_GSM_MS,
123+ .id = AV_CODEC_ID_GSM_MS,
124124 .priv_data_size = sizeof(GSMContext),
125125 .init = gsm_init,
126126 .decode = gsm_decode_frame,
libavcodec/h261_parser.c+1−1
@@ -82,7 +82,7 @@ static int h261_parse(AVCodecParserContext *s, · 81 unmodified lines
8282 }
8383
8484 AVCodecParser ff_h261_parser = {
85− .codec_ids = { CODEC_ID_H261 },
85+ .codec_ids = { AV_CODEC_ID_H261 },
8686 .priv_data_size = sizeof(ParseContext),
8787 .parser_parse = h261_parse,
8888 .parser_close = ff_parse_close,
libavcodec/h261dec.c+1−1
@@ -645,7 +645,7 @@ static av_cold int h261_decode_end(AVCodecContext *avctx) · 644 unmodified lines
645645 AVCodec ff_h261_decoder = {
646646 .name = "h261",
647647 .type = AVMEDIA_TYPE_VIDEO,
648− .id = CODEC_ID_H261,
648+ .id = AV_CODEC_ID_H261,
649649 .priv_data_size = sizeof(H261Context),
650650 .init = h261_decode_init,
651651 .close = h261_decode_end,
libavcodec/h261enc.c+1−1
@@ -326,7 +326,7 @@ FF_MPV_GENERIC_CLASS(h261) · 325 unmodified lines
326326 AVCodec ff_h261_encoder = {
327327 .name = "h261",
328328 .type = AVMEDIA_TYPE_VIDEO,
329− .id = CODEC_ID_H261,
329+ .id = AV_CODEC_ID_H261,
330330 .priv_data_size = sizeof(H261Context),
331331 .init = ff_MPV_encode_init,
332332 .encode2 = ff_MPV_encode_picture,
libavcodec/h263_parser.c+1−1
@@ -84,7 +84,7 @@ static int h263_parse(AVCodecParserContext *s, · 83 unmodified lines
8484 }
8585
8686 AVCodecParser ff_h263_parser = {
87− .codec_ids = { CODEC_ID_H263 },
87+ .codec_ids = { AV_CODEC_ID_H263 },
8888 .priv_data_size = sizeof(ParseContext),
8989 .parser_parse = h263_parse,
9090 .parser_close = ff_parse_close,
libavcodec/h263dec.c+25−25
@@ -63,43 +63,43 @@ av_cold int ff_h263_decode_init(AVCodecContext *avctx) · 62 unmodified lines
6363
6464 /* select sub codec */
6565 switch(avctx->codec->id) {
66− case CODEC_ID_H263:
66+ case AV_CODEC_ID_H263:
6767 s->unrestricted_mv= 0;
6868 avctx->chroma_sample_location = AVCHROMA_LOC_CENTER;
6969 break;
70− case CODEC_ID_MPEG4:
70+ case AV_CODEC_ID_MPEG4:
7171 break;
72− case CODEC_ID_MSMPEG4V1:
72+ case AV_CODEC_ID_MSMPEG4V1:
7373 s->h263_pred = 1;
7474 s->msmpeg4_version=1;
7575 break;
76− case CODEC_ID_MSMPEG4V2:
76+ case AV_CODEC_ID_MSMPEG4V2:
7777 s->h263_pred = 1;
7878 s->msmpeg4_version=2;
7979 break;
80− case CODEC_ID_MSMPEG4V3:
80+ case AV_CODEC_ID_MSMPEG4V3:
8181 s->h263_pred = 1;
8282 s->msmpeg4_version=3;
8383 break;
84− case CODEC_ID_WMV1:
84+ case AV_CODEC_ID_WMV1:
8585 s->h263_pred = 1;
8686 s->msmpeg4_version=4;
8787 break;
88− case CODEC_ID_WMV2:
88+ case AV_CODEC_ID_WMV2:
8989 s->h263_pred = 1;
9090 s->msmpeg4_version=5;
9191 break;
92− case CODEC_ID_VC1:
93− case CODEC_ID_WMV3:
94− case CODEC_ID_VC1IMAGE:
95− case CODEC_ID_WMV3IMAGE:
92+ case AV_CODEC_ID_VC1:
93+ case AV_CODEC_ID_WMV3:
94+ case AV_CODEC_ID_VC1IMAGE:
95+ case AV_CODEC_ID_WMV3IMAGE:
9696 s->h263_pred = 1;
9797 s->msmpeg4_version=6;
9898 avctx->chroma_sample_location = AVCHROMA_LOC_LEFT;
9999 break;
100− case CODEC_ID_H263I:
100+ case AV_CODEC_ID_H263I:
101101 break;
102− case CODEC_ID_FLV1:
102+ case AV_CODEC_ID_FLV1:
103103 s->h263_flv = 1;
104104 break;
105105 default:
@@ -109,7 +109,7 @@ av_cold int ff_h263_decode_init(AVCodecContext *avctx) · 3 unmodified lines
109109 avctx->hwaccel= ff_find_hwaccel(avctx->codec->id, avctx->pix_fmt);
110110
111111 /* for h263, we allocate the images after having read the header */
112− if (avctx->codec->id != CODEC_ID_H263 && avctx->codec->id != CODEC_ID_MPEG4)
112+ if (avctx->codec->id != AV_CODEC_ID_H263 && avctx->codec->id != AV_CODEC_ID_MPEG4)
113113 if (ff_MPV_common_init(s) < 0)
114114 return -1;
115115
@@ -168,7 +168,7 @@ static int decode_slice(MpegEncContext *s){ · 52 unmodified lines
168168 if(s->partitioned_frame){
169169 const int qscale= s->qscale;
170170
171− if(CONFIG_MPEG4_DECODER && s->codec_id==CODEC_ID_MPEG4){
171+ if(CONFIG_MPEG4_DECODER && s->codec_id==AV_CODEC_ID_MPEG4){
172172 if(ff_mpeg4_decode_partitions(s) < 0)
173173 return -1;
174174 }
@@ -260,7 +260,7 @@ static int decode_slice(MpegEncContext *s){ · 85 unmodified lines
260260
261261 assert(s->mb_x==0 && s->mb_y==s->mb_height);
262262
263− if(s->codec_id==CODEC_ID_MPEG4
263+ if(s->codec_id==AV_CODEC_ID_MPEG4
264264 && (s->workaround_bugs&FF_BUG_AUTODETECT)
265265 && get_bits_left(&s->gb) >= 48
266266 && show_bits(&s->gb, 24)==0x4010
@@ -268,7 +268,7 @@ static int decode_slice(MpegEncContext *s){ · 1 unmodified line
268268 s->padding_bug_score+=32;
269269
270270 /* try to detect the padding bug */
271− if( s->codec_id==CODEC_ID_MPEG4
271+ if( s->codec_id==AV_CODEC_ID_MPEG4
272272 && (s->workaround_bugs&FF_BUG_AUTODETECT)
273273 && get_bits_left(&s->gb) >=0
274274 && get_bits_left(&s->gb) < 48
@@ -367,9 +367,9 @@ uint64_t time= rdtsc(); · 92 unmodified lines
367367 if(s->flags&CODEC_FLAG_TRUNCATED){
368368 int next;
369369
370− if(CONFIG_MPEG4_DECODER && s->codec_id==CODEC_ID_MPEG4){
370+ if(CONFIG_MPEG4_DECODER && s->codec_id==AV_CODEC_ID_MPEG4){
371371 next= ff_mpeg4_find_frame_end(&s->parse_context, buf, buf_size);
372− }else if(CONFIG_H263_DECODER && s->codec_id==CODEC_ID_H263){
372+ }else if(CONFIG_H263_DECODER && s->codec_id==AV_CODEC_ID_H263){
373373 next= ff_h263_find_frame_end(&s->parse_context, buf, buf_size);
374374 }else{
375375 av_log(s->avctx, AV_LOG_ERROR, "this codec does not support truncated bitstreams\n");
@@ -416,7 +416,7 @@ retry: · 40 unmodified lines
416416 ret = ff_mpeg4_decode_picture_header(s, &gb);
417417 }
418418 ret = ff_mpeg4_decode_picture_header(s, &s->gb);
419− } else if (CONFIG_H263I_DECODER && s->codec_id == CODEC_ID_H263I) {
419+ } else if (CONFIG_H263I_DECODER && s->codec_id == AV_CODEC_ID_H263I) {
420420 ret = ff_intel_h263_decode_picture_header(s);
421421 } else if (CONFIG_FLV_DECODER && s->h263_flv) {
422422 ret = ff_flv_decode_picture_header(s);
@@ -531,7 +531,7 @@ retry: · 108 unmodified lines
531531 * Let us hope this at least works.
532532 */
533533 if( s->resync_marker==0 && s->data_partitioning==0 && s->divx_version==-1
534− && s->codec_id==CODEC_ID_MPEG4 && s->vo_type==0)
534+ && s->codec_id==AV_CODEC_ID_MPEG4 && s->vo_type==0)
535535 s->workaround_bugs|= FF_BUG_NO_PADDING;
536536
537537 if(s->lavc_build<4609U) //FIXME not sure about the version num but a 4609 file seems ok
@@ -561,7 +561,7 @@ retry: · 23 unmodified lines
561561 s->divx_packed ? "p" : "");
562562
563563 #if HAVE_MMX
564− if (s->codec_id == CODEC_ID_MPEG4 && s->xvid_build>=0 && avctx->idct_algo == FF_IDCT_AUTO && (av_get_cpu_flags() & AV_CPU_FLAG_MMX)) {
564+ if (s->codec_id == AV_CODEC_ID_MPEG4 && s->xvid_build>=0 && avctx->idct_algo == FF_IDCT_AUTO && (av_get_cpu_flags() & AV_CPU_FLAG_MMX)) {
565565 avctx->idct_algo= FF_IDCT_XVIDMMX;
566566 ff_dct_common_init(s);
567567 s->picture_number=0;
@@ -588,7 +588,7 @@ retry: · 20 unmodified lines
588588 goto retry;
589589 }
590590
591− if((s->codec_id==CODEC_ID_H263 || s->codec_id==CODEC_ID_H263P || s->codec_id == CODEC_ID_H263I))
591+ if((s->codec_id==AV_CODEC_ID_H263 || s->codec_id==AV_CODEC_ID_H263P || s->codec_id == AV_CODEC_ID_H263I))
592592 s->gob_index = ff_h263_get_gob_height(s);
593593
594594 // for skipping the frame
@@ -676,7 +676,7 @@ retry: · 81 unmodified lines
676676 assert(s->bitstream_buffer_size==0);
677677 frame_end:
678678 /* divx 5.01+ bistream reorder stuff */
679− if(s->codec_id==CODEC_ID_MPEG4 && s->divx_packed){
679+ if(s->codec_id==AV_CODEC_ID_MPEG4 && s->divx_packed){
680680 int current_pos= get_bits_count(&s->gb)>>3;
681681 int startcode_found=0;
682682
@@ -739,7 +739,7 @@ av_log(avctx, AV_LOG_DEBUG, "%"PRId64"\n", rdtsc()-time); · 56 unmodified lines
739739 AVCodec ff_h263_decoder = {
740740 .name = "h263",
741741 .type = AVMEDIA_TYPE_VIDEO,
742− .id = CODEC_ID_H263,
742+ .id = AV_CODEC_ID_H263,
743743 .priv_data_size = sizeof(MpegEncContext),
744744 .init = ff_h263_decode_init,
745745 .close = ff_h263_decode_end,
libavcodec/h264.c+5−5
@@ -1068,7 +1068,7 @@ av_cold int ff_h264_decode_init(AVCodecContext *avctx) · 1067 unmodified lines
10681068 h->prev_poc_msb = 1 << 16;
10691069 h->x264_build = -1;
10701070 ff_h264_reset_sei(h);
1071− if (avctx->codec_id == CODEC_ID_H264) {
1071+ if (avctx->codec_id == AV_CODEC_ID_H264) {
10721072 if (avctx->ticks_per_frame == 1)
10731073 s->avctx->time_base.den *= 2;
10741074 avctx->ticks_per_frame = 2;
@@ -1290,7 +1290,7 @@ int ff_h264_frame_start(H264Context *h) · 215 unmodified lines
12901290 * SVQ3 as well as most other codecs have only last/next/current and thus
12911291 * get released even with set reference, besides SVQ3 and others do not
12921292 * mark frames as reference later "naturally". */
1293− if (s->codec_id != CODEC_ID_SVQ3)
1293+ if (s->codec_id != AV_CODEC_ID_SVQ3)
12941294 s->current_picture_ptr->f.reference = 0;
12951295
12961296 s->current_picture_ptr->field_poc[0] =
@@ -3447,7 +3447,7 @@ static int decode_slice(struct AVCodecContext *avctx, void *arg) · 2150 unmodified lines
34473447 s->mb_skip_run = -1;
34483448
34493449 h->is_complex = FRAME_MBAFF || s->picture_structure != PICT_FRAME ||
3450− s->codec_id != CODEC_ID_H264 ||
3450+ s->codec_id != AV_CODEC_ID_H264 ||
34513451 (CONFIG_GRAY && (s->flags & CODEC_FLAG_GRAY));
34523452
34533453 if (h->pps.cabac) {
@@ -4090,7 +4090,7 @@ static const AVProfile profiles[] = { · 636 unmodified lines
40904090 AVCodec ff_h264_decoder = {
40914091 .name = "h264",
40924092 .type = AVMEDIA_TYPE_VIDEO,
4093− .id = CODEC_ID_H264,
4093+ .id = AV_CODEC_ID_H264,
40944094 .priv_data_size = sizeof(H264Context),
40954095 .init = ff_h264_decode_init,
40964096 .close = h264_decode_end,
@@ -4109,7 +4109,7 @@ AVCodec ff_h264_decoder = { · 12 unmodified lines
41094109 AVCodec ff_h264_vdpau_decoder = {
41104110 .name = "h264_vdpau",
41114111 .type = AVMEDIA_TYPE_VIDEO,
4112− .id = CODEC_ID_H264,
4112+ .id = AV_CODEC_ID_H264,
41134113 .priv_data_size = sizeof(H264Context),
41144114 .init = ff_h264_decode_init,
41154115 .close = h264_decode_end,
libavcodec/h264_mb_template.c+1−1
@@ -51,7 +51,7 @@ static av_noinline void FUNC(hl_decode_mb)(H264Context *h) · 50 unmodified lines
5151 int *block_offset = &h->block_offset[0];
5252 const int transform_bypass = !SIMPLE && (s->qscale == 0 && h->sps.transform_bypass);
5353 /* is_h264 should always be true if SVQ3 is disabled. */
54− const int is_h264 = !CONFIG_SVQ3_DECODER || SIMPLE || s->codec_id == CODEC_ID_H264;
54+ const int is_h264 = !CONFIG_SVQ3_DECODER || SIMPLE || s->codec_id == AV_CODEC_ID_H264;
5555 void (*idct_add)(uint8_t *dst, DCTELEM *block, int stride);
5656 const int block_h = 16 >> s->chroma_y_shift;
5757 const int chroma422 = CHROMA422;
libavcodec/h264_parser.c+1−1
@@ -342,7 +342,7 @@ static int init(AVCodecParserContext *s) · 341 unmodified lines
342342 }
343343
344344 AVCodecParser ff_h264_parser = {
345− .codec_ids = { CODEC_ID_H264 },
345+ .codec_ids = { AV_CODEC_ID_H264 },
346346 .priv_data_size = sizeof(H264Context),
347347 .parser_init = init,
348348 .parser_parse = h264_parse,
libavcodec/h264pred.c+11−11
@@ -371,8 +371,8 @@ void ff_h264_pred_init(H264PredContext *h, int codec_id, const int bit_depth, co · 370 unmodified lines
371371 #define FUNCD(a) a ## _c
372372
373373 #define H264_PRED(depth) \
374− if(codec_id != CODEC_ID_RV40){\
375− if(codec_id == CODEC_ID_VP8) {\
374+ if(codec_id != AV_CODEC_ID_RV40){\
375+ if(codec_id == AV_CODEC_ID_VP8) {\
376376 h->pred4x4[VERT_PRED ]= FUNCD(pred4x4_vertical_vp8);\
377377 h->pred4x4[HOR_PRED ]= FUNCD(pred4x4_horizontal_vp8);\
378378 } else {\
@@ -380,19 +380,19 @@ void ff_h264_pred_init(H264PredContext *h, int codec_id, const int bit_depth, co · 1 unmodified line
380380 h->pred4x4[HOR_PRED ]= FUNCC(pred4x4_horizontal , depth);\
381381 }\
382382 h->pred4x4[DC_PRED ]= FUNCC(pred4x4_dc , depth);\
383− if(codec_id == CODEC_ID_SVQ3)\
383+ if(codec_id == AV_CODEC_ID_SVQ3)\
384384 h->pred4x4[DIAG_DOWN_LEFT_PRED ]= FUNCD(pred4x4_down_left_svq3);\
385385 else\
386386 h->pred4x4[DIAG_DOWN_LEFT_PRED ]= FUNCC(pred4x4_down_left , depth);\
387387 h->pred4x4[DIAG_DOWN_RIGHT_PRED]= FUNCC(pred4x4_down_right , depth);\
388388 h->pred4x4[VERT_RIGHT_PRED ]= FUNCC(pred4x4_vertical_right , depth);\
389389 h->pred4x4[HOR_DOWN_PRED ]= FUNCC(pred4x4_horizontal_down , depth);\
390− if (codec_id == CODEC_ID_VP8) {\
390+ if (codec_id == AV_CODEC_ID_VP8) {\
391391 h->pred4x4[VERT_LEFT_PRED ]= FUNCD(pred4x4_vertical_left_vp8);\
392392 } else\
393393 h->pred4x4[VERT_LEFT_PRED ]= FUNCC(pred4x4_vertical_left , depth);\
394394 h->pred4x4[HOR_UP_PRED ]= FUNCC(pred4x4_horizontal_up , depth);\
395− if(codec_id != CODEC_ID_VP8) {\
395+ if(codec_id != AV_CODEC_ID_VP8) {\
396396 h->pred4x4[LEFT_DC_PRED ]= FUNCC(pred4x4_left_dc , depth);\
397397 h->pred4x4[TOP_DC_PRED ]= FUNCC(pred4x4_top_dc , depth);\
398398 h->pred4x4[DC_128_PRED ]= FUNCC(pred4x4_128_dc , depth);\
@@ -441,7 +441,7 @@ void ff_h264_pred_init(H264PredContext *h, int codec_id, const int bit_depth, co · 42 unmodified lines
441441 h->pred8x8[VERT_PRED8x8 ]= FUNCC(pred8x16_vertical , depth);\
442442 h->pred8x8[HOR_PRED8x8 ]= FUNCC(pred8x16_horizontal , depth);\
443443 }\
444− if (codec_id != CODEC_ID_VP8) {\
444+ if (codec_id != AV_CODEC_ID_VP8) {\
445445 if (chroma_format_idc == 1) {\
446446 h->pred8x8[PLANE_PRED8x8]= FUNCC(pred8x8_plane , depth);\
447447 } else {\
@@ -449,7 +449,7 @@ void ff_h264_pred_init(H264PredContext *h, int codec_id, const int bit_depth, co · 1 unmodified line
449449 }\
450450 } else\
451451 h->pred8x8[PLANE_PRED8x8]= FUNCD(pred8x8_tm_vp8);\
452− if(codec_id != CODEC_ID_RV40 && codec_id != CODEC_ID_VP8){\
452+ if(codec_id != AV_CODEC_ID_RV40 && codec_id != AV_CODEC_ID_VP8){\
453453 if (chroma_format_idc == 1) {\
454454 h->pred8x8[DC_PRED8x8 ]= FUNCC(pred8x8_dc , depth);\
455455 h->pred8x8[LEFT_DC_PRED8x8]= FUNCC(pred8x8_left_dc , depth);\
@@ -471,7 +471,7 @@ void ff_h264_pred_init(H264PredContext *h, int codec_id, const int bit_depth, co · 15 unmodified lines
471471 h->pred8x8[DC_PRED8x8 ]= FUNCD(pred8x8_dc_rv40);\
472472 h->pred8x8[LEFT_DC_PRED8x8]= FUNCD(pred8x8_left_dc_rv40);\
473473 h->pred8x8[TOP_DC_PRED8x8 ]= FUNCD(pred8x8_top_dc_rv40);\
474− if (codec_id == CODEC_ID_VP8) {\
474+ if (codec_id == AV_CODEC_ID_VP8) {\
475475 h->pred8x8[DC_127_PRED8x8]= FUNCC(pred8x8_127_dc , depth);\
476476 h->pred8x8[DC_129_PRED8x8]= FUNCC(pred8x8_129_dc , depth);\
477477 }\
@@ -486,13 +486,13 @@ void ff_h264_pred_init(H264PredContext *h, int codec_id, const int bit_depth, co · 8 unmodified lines
486486 h->pred16x16[VERT_PRED8x8 ]= FUNCC(pred16x16_vertical , depth);\
487487 h->pred16x16[HOR_PRED8x8 ]= FUNCC(pred16x16_horizontal , depth);\
488488 switch(codec_id){\
489− case CODEC_ID_SVQ3:\
489+ case AV_CODEC_ID_SVQ3:\
490490 h->pred16x16[PLANE_PRED8x8 ]= FUNCD(pred16x16_plane_svq3);\
491491 break;\
492− case CODEC_ID_RV40:\
492+ case AV_CODEC_ID_RV40:\
493493 h->pred16x16[PLANE_PRED8x8 ]= FUNCD(pred16x16_plane_rv40);\
494494 break;\
495− case CODEC_ID_VP8:\
495+ case AV_CODEC_ID_VP8:\
496496 h->pred16x16[PLANE_PRED8x8 ]= FUNCD(pred16x16_tm_vp8);\
497497 h->pred16x16[DC_127_PRED8x8]= FUNCC(pred16x16_127_dc , depth);\
498498 h->pred16x16[DC_129_PRED8x8]= FUNCC(pred16x16_129_dc , depth);\
libavcodec/huffyuv.c+5−5
@@ -612,7 +612,7 @@ static av_cold int encode_init(AVCodecContext *avctx) · 611 unmodified lines
612612 }
613613 }else s->context= 0;
614614
615− if(avctx->codec->id==CODEC_ID_HUFFYUV){
615+ if(avctx->codec->id==AV_CODEC_ID_HUFFYUV){
616616 if(avctx->pix_fmt==PIX_FMT_YUV420P){
617617 av_log(avctx, AV_LOG_ERROR, "Error: YV12 is not supported by huffyuv; use vcodec=ffvhuff or format=422p\n");
618618 return -1;
@@ -1451,7 +1451,7 @@ static av_cold int encode_end(AVCodecContext *avctx) · 832 unmodified lines
14511451 AVCodec ff_huffyuv_decoder = {
14521452 .name = "huffyuv",
14531453 .type = AVMEDIA_TYPE_VIDEO,
1454− .id = CODEC_ID_HUFFYUV,
1454+ .id = AV_CODEC_ID_HUFFYUV,
14551455 .priv_data_size = sizeof(HYuvContext),
14561456 .init = decode_init,
14571457 .close = decode_end,
@@ -1467,7 +1467,7 @@ AVCodec ff_huffyuv_decoder = { · 9 unmodified lines
14671467 AVCodec ff_ffvhuff_decoder = {
14681468 .name = "ffvhuff",
14691469 .type = AVMEDIA_TYPE_VIDEO,
1470− .id = CODEC_ID_FFVHUFF,
1470+ .id = AV_CODEC_ID_FFVHUFF,
14711471 .priv_data_size = sizeof(HYuvContext),
14721472 .init = decode_init,
14731473 .close = decode_end,
@@ -1483,7 +1483,7 @@ AVCodec ff_ffvhuff_decoder = { · 9 unmodified lines
14831483 AVCodec ff_huffyuv_encoder = {
14841484 .name = "huffyuv",
14851485 .type = AVMEDIA_TYPE_VIDEO,
1486− .id = CODEC_ID_HUFFYUV,
1486+ .id = AV_CODEC_ID_HUFFYUV,
14871487 .priv_data_size = sizeof(HYuvContext),
14881488 .init = encode_init,
14891489 .encode2 = encode_frame,
@@ -1499,7 +1499,7 @@ AVCodec ff_huffyuv_encoder = { · 9 unmodified lines
14991499 AVCodec ff_ffvhuff_encoder = {
15001500 .name = "ffvhuff",
15011501 .type = AVMEDIA_TYPE_VIDEO,
1502− .id = CODEC_ID_FFVHUFF,
1502+ .id = AV_CODEC_ID_FFVHUFF,
15031503 .priv_data_size = sizeof(HYuvContext),
15041504 .init = encode_init,
15051505 .encode2 = encode_frame,
libavcodec/idcinvideo.c+1−1
@@ -256,7 +256,7 @@ static av_cold int idcin_decode_end(AVCodecContext *avctx) · 255 unmodified lines
256256 AVCodec ff_idcin_decoder = {
257257 .name = "idcinvideo",
258258 .type = AVMEDIA_TYPE_VIDEO,
259− .id = CODEC_ID_IDCIN,
259+ .id = AV_CODEC_ID_IDCIN,
260260 .priv_data_size = sizeof(IdcinContext),
261261 .init = idcin_decode_init,
262262 .close = idcin_decode_end,
libavcodec/iff.c+2−2
@@ -370,7 +370,7 @@ static av_cold int decode_end(AVCodecContext *avctx) · 369 unmodified lines
370370 AVCodec ff_iff_ilbm_decoder = {
371371 .name = "iff_ilbm",
372372 .type = AVMEDIA_TYPE_VIDEO,
373− .id = CODEC_ID_IFF_ILBM,
373+ .id = AV_CODEC_ID_IFF_ILBM,
374374 .priv_data_size = sizeof(IffContext),
375375 .init = decode_init,
376376 .close = decode_end,
@@ -382,7 +382,7 @@ AVCodec ff_iff_ilbm_decoder = { · 5 unmodified lines
382382 AVCodec ff_iff_byterun1_decoder = {
383383 .name = "iff_byterun1",
384384 .type = AVMEDIA_TYPE_VIDEO,
385− .id = CODEC_ID_IFF_BYTERUN1,
385+ .id = AV_CODEC_ID_IFF_BYTERUN1,
386386 .priv_data_size = sizeof(IffContext),
387387 .init = decode_init,
388388 .close = decode_end,
libavcodec/imc.c+6−6
@@ -175,8 +175,8 @@ static av_cold int imc_decode_init(AVCodecContext *avctx) · 174 unmodified lines
175175 IMCContext *q = avctx->priv_data;
176176 double r1, r2;
177177
178− if ((avctx->codec_id == CODEC_ID_IMC && avctx->channels != 1)
179− || (avctx->codec_id == CODEC_ID_IAC && avctx->channels > 2)) {
178+ if ((avctx->codec_id == AV_CODEC_ID_IMC && avctx->channels != 1)
179+ || (avctx->codec_id == AV_CODEC_ID_IAC && avctx->channels > 2)) {
180180 av_log_ask_for_sample(avctx, "Number of channels is not supported\n");
181181 return AVERROR_PATCHWELCOME;
182182 }
@@ -227,7 +227,7 @@ static av_cold int imc_decode_init(AVCodecContext *avctx) · 44 unmodified lines
227227 }
228228 }
229229
230− if (avctx->codec_id == CODEC_ID_IAC) {
230+ if (avctx->codec_id == AV_CODEC_ID_IAC) {
231231 iac_generate_tabs(q, avctx->sample_rate);
232232 } else {
233233 memcpy(q->cyclTab, cyclTab, sizeof(cyclTab));
@@ -841,7 +841,7 @@ static int imc_decode_block(AVCodecContext *avctx, IMCContext *q, int ch) · 607 unmodified lines
841841 }
842842 }
843843 }
844− if (avctx->codec_id == CODEC_ID_IAC) {
844+ if (avctx->codec_id == AV_CODEC_ID_IAC) {
845845 bitscount += !!chctx->bandWidthT[BANDS - 1];
846846 if (!(stream_format_code & 0x2))
847847 bitscount += 16;
@@ -990,7 +990,7 @@ static av_cold int imc_decode_close(AVCodecContext * avctx) · 142 unmodified lines
990990 AVCodec ff_imc_decoder = {
991991 .name = "imc",
992992 .type = AVMEDIA_TYPE_AUDIO,
993− .id = CODEC_ID_IMC,
993+ .id = AV_CODEC_ID_IMC,
994994 .priv_data_size = sizeof(IMCContext),
995995 .init = imc_decode_init,
996996 .close = imc_decode_close,
@@ -1002,7 +1002,7 @@ AVCodec ff_imc_decoder = { · 5 unmodified lines
10021002 AVCodec ff_iac_decoder = {
10031003 .name = "iac",
10041004 .type = AVMEDIA_TYPE_AUDIO,
1005− .id = CODEC_ID_IAC,
1005+ .id = AV_CODEC_ID_IAC,
10061006 .priv_data_size = sizeof(IMCContext),
10071007 .init = imc_decode_init,
10081008 .close = imc_decode_close,
libavcodec/imx_dump_header_bsf.c+1−1
@@ -37,7 +37,7 @@ static int imx_dump_header(AVBitStreamFilterContext *bsfc, AVCodecContext *avctx · 36 unmodified lines
3737 static const uint8_t imx_header[16] = { 0x06,0x0e,0x2b,0x34,0x01,0x02,0x01,0x01,0x0d,0x01,0x03,0x01,0x05,0x01,0x01,0x00 };
3838 uint8_t *poutbufp;
3939
40− if (avctx->codec_id != CODEC_ID_MPEG2VIDEO) {
40+ if (avctx->codec_id != AV_CODEC_ID_MPEG2VIDEO) {
4141 av_log(avctx, AV_LOG_ERROR, "imx bitstream filter only applies to mpeg2video codec\n");
4242 return 0;
4343 }
libavcodec/indeo2.c+1−1
@@ -233,7 +233,7 @@ static av_cold int ir2_decode_end(AVCodecContext *avctx){ · 232 unmodified lines
233233 AVCodec ff_indeo2_decoder = {
234234 .name = "indeo2",
235235 .type = AVMEDIA_TYPE_VIDEO,
236− .id = CODEC_ID_INDEO2,
236+ .id = AV_CODEC_ID_INDEO2,
237237 .priv_data_size = sizeof(Ir2Context),
238238 .init = ir2_decode_init,
239239 .close = ir2_decode_end,
libavcodec/indeo3.c+1−1
@@ -1095,7 +1095,7 @@ static av_cold int decode_close(AVCodecContext *avctx) · 1094 unmodified lines
10951095 AVCodec ff_indeo3_decoder = {
10961096 .name = "indeo3",
10971097 .type = AVMEDIA_TYPE_VIDEO,
1098− .id = CODEC_ID_INDEO3,
1098+ .id = AV_CODEC_ID_INDEO3,
10991099 .priv_data_size = sizeof(Indeo3DecodeContext),
11001100 .init = decode_init,
11011101 .close = decode_close,
libavcodec/indeo4.c+1−1
@@ -601,7 +601,7 @@ static av_cold int decode_init(AVCodecContext *avctx) · 600 unmodified lines
601601 AVCodec ff_indeo4_decoder = {
602602 .name = "indeo4",
603603 .type = AVMEDIA_TYPE_VIDEO,
604− .id = CODEC_ID_INDEO4,
604+ .id = AV_CODEC_ID_INDEO4,
605605 .priv_data_size = sizeof(IVI45DecContext),
606606 .init = decode_init,
607607 .close = ff_ivi_decode_close,
libavcodec/indeo5.c+1−1
@@ -626,7 +626,7 @@ static av_cold int decode_init(AVCodecContext *avctx) · 625 unmodified lines
626626 AVCodec ff_indeo5_decoder = {
627627 .name = "indeo5",
628628 .type = AVMEDIA_TYPE_VIDEO,
629− .id = CODEC_ID_INDEO5,
629+ .id = AV_CODEC_ID_INDEO5,
630630 .priv_data_size = sizeof(IVI45DecContext),
631631 .init = decode_init,
632632 .close = ff_ivi_decode_close,
libavcodec/intelh263dec.c+1−1
@@ -127,7 +127,7 @@ int ff_intel_h263_decode_picture_header(MpegEncContext *s) · 126 unmodified lines
127127 AVCodec ff_h263i_decoder = {
128128 .name = "h263i",
129129 .type = AVMEDIA_TYPE_VIDEO,
130− .id = CODEC_ID_H263I,
130+ .id = AV_CODEC_ID_H263I,
131131 .priv_data_size = sizeof(MpegEncContext),
132132 .init = ff_h263_decode_init,
133133 .close = ff_h263_decode_end,
libavcodec/internal.h+1−1
@@ -96,7 +96,7 @@ int ff_is_hwaccel_pix_fmt(enum PixelFormat pix_fmt); · 95 unmodified lines
9696 * @param pix_fmt the pixel format to match
9797 * @return the hardware accelerated codec, or NULL if none was found.
9898 */
99−AVHWAccel *ff_find_hwaccel(enum CodecID codec_id, enum PixelFormat pix_fmt);
99+AVHWAccel *ff_find_hwaccel(enum AVCodecID codec_id, enum PixelFormat pix_fmt);
100100
101101 /**
102102 * Return the index into tab at which {a,b} match elements {[0],[1]} of tab.
libavcodec/interplayvideo.c+1−1
@@ -1017,7 +1017,7 @@ static av_cold int ipvideo_decode_end(AVCodecContext *avctx) · 1016 unmodified lines
10171017 AVCodec ff_interplay_video_decoder = {
10181018 .name = "interplayvideo",
10191019 .type = AVMEDIA_TYPE_VIDEO,
1020− .id = CODEC_ID_INTERPLAY_VIDEO,
1020+ .id = AV_CODEC_ID_INTERPLAY_VIDEO,
10211021 .priv_data_size = sizeof(IpvideoContext),
10221022 .init = ipvideo_decode_init,
10231023 .close = ipvideo_decode_end,
libavcodec/ituh263dec.c+5−5
@@ -230,14 +230,14 @@ const uint8_t *ff_h263_find_resync_marker(const uint8_t *restrict p, const uint8 · 229 unmodified lines
230230 int ff_h263_resync(MpegEncContext *s){
231231 int left, pos, ret;
232232
233− if(s->codec_id==CODEC_ID_MPEG4){
233+ if(s->codec_id==AV_CODEC_ID_MPEG4){
234234 skip_bits1(&s->gb);
235235 align_get_bits(&s->gb);
236236 }
237237
238238 if(show_bits(&s->gb, 16)==0){
239239 pos= get_bits_count(&s->gb);
240− if(CONFIG_MPEG4_DECODER && s->codec_id==CODEC_ID_MPEG4)
240+ if(CONFIG_MPEG4_DECODER && s->codec_id==AV_CODEC_ID_MPEG4)
241241 ret= ff_mpeg4_decode_video_packet_header(s);
242242 else
243243 ret= h263_decode_gob_header(s);
@@ -254,7 +254,7 @@ int ff_h263_resync(MpegEncContext *s){ · 10 unmodified lines
254254 GetBitContext bak= s->gb;
255255
256256 pos= get_bits_count(&s->gb);
257− if(CONFIG_MPEG4_DECODER && s->codec_id==CODEC_ID_MPEG4)
257+ if(CONFIG_MPEG4_DECODER && s->codec_id==AV_CODEC_ID_MPEG4)
258258 ret= ff_mpeg4_decode_video_packet_header(s);
259259 else
260260 ret= h263_decode_gob_header(s);
@@ -458,7 +458,7 @@ static int h263_decode_block(MpegEncContext * s, DCTELEM * block, · 197 unmodified lines
458458 }
459459 } else if (s->mb_intra) {
460460 /* DC coef */
461− if(s->codec_id == CODEC_ID_RV10){
461+ if(s->codec_id == AV_CODEC_ID_RV10){
462462 #if CONFIG_RV10_DECODER
463463 if (s->rv10_version == 3 && s->pict_type == AV_PICTURE_TYPE_I) {
464464 int component, diff;
@@ -517,7 +517,7 @@ retry: · 52 unmodified lines
517517 run = get_bits(&s->gb, 6);
518518 level = (int8_t)get_bits(&s->gb, 8);
519519 if(level == -128){
520− if (s->codec_id == CODEC_ID_RV10) {
520+ if (s->codec_id == AV_CODEC_ID_RV10) {
521521 /* XXX: should patch encoder too */
522522 level = get_sbits(&s->gb, 12);
523523 }else{
libavcodec/ituh263enc.c+4−4
@@ -288,7 +288,7 @@ void ff_clean_h263_qscales(MpegEncContext *s){ · 287 unmodified lines
288288 qscale_table[ s->mb_index2xy[i] ]= qscale_table[ s->mb_index2xy[i+1] ]+2;
289289 }
290290
291− if(s->codec_id != CODEC_ID_H263P){
291+ if(s->codec_id != AV_CODEC_ID_H263P){
292292 for(i=1; i<s->mb_num; i++){
293293 int mb_xy= s->mb_index2xy[i];
294294
@@ -795,10 +795,10 @@ void ff_h263_encode_init(MpegEncContext *s) · 500 unmodified lines
795795
796796 // use fcodes >1 only for mpeg4 & h263 & h263p FIXME
797797 switch(s->codec_id){
798− case CODEC_ID_MPEG4:
798+ case AV_CODEC_ID_MPEG4:
799799 s->fcode_tab= fcode_tab;
800800 break;
801− case CODEC_ID_H263P:
801+ case AV_CODEC_ID_H263P:
802802 if(s->umvplus)
803803 s->fcode_tab= umv_fcode_tab;
804804 if(s->modified_quant){
@@ -810,7 +810,7 @@ void ff_h263_encode_init(MpegEncContext *s) · 5 unmodified lines
810810 }
811811 break;
812812 //Note for mpeg4 & h263 the dc-scale table will be set per frame as needed later
813− case CODEC_ID_FLV1:
813+ case AV_CODEC_ID_FLV1:
814814 if (s->h263_flv > 1) {
815815 s->min_qcoeff= -1023;
816816 s->max_qcoeff= 1023;
libavcodec/ivi_common.c+3−3
@@ -767,7 +767,7 @@ int ff_ivi_decode_frame(AVCodecContext *avctx, void *data, int *data_size, · 766 unmodified lines
767767 /* If the bidirectional mode is enabled, next I and the following P frame will */
768768 /* be sent together. Unfortunately the approach below seems to be the only way */
769769 /* to handle the B-frames mode. That's exactly the same Intel decoders do. */
770− if (avctx->codec_id == CODEC_ID_INDEO4 && ctx->frame_type == 0/*FRAMETYPE_INTRA*/) {
770+ if (avctx->codec_id == AV_CODEC_ID_INDEO4 && ctx->frame_type == 0/*FRAMETYPE_INTRA*/) {
771771 while (get_bits(&ctx->gb, 8)); // skip version string
772772 skip_bits_long(&ctx->gb, 64); // skip padding, TODO: implement correct 8-bytes alignment
773773 if (get_bits_left(&ctx->gb) > 18 && show_bits(&ctx->gb, 18) == 0x3FFF8)
@@ -784,7 +784,7 @@ int ff_ivi_decode_frame(AVCodecContext *avctx, void *data, int *data_size, · 10 unmodified lines
784784 }
785785
786786 if (ctx->is_scalable) {
787− if (avctx->codec_id == CODEC_ID_INDEO4)
787+ if (avctx->codec_id == AV_CODEC_ID_INDEO4)
788788 ff_ivi_recompose_haar(&ctx->planes[0], ctx->frame.data[0], ctx->frame.linesize[0], 4);
789789 else
790790 ff_ivi_recompose53 (&ctx->planes[0], ctx->frame.data[0], ctx->frame.linesize[0], 4);
@@ -817,7 +817,7 @@ av_cold int ff_ivi_decode_close(AVCodecContext *avctx) · 26 unmodified lines
817817 avctx->release_buffer(avctx, &ctx->frame);
818818
819819 #if IVI4_STREAM_ANALYSER
820− if (avctx->codec_id == CODEC_ID_INDEO4) {
820+ if (avctx->codec_id == AV_CODEC_ID_INDEO4) {
821821 if (ctx->is_scalable)
822822 av_log(avctx, AV_LOG_ERROR, "This video uses scalability mode!\n");
823823 if (ctx->uses_tiling)
libavcodec/jpeglsdec.c+1−1
@@ -365,7 +365,7 @@ int ff_jpegls_decode_picture(MJpegDecodeContext *s, int near, int point_transfor · 364 unmodified lines
365365 AVCodec ff_jpegls_decoder = {
366366 .name = "jpegls",
367367 .type = AVMEDIA_TYPE_VIDEO,
368− .id = CODEC_ID_JPEGLS,
368+ .id = AV_CODEC_ID_JPEGLS,
369369 .priv_data_size = sizeof(MJpegDecodeContext),
370370 .init = ff_mjpeg_decode_init,
371371 .close = ff_mjpeg_decode_end,
libavcodec/jpeglsenc.c+1−1
@@ -395,7 +395,7 @@ static av_cold int encode_init_ls(AVCodecContext *ctx) { · 394 unmodified lines
395395 AVCodec ff_jpegls_encoder = { //FIXME avoid MPV_* lossless JPEG should not need them
396396 .name = "jpegls",
397397 .type = AVMEDIA_TYPE_VIDEO,
398− .id = CODEC_ID_JPEGLS,
398+ .id = AV_CODEC_ID_JPEGLS,
399399 .priv_data_size = sizeof(JpeglsContext),
400400 .init = encode_init_ls,
401401 .encode2 = encode_picture_ls,
libavcodec/jvdec.c+1−1
@@ -206,7 +206,7 @@ AVCodec ff_jv_decoder = { · 205 unmodified lines
206206 .name = "jv",
207207 .long_name = NULL_IF_CONFIG_SMALL("Bitmap Brothers JV video"),
208208 .type = AVMEDIA_TYPE_VIDEO,
209− .id = CODEC_ID_JV,
209+ .id = AV_CODEC_ID_JV,
210210 .priv_data_size = sizeof(JvContext),
211211 .init = decode_init,
212212 .close = decode_close,
libavcodec/kgv1dec.c+1−1
@@ -183,7 +183,7 @@ static av_cold int decode_end(AVCodecContext *avctx) · 182 unmodified lines
183183 AVCodec ff_kgv1_decoder = {
184184 .name = "kgv1",
185185 .type = AVMEDIA_TYPE_VIDEO,
186− .id = CODEC_ID_KGV1,
186+ .id = AV_CODEC_ID_KGV1,
187187 .priv_data_size = sizeof(KgvContext),
188188 .init = decode_init,
189189 .close = decode_end,
libavcodec/kmvc.c+1−1
@@ -422,7 +422,7 @@ static av_cold int decode_end(AVCodecContext * avctx) · 421 unmodified lines
422422 AVCodec ff_kmvc_decoder = {
423423 .name = "kmvc",
424424 .type = AVMEDIA_TYPE_VIDEO,
425− .id = CODEC_ID_KMVC,
425+ .id = AV_CODEC_ID_KMVC,
426426 .priv_data_size = sizeof(KmvcContext),
427427 .init = decode_init,
428428 .close = decode_end,
libavcodec/lagarith.c+1−1
@@ -687,7 +687,7 @@ static av_cold int lag_decode_end(AVCodecContext *avctx) · 686 unmodified lines
687687 AVCodec ff_lagarith_decoder = {
688688 .name = "lagarith",
689689 .type = AVMEDIA_TYPE_VIDEO,
690− .id = CODEC_ID_LAGARITH,
690+ .id = AV_CODEC_ID_LAGARITH,
691691 .priv_data_size = sizeof(LagarithContext),
692692 .init = lag_decode_init,
693693 .close = lag_decode_end,
libavcodec/latm_parser.c+1−1
@@ -106,7 +106,7 @@ static int latm_parse(AVCodecParserContext *s1, AVCodecContext *avctx, · 105 unmodified lines
106106 }
107107
108108 AVCodecParser ff_aac_latm_parser = {
109− .codec_ids = { CODEC_ID_AAC_LATM },
109+ .codec_ids = { AV_CODEC_ID_AAC_LATM },
110110 .priv_data_size = sizeof(LATMParseContext),
111111 .parser_parse = latm_parse,
112112 .parser_close = ff_parse_close
libavcodec/lcldec.c+12−12
@@ -189,7 +189,7 @@ static int decode_frame(AVCodecContext *avctx, void *data, int *data_size, AVPac · 188 unmodified lines
189189
190190 /* Decompress frame */
191191 switch (avctx->codec_id) {
192− case CODEC_ID_MSZH:
192+ case AV_CODEC_ID_MSZH:
193193 switch (c->compression) {
194194 case COMP_MSZH:
195195 if (c->flags & FLAG_MULTITHREAD) {
@@ -252,7 +252,7 @@ static int decode_frame(AVCodecContext *avctx, void *data, int *data_size, AVPac · 56 unmodified lines
252252 }
253253 break;
254254 #if CONFIG_ZLIB_DECODER
255− case CODEC_ID_ZLIB:
255+ case AV_CODEC_ID_ZLIB:
256256 /* Using the original dll with normal compression (-1) and RGB format
257257 * gives a file with ZLIB fourcc, but frame is really uncompressed.
258258 * To be sure that's true check also frame size */
@@ -290,7 +290,7 @@ static int decode_frame(AVCodecContext *avctx, void *data, int *data_size, AVPac · 31 unmodified lines
290290
291291
292292 /* Apply PNG filter */
293− if (avctx->codec_id == CODEC_ID_ZLIB && (c->flags & FLAG_PNGFILTER)) {
293+ if (avctx->codec_id == AV_CODEC_ID_ZLIB && (c->flags & FLAG_PNGFILTER)) {
294294 switch (c->imgtype) {
295295 case IMGTYPE_YUV111:
296296 case IMGTYPE_RGB24:
@@ -485,8 +485,8 @@ static av_cold int decode_init(AVCodecContext *avctx) · 188 unmodified lines
485485 }
486486
487487 /* Check codec type */
488− if ((avctx->codec_id == CODEC_ID_MSZH && avctx->extradata[7] != CODEC_MSZH) ||
489− (avctx->codec_id == CODEC_ID_ZLIB && avctx->extradata[7] != CODEC_ZLIB)) {
488+ if ((avctx->codec_id == AV_CODEC_ID_MSZH && avctx->extradata[7] != CODEC_MSZH) ||
489+ (avctx->codec_id == AV_CODEC_ID_ZLIB && avctx->extradata[7] != CODEC_ZLIB)) {
490490 av_log(avctx, AV_LOG_ERROR, "Codec id and codec type mismatch. This should not happen.\n");
491491 }
492492
@@ -536,7 +536,7 @@ static av_cold int decode_init(AVCodecContext *avctx) · 43 unmodified lines
536536 /* Detect compression method */
537537 c->compression = (int8_t)avctx->extradata[5];
538538 switch (avctx->codec_id) {
539− case CODEC_ID_MSZH:
539+ case AV_CODEC_ID_MSZH:
540540 switch (c->compression) {
541541 case COMP_MSZH:
542542 av_log(avctx, AV_LOG_DEBUG, "Compression enabled.\n");
@@ -551,7 +551,7 @@ static av_cold int decode_init(AVCodecContext *avctx) · 8 unmodified lines
551551 }
552552 break;
553553 #if CONFIG_ZLIB_DECODER
554− case CODEC_ID_ZLIB:
554+ case AV_CODEC_ID_ZLIB:
555555 switch (c->compression) {
556556 case COMP_ZLIB_HISPEED:
557557 av_log(avctx, AV_LOG_DEBUG, "High speed compression.\n");
@@ -590,14 +590,14 @@ static av_cold int decode_init(AVCodecContext *avctx) · 32 unmodified lines
590590 av_log(avctx, AV_LOG_DEBUG, "Multithread encoder flag set.\n");
591591 if (c->flags & FLAG_NULLFRAME)
592592 av_log(avctx, AV_LOG_DEBUG, "Nullframe insertion flag set.\n");
593− if (avctx->codec_id == CODEC_ID_ZLIB && (c->flags & FLAG_PNGFILTER))
593+ if (avctx->codec_id == AV_CODEC_ID_ZLIB && (c->flags & FLAG_PNGFILTER))
594594 av_log(avctx, AV_LOG_DEBUG, "PNG filter flag set.\n");
595595 if (c->flags & FLAGMASK_UNUSED)
596596 av_log(avctx, AV_LOG_ERROR, "Unknown flag set (%d).\n", c->flags);
597597
598598 /* If needed init zlib */
599599 #if CONFIG_ZLIB_DECODER
600− if (avctx->codec_id == CODEC_ID_ZLIB) {
600+ if (avctx->codec_id == AV_CODEC_ID_ZLIB) {
601601 int zret;
602602 c->zstream.zalloc = Z_NULL;
603603 c->zstream.zfree = Z_NULL;
@@ -627,7 +627,7 @@ static av_cold int decode_end(AVCodecContext *avctx) · 23 unmodified lines
627627 if (c->pic.data[0])
628628 avctx->release_buffer(avctx, &c->pic);
629629 #if CONFIG_ZLIB_DECODER
630− if (avctx->codec_id == CODEC_ID_ZLIB)
630+ if (avctx->codec_id == AV_CODEC_ID_ZLIB)
631631 inflateEnd(&c->zstream);
632632 #endif
633633
@@ -638,7 +638,7 @@ static av_cold int decode_end(AVCodecContext *avctx) · 4 unmodified lines
638638 AVCodec ff_mszh_decoder = {
639639 .name = "mszh",
640640 .type = AVMEDIA_TYPE_VIDEO,
641− .id = CODEC_ID_MSZH,
641+ .id = AV_CODEC_ID_MSZH,
642642 .priv_data_size = sizeof(LclDecContext),
643643 .init = decode_init,
644644 .close = decode_end,
@@ -652,7 +652,7 @@ AVCodec ff_mszh_decoder = { · 7 unmodified lines
652652 AVCodec ff_zlib_decoder = {
653653 .name = "zlib",
654654 .type = AVMEDIA_TYPE_VIDEO,
655− .id = CODEC_ID_ZLIB,
655+ .id = AV_CODEC_ID_ZLIB,
656656 .priv_data_size = sizeof(LclDecContext),
657657 .init = decode_init,
658658 .close = decode_end,
libavcodec/lclenc.c+1−1
@@ -185,7 +185,7 @@ static av_cold int encode_end(AVCodecContext *avctx) · 184 unmodified lines
185185 AVCodec ff_zlib_encoder = {
186186 .name = "zlib",
187187 .type = AVMEDIA_TYPE_VIDEO,
188− .id = CODEC_ID_ZLIB,
188+ .id = AV_CODEC_ID_ZLIB,
189189 .priv_data_size = sizeof(LclEncContext),
190190 .init = encode_init,
191191 .encode2 = encode_frame,
libavcodec/libfaac.c+1−1
@@ -238,7 +238,7 @@ static const uint64_t faac_channel_layouts[] = { · 237 unmodified lines
238238 AVCodec ff_libfaac_encoder = {
239239 .name = "libfaac",
240240 .type = AVMEDIA_TYPE_AUDIO,
241− .id = CODEC_ID_AAC,
241+ .id = AV_CODEC_ID_AAC,
242242 .priv_data_size = sizeof(FaacAudioContext),
243243 .init = Faac_encode_init,
244244 .encode2 = Faac_encode_frame,
libavcodec/libfdk-aacenc.c+1−1
@@ -395,7 +395,7 @@ static const uint64_t aac_channel_layout[] = { · 394 unmodified lines
395395 AVCodec ff_libfdk_aac_encoder = {
396396 .name = "libfdk_aac",
397397 .type = AVMEDIA_TYPE_AUDIO,
398− .id = CODEC_ID_AAC,
398+ .id = AV_CODEC_ID_AAC,
399399 .priv_data_size = sizeof(AACContext),
400400 .init = aac_encode_init,
401401 .encode2 = aac_encode_frame,
libavcodec/libgsm.c+11−11
@@ -58,11 +58,11 @@ static av_cold int libgsm_encode_init(AVCodecContext *avctx) { · 57 unmodified lines
5858 avctx->priv_data = gsm_create();
5959
6060 switch(avctx->codec_id) {
61− case CODEC_ID_GSM:
61+ case AV_CODEC_ID_GSM:
6262 avctx->frame_size = GSM_FRAME_SIZE;
6363 avctx->block_align = GSM_BLOCK_SIZE;
6464 break;
65− case CODEC_ID_GSM_MS: {
65+ case AV_CODEC_ID_GSM_MS: {
6666 int one = 1;
6767 gsm_option(avctx->priv_data, GSM_OPT_WAV49, &one);
6868 avctx->frame_size = 2*GSM_FRAME_SIZE;
@@ -103,10 +103,10 @@ static int libgsm_encode_frame(AVCodecContext *avctx, AVPacket *avpkt, · 34 unmodified lines
103103 }
104104
105105 switch(avctx->codec_id) {
106− case CODEC_ID_GSM:
106+ case AV_CODEC_ID_GSM:
107107 gsm_encode(state, samples, avpkt->data);
108108 break;
109− case CODEC_ID_GSM_MS:
109+ case AV_CODEC_ID_GSM_MS:
110110 gsm_encode(state, samples, avpkt->data);
111111 gsm_encode(state, samples + GSM_FRAME_SIZE, avpkt->data + 32);
112112 }
@@ -119,7 +119,7 @@ static int libgsm_encode_frame(AVCodecContext *avctx, AVPacket *avpkt, · 6 unmodified lines
119119 AVCodec ff_libgsm_encoder = {
120120 .name = "libgsm",
121121 .type = AVMEDIA_TYPE_AUDIO,
122− .id = CODEC_ID_GSM,
122+ .id = AV_CODEC_ID_GSM,
123123 .init = libgsm_encode_init,
124124 .encode2 = libgsm_encode_frame,
125125 .close = libgsm_encode_close,
@@ -131,7 +131,7 @@ AVCodec ff_libgsm_encoder = { · 5 unmodified lines
131131 AVCodec ff_libgsm_ms_encoder = {
132132 .name = "libgsm_ms",
133133 .type = AVMEDIA_TYPE_AUDIO,
134− .id = CODEC_ID_GSM_MS,
134+ .id = AV_CODEC_ID_GSM_MS,
135135 .init = libgsm_encode_init,
136136 .encode2 = libgsm_encode_frame,
137137 .close = libgsm_encode_close,
@@ -165,11 +165,11 @@ static av_cold int libgsm_decode_init(AVCodecContext *avctx) { · 27 unmodified lines
165165 s->state = gsm_create();
166166
167167 switch(avctx->codec_id) {
168− case CODEC_ID_GSM:
168+ case AV_CODEC_ID_GSM:
169169 avctx->frame_size = GSM_FRAME_SIZE;
170170 avctx->block_align = GSM_BLOCK_SIZE;
171171 break;
172− case CODEC_ID_GSM_MS: {
172+ case AV_CODEC_ID_GSM_MS: {
173173 int one = 1;
174174 gsm_option(s->state, GSM_OPT_WAV49, &one);
175175 avctx->frame_size = 2 * GSM_FRAME_SIZE;
@@ -232,14 +232,14 @@ static void libgsm_flush(AVCodecContext *avctx) { · 56 unmodified lines
232232
233233 gsm_destroy(s->state);
234234 s->state = gsm_create();
235− if (avctx->codec_id == CODEC_ID_GSM_MS)
235+ if (avctx->codec_id == AV_CODEC_ID_GSM_MS)
236236 gsm_option(s->state, GSM_OPT_WAV49, &one);
237237 }
238238
239239 AVCodec ff_libgsm_decoder = {
240240 .name = "libgsm",
241241 .type = AVMEDIA_TYPE_AUDIO,
242− .id = CODEC_ID_GSM,
242+ .id = AV_CODEC_ID_GSM,
243243 .priv_data_size = sizeof(LibGSMDecodeContext),
244244 .init = libgsm_decode_init,
245245 .close = libgsm_decode_close,
@@ -252,7 +252,7 @@ AVCodec ff_libgsm_decoder = { · 6 unmodified lines
252252 AVCodec ff_libgsm_ms_decoder = {
253253 .name = "libgsm_ms",
254254 .type = AVMEDIA_TYPE_AUDIO,
255− .id = CODEC_ID_GSM_MS,
255+ .id = AV_CODEC_ID_GSM_MS,
256256 .priv_data_size = sizeof(LibGSMDecodeContext),
257257 .init = libgsm_decode_init,
258258 .close = libgsm_decode_close,
libavcodec/libilbc.c+2−2
@@ -106,7 +106,7 @@ static int ilbc_decode_frame(AVCodecContext *avctx, void *data, · 105 unmodified lines
106106 AVCodec ff_libilbc_decoder = {
107107 .name = "libilbc",
108108 .type = AVMEDIA_TYPE_AUDIO,
109− .id = CODEC_ID_ILBC,
109+ .id = AV_CODEC_ID_ILBC,
110110 .priv_data_size = sizeof(ILBCDecContext),
111111 .init = ilbc_decode_init,
112112 .decode = ilbc_decode_frame,
@@ -196,7 +196,7 @@ static const AVCodecDefault ilbc_encode_defaults[] = { · 83 unmodified lines
196196 AVCodec ff_libilbc_encoder = {
197197 .name = "libilbc",
198198 .type = AVMEDIA_TYPE_AUDIO,
199− .id = CODEC_ID_ILBC,
199+ .id = AV_CODEC_ID_ILBC,
200200 .priv_data_size = sizeof(ILBCEncContext),
201201 .init = ilbc_encode_init,
202202 .encode2 = ilbc_encode_frame,
libavcodec/libmp3lame.c+1−1
@@ -293,7 +293,7 @@ static const int libmp3lame_sample_rates[] = { · 292 unmodified lines
293293 AVCodec ff_libmp3lame_encoder = {
294294 .name = "libmp3lame",
295295 .type = AVMEDIA_TYPE_AUDIO,
296− .id = CODEC_ID_MP3,
296+ .id = AV_CODEC_ID_MP3,
297297 .priv_data_size = sizeof(LAMEContext),
298298 .init = mp3lame_encode_init,
299299 .encode2 = mp3lame_encode_frame,
libavcodec/libopencore-amr.c+4−4
@@ -27,7 +27,7 @@ · 26 unmodified lines
2727
2828 static void amr_decode_fix_avctx(AVCodecContext *avctx)
2929 {
30− const int is_amr_wb = 1 + (avctx->codec_id == CODEC_ID_AMR_WB);
30+ const int is_amr_wb = 1 + (avctx->codec_id == AV_CODEC_ID_AMR_WB);
3131
3232 if (!avctx->sample_rate)
3333 avctx->sample_rate = 8000 * is_amr_wb;
@@ -174,7 +174,7 @@ static int amr_nb_decode_frame(AVCodecContext *avctx, void *data, · 140 unmodified lines
174174 AVCodec ff_libopencore_amrnb_decoder = {
175175 .name = "libopencore_amrnb",
176176 .type = AVMEDIA_TYPE_AUDIO,
177− .id = CODEC_ID_AMR_NB,
177+ .id = AV_CODEC_ID_AMR_NB,
178178 .priv_data_size = sizeof(AMRContext),
179179 .init = amr_nb_decode_init,
180180 .close = amr_nb_decode_close,
@@ -291,7 +291,7 @@ static int amr_nb_encode_frame(AVCodecContext *avctx, AVPacket *avpkt, · 110 unmodified lines
291291 AVCodec ff_libopencore_amrnb_encoder = {
292292 .name = "libopencore_amrnb",
293293 .type = AVMEDIA_TYPE_AUDIO,
294− .id = CODEC_ID_AMR_NB,
294+ .id = AV_CODEC_ID_AMR_NB,
295295 .priv_data_size = sizeof(AMRContext),
296296 .init = amr_nb_encode_init,
297297 .encode2 = amr_nb_encode_frame,
@@ -380,7 +380,7 @@ static int amr_wb_decode_close(AVCodecContext *avctx) · 82 unmodified lines
380380 AVCodec ff_libopencore_amrwb_decoder = {
381381 .name = "libopencore_amrwb",
382382 .type = AVMEDIA_TYPE_AUDIO,
383− .id = CODEC_ID_AMR_WB,
383+ .id = AV_CODEC_ID_AMR_WB,
384384 .priv_data_size = sizeof(AMRWBContext),
385385 .init = amr_wb_decode_init,
386386 .close = amr_wb_decode_close,
libavcodec/libopenjpegdec.c+1−1
@@ -446,7 +446,7 @@ static const AVClass class = { · 445 unmodified lines
446446 AVCodec ff_libopenjpeg_decoder = {
447447 .name = "libopenjpeg",
448448 .type = AVMEDIA_TYPE_VIDEO,
449− .id = CODEC_ID_JPEG2000,
449+ .id = AV_CODEC_ID_JPEG2000,
450450 .priv_data_size = sizeof(LibOpenJPEGContext),
451451 .init = libopenjpeg_decode_init,
452452 .close = libopenjpeg_decode_close,
libavcodec/libopenjpegenc.c+1−1
@@ -414,7 +414,7 @@ static const AVClass class = { · 413 unmodified lines
414414 AVCodec ff_libopenjpeg_encoder = {
415415 .name = "libopenjpeg",
416416 .type = AVMEDIA_TYPE_VIDEO,
417− .id = CODEC_ID_JPEG2000,
417+ .id = AV_CODEC_ID_JPEG2000,
418418 .priv_data_size = sizeof(LibOpenJPEGContext),
419419 .init = libopenjpeg_encode_init,
420420 .encode2 = libopenjpeg_encode_frame,
libavcodec/libschroedingerdec.c+1−1
@@ -385,7 +385,7 @@ static void libschroedinger_flush(AVCodecContext *avccontext) · 384 unmodified lines
385385 AVCodec ff_libschroedinger_decoder = {
386386 .name = "libschroedinger",
387387 .type = AVMEDIA_TYPE_VIDEO,
388− .id = CODEC_ID_DIRAC,
388+ .id = AV_CODEC_ID_DIRAC,
389389 .priv_data_size = sizeof(SchroDecoderParams),
390390 .init = libschroedinger_decode_init,
391391 .close = libschroedinger_decode_close,
libavcodec/libschroedingerenc.c+1−1
@@ -442,7 +442,7 @@ static int libschroedinger_encode_close(AVCodecContext *avccontext) · 441 unmodified lines
442442 AVCodec ff_libschroedinger_encoder = {
443443 .name = "libschroedinger",
444444 .type = AVMEDIA_TYPE_VIDEO,
445− .id = CODEC_ID_DIRAC,
445+ .id = AV_CODEC_ID_DIRAC,
446446 .priv_data_size = sizeof(SchroEncoderParams),
447447 .init = libschroedinger_encode_init,
448448 .encode2 = libschroedinger_encode_frame,
libavcodec/libspeexdec.c+1−1
@@ -161,7 +161,7 @@ static av_cold void libspeex_decode_flush(AVCodecContext *avctx) · 160 unmodified lines
161161 AVCodec ff_libspeex_decoder = {
162162 .name = "libspeex",
163163 .type = AVMEDIA_TYPE_AUDIO,
164− .id = CODEC_ID_SPEEX,
164+ .id = AV_CODEC_ID_SPEEX,
165165 .priv_data_size = sizeof(LibSpeexContext),
166166 .init = libspeex_decode_init,
167167 .close = libspeex_decode_close,
libavcodec/libspeexenc.c+1−1
@@ -328,7 +328,7 @@ static const AVCodecDefault defaults[] = { · 327 unmodified lines
328328 AVCodec ff_libspeex_encoder = {
329329 .name = "libspeex",
330330 .type = AVMEDIA_TYPE_AUDIO,
331− .id = CODEC_ID_SPEEX,
331+ .id = AV_CODEC_ID_SPEEX,
332332 .priv_data_size = sizeof(LibSpeexEncContext),
333333 .init = encode_init,
334334 .encode2 = encode_frame,
libavcodec/libtheoraenc.c+1−1
@@ -363,7 +363,7 @@ static av_cold int encode_close(AVCodecContext* avc_context) · 362 unmodified lines
363363 AVCodec ff_libtheora_encoder = {
364364 .name = "libtheora",
365365 .type = AVMEDIA_TYPE_VIDEO,
366− .id = CODEC_ID_THEORA,
366+ .id = AV_CODEC_ID_THEORA,
367367 .priv_data_size = sizeof(TheoraContext),
368368 .init = encode_init,
369369 .close = encode_close,
libavcodec/libvo-aacenc.c+1−1
@@ -190,7 +190,7 @@ static int aac_encode_frame(AVCodecContext *avctx, AVPacket *avpkt, · 189 unmodified lines
190190 AVCodec ff_libvo_aacenc_encoder = {
191191 .name = "libvo_aacenc",
192192 .type = AVMEDIA_TYPE_AUDIO,
193− .id = CODEC_ID_AAC,
193+ .id = AV_CODEC_ID_AAC,
194194 .priv_data_size = sizeof(AACContext),
195195 .init = aac_encode_init,
196196 .encode2 = aac_encode_frame,
libavcodec/libvo-amrwbenc.c+1−1
@@ -143,7 +143,7 @@ static int amr_wb_encode_frame(AVCodecContext *avctx, AVPacket *avpkt, · 142 unmodified lines
143143 AVCodec ff_libvo_amrwbenc_encoder = {
144144 .name = "libvo_amrwbenc",
145145 .type = AVMEDIA_TYPE_AUDIO,
146− .id = CODEC_ID_AMR_WB,
146+ .id = AV_CODEC_ID_AMR_WB,
147147 .priv_data_size = sizeof(AMRWBContext),
148148 .init = amr_wb_encode_init,
149149 .encode2 = amr_wb_encode_frame,
libavcodec/libvorbis.c+1−1
@@ -351,7 +351,7 @@ static int oggvorbis_encode_frame(AVCodecContext *avctx, AVPacket *avpkt, · 350 unmodified lines
351351 AVCodec ff_libvorbis_encoder = {
352352 .name = "libvorbis",
353353 .type = AVMEDIA_TYPE_AUDIO,
354− .id = CODEC_ID_VORBIS,
354+ .id = AV_CODEC_ID_VORBIS,
355355 .priv_data_size = sizeof(OggVorbisContext),
356356 .init = oggvorbis_encode_init,
357357 .encode2 = oggvorbis_encode_frame,
libavcodec/libvpxdec.c+1−1
@@ -114,7 +114,7 @@ static av_cold int vp8_free(AVCodecContext *avctx) · 113 unmodified lines
114114 AVCodec ff_libvpx_decoder = {
115115 .name = "libvpx",
116116 .type = AVMEDIA_TYPE_VIDEO,
117− .id = CODEC_ID_VP8,
117+ .id = AV_CODEC_ID_VP8,
118118 .priv_data_size = sizeof(VP8Context),
119119 .init = vp8_init,
120120 .close = vp8_free,
libavcodec/libvpxenc.c+1−1
@@ -568,7 +568,7 @@ static const AVCodecDefault defaults[] = { · 567 unmodified lines
568568 AVCodec ff_libvpx_encoder = {
569569 .name = "libvpx",
570570 .type = AVMEDIA_TYPE_VIDEO,
571− .id = CODEC_ID_VP8,
571+ .id = AV_CODEC_ID_VP8,
572572 .priv_data_size = sizeof(VP8Context),
573573 .init = vp8_init,
574574 .encode2 = vp8_encode,
libavcodec/libx264.c+1−1
@@ -554,7 +554,7 @@ static const AVCodecDefault x264_defaults[] = { · 553 unmodified lines
554554 AVCodec ff_libx264_encoder = {
555555 .name = "libx264",
556556 .type = AVMEDIA_TYPE_VIDEO,
557− .id = CODEC_ID_H264,
557+ .id = AV_CODEC_ID_H264,
558558 .priv_data_size = sizeof(X264Context),
559559 .init = X264_init,
560560 .encode2 = X264_frame,
libavcodec/libxavs.c+1−1
@@ -419,7 +419,7 @@ static const AVCodecDefault xavs_defaults[] = { · 418 unmodified lines
419419 AVCodec ff_libxavs_encoder = {
420420 .name = "libxavs",
421421 .type = AVMEDIA_TYPE_VIDEO,
422− .id = CODEC_ID_CAVS,
422+ .id = AV_CODEC_ID_CAVS,
423423 .priv_data_size = sizeof(XavsContext),
424424 .init = XAVS_init,
425425 .encode2 = XAVS_frame,
libavcodec/libxvid.c+2−2
@@ -592,7 +592,7 @@ static av_cold int xvid_encode_init(AVCodecContext *avctx) { · 591 unmodified lines
592592 if( xvid_flags & CODEC_FLAG_GLOBAL_HEADER ) {
593593 /* In this case, we are claiming to be MPEG4 */
594594 x->quicktime_format = 1;
595− avctx->codec_id = CODEC_ID_MPEG4;
595+ avctx->codec_id = AV_CODEC_ID_MPEG4;
596596 } else {
597597 /* We are claiming to be Xvid */
598598 x->quicktime_format = 0;
@@ -778,7 +778,7 @@ static av_cold int xvid_encode_close(AVCodecContext *avctx) { · 179 unmodified lines
778778 AVCodec ff_libxvid_encoder = {
779779 .name = "libxvid",
780780 .type = AVMEDIA_TYPE_VIDEO,
781− .id = CODEC_ID_MPEG4,
781+ .id = AV_CODEC_ID_MPEG4,
782782 .priv_data_size = sizeof(struct xvid_context),
783783 .init = xvid_encode_init,
784784 .encode2 = xvid_encode_frame,
libavcodec/ljpegenc.c+1−1
@@ -207,7 +207,7 @@ static int encode_picture_lossless(AVCodecContext *avctx, AVPacket *pkt, · 206 unmodified lines
207207 AVCodec ff_ljpeg_encoder = { //FIXME avoid MPV_* lossless JPEG should not need them
208208 .name = "ljpeg",
209209 .type = AVMEDIA_TYPE_VIDEO,
210− .id = CODEC_ID_LJPEG,
210+ .id = AV_CODEC_ID_LJPEG,
211211 .priv_data_size = sizeof(MpegEncContext),
212212 .init = ff_MPV_encode_init,
213213 .encode2 = encode_picture_lossless,
libavcodec/loco.c+1−1
@@ -288,7 +288,7 @@ static av_cold int decode_end(AVCodecContext *avctx){ · 287 unmodified lines
288288 AVCodec ff_loco_decoder = {
289289 .name = "loco",
290290 .type = AVMEDIA_TYPE_VIDEO,
291− .id = CODEC_ID_LOCO,
291+ .id = AV_CODEC_ID_LOCO,
292292 .priv_data_size = sizeof(LOCOContext),
293293 .init = decode_init,
294294 .close = decode_end,
libavcodec/mace.c+3−3
@@ -249,7 +249,7 @@ static int mace_decode_frame(AVCodecContext *avctx, void *data, · 248 unmodified lines
249249 int16_t *samples;
250250 MACEContext *ctx = avctx->priv_data;
251251 int i, j, k, l, ret;
252− int is_mace3 = (avctx->codec_id == CODEC_ID_MACE3);
252+ int is_mace3 = (avctx->codec_id == AV_CODEC_ID_MACE3);
253253
254254 /* get output buffer */
255255 ctx->frame.nb_samples = 3 * (buf_size << (1 - is_mace3)) / avctx->channels;
@@ -292,7 +292,7 @@ static int mace_decode_frame(AVCodecContext *avctx, void *data, · 36 unmodified lines
292292 AVCodec ff_mace3_decoder = {
293293 .name = "mace3",
294294 .type = AVMEDIA_TYPE_AUDIO,
295− .id = CODEC_ID_MACE3,
295+ .id = AV_CODEC_ID_MACE3,
296296 .priv_data_size = sizeof(MACEContext),
297297 .init = mace_decode_init,
298298 .decode = mace_decode_frame,
@@ -303,7 +303,7 @@ AVCodec ff_mace3_decoder = { · 4 unmodified lines
303303 AVCodec ff_mace6_decoder = {
304304 .name = "mace6",
305305 .type = AVMEDIA_TYPE_AUDIO,
306− .id = CODEC_ID_MACE6,
306+ .id = AV_CODEC_ID_MACE6,
307307 .priv_data_size = sizeof(MACEContext),
308308 .init = mace_decode_init,
309309 .decode = mace_decode_frame,
libavcodec/mdec.c+1−1
@@ -267,7 +267,7 @@ static av_cold int decode_end(AVCodecContext *avctx){ · 266 unmodified lines
267267 AVCodec ff_mdec_decoder = {
268268 .name = "mdec",
269269 .type = AVMEDIA_TYPE_VIDEO,
270− .id = CODEC_ID_MDEC,
270+ .id = AV_CODEC_ID_MDEC,
271271 .priv_data_size = sizeof(MDECContext),
272272 .init = decode_init,
273273 .close = decode_end,
libavcodec/mimic.c+1−1
@@ -423,7 +423,7 @@ static av_cold int mimic_decode_end(AVCodecContext *avctx) · 422 unmodified lines
423423 AVCodec ff_mimic_decoder = {
424424 .name = "mimic",
425425 .type = AVMEDIA_TYPE_VIDEO,
426− .id = CODEC_ID_MIMIC,
426+ .id = AV_CODEC_ID_MIMIC,
427427 .priv_data_size = sizeof(MimicContext),
428428 .init = mimic_decode_init,
429429 .close = mimic_decode_end,
libavcodec/mjpeg_parser.c+1−1
@@ -97,7 +97,7 @@ static int jpeg_parse(AVCodecParserContext *s, · 96 unmodified lines
9797
9898
9999 AVCodecParser ff_mjpeg_parser = {
100− .codec_ids = { CODEC_ID_MJPEG },
100+ .codec_ids = { AV_CODEC_ID_MJPEG },
101101 .priv_data_size = sizeof(ParseContext),
102102 .parser_parse = jpeg_parse,
103103 .parser_close = ff_parse_close,
libavcodec/mjpega_dump_header_bsf.c+1−1
@@ -38,7 +38,7 @@ static int mjpega_dump_header(AVBitStreamFilterContext *bsfc, AVCodecContext *av · 37 unmodified lines
3838 unsigned dqt = 0, dht = 0, sof0 = 0;
3939 int i;
4040
41− if (avctx->codec_id != CODEC_ID_MJPEG) {
41+ if (avctx->codec_id != AV_CODEC_ID_MJPEG) {
4242 av_log(avctx, AV_LOG_ERROR, "mjpega bitstream filter only applies to mjpeg codec\n");
4343 return 0;
4444 }
libavcodec/mjpegbdec.c+1−1
@@ -155,7 +155,7 @@ read_header: · 154 unmodified lines
155155 AVCodec ff_mjpegb_decoder = {
156156 .name = "mjpegb",
157157 .type = AVMEDIA_TYPE_VIDEO,
158− .id = CODEC_ID_MJPEGB,
158+ .id = AV_CODEC_ID_MJPEGB,
159159 .priv_data_size = sizeof(MJpegDecodeContext),
160160 .init = ff_mjpeg_decode_init,
161161 .close = ff_mjpeg_decode_end,
libavcodec/mjpegdec.c+4−4
@@ -113,7 +113,7 @@ av_cold int ff_mjpeg_decode_init(AVCodecContext *avctx) · 112 unmodified lines
113113 s->interlace_polarity = 1; /* bottom field first */
114114 av_log(avctx, AV_LOG_DEBUG, "mjpeg bottom field first\n");
115115 }
116− if (avctx->codec->id == CODEC_ID_AMV)
116+ if (avctx->codec->id == AV_CODEC_ID_AMV)
117117 s->flipped = 1;
118118
119119 return 0;
@@ -1354,7 +1354,7 @@ int ff_mjpeg_find_marker(MJpegDecodeContext *s, · 1234 unmodified lines
13541354 uint8_t x = *(src++);
13551355
13561356 *(dst++) = x;
1357− if (s->avctx->codec_id != CODEC_ID_THP) {
1357+ if (s->avctx->codec_id != AV_CODEC_ID_THP) {
13581358 if (x == 0xff) {
13591359 while (src < buf_end && x == 0xff)
13601360 x = *(src++);
@@ -1645,7 +1645,7 @@ static const AVClass mjpegdec_class = { · 284 unmodified lines
16451645 AVCodec ff_mjpeg_decoder = {
16461646 .name = "mjpeg",
16471647 .type = AVMEDIA_TYPE_VIDEO,
1648− .id = CODEC_ID_MJPEG,
1648+ .id = AV_CODEC_ID_MJPEG,
16491649 .priv_data_size = sizeof(MJpegDecodeContext),
16501650 .init = ff_mjpeg_decode_init,
16511651 .close = ff_mjpeg_decode_end,
@@ -1658,7 +1658,7 @@ AVCodec ff_mjpeg_decoder = { · 6 unmodified lines
16581658 AVCodec ff_thp_decoder = {
16591659 .name = "thp",
16601660 .type = AVMEDIA_TYPE_VIDEO,
1661− .id = CODEC_ID_THP,
1661+ .id = AV_CODEC_ID_THP,
16621662 .priv_data_size = sizeof(MJpegDecodeContext),
16631663 .init = ff_mjpeg_decode_init,
16641664 .close = ff_mjpeg_decode_end,
libavcodec/mjpegenc.c+6−6
@@ -196,7 +196,7 @@ static void jpeg_put_comments(MpegEncContext *s) · 195 unmodified lines
196196
197197 void ff_mjpeg_encode_picture_header(MpegEncContext *s)
198198 {
199− const int lossless= s->avctx->codec_id != CODEC_ID_MJPEG;
199+ const int lossless= s->avctx->codec_id != AV_CODEC_ID_MJPEG;
200200
201201 put_marker(&s->pb, SOI);
202202
@@ -205,8 +205,8 @@ void ff_mjpeg_encode_picture_header(MpegEncContext *s) · 2 unmodified lines
205205 jpeg_table_header(s);
206206
207207 switch(s->avctx->codec_id){
208− case CODEC_ID_MJPEG: put_marker(&s->pb, SOF0 ); break;
209− case CODEC_ID_LJPEG: put_marker(&s->pb, SOF3 ); break;
208+ case AV_CODEC_ID_MJPEG: put_marker(&s->pb, SOF0 ); break;
209+ case AV_CODEC_ID_LJPEG: put_marker(&s->pb, SOF3 ); break;
210210 default: assert(0);
211211 }
212212
@@ -268,8 +268,8 @@ void ff_mjpeg_encode_picture_header(MpegEncContext *s) · 55 unmodified lines
268268 put_bits(&s->pb, 8, lossless ? s->avctx->prediction_method+1 : 0); /* Ss (not used) */
269269
270270 switch(s->avctx->codec_id){
271− case CODEC_ID_MJPEG: put_bits(&s->pb, 8, 63); break; /* Se (not used) */
272− case CODEC_ID_LJPEG: put_bits(&s->pb, 8, 0); break; /* not used */
271+ case AV_CODEC_ID_MJPEG: put_bits(&s->pb, 8, 63); break; /* Se (not used) */
272+ case AV_CODEC_ID_LJPEG: put_bits(&s->pb, 8, 0); break; /* not used */
273273 default: assert(0);
274274 }
275275
@@ -448,7 +448,7 @@ void ff_mjpeg_encode_mb(MpegEncContext *s, DCTELEM block[6][64]) · 172 unmodified lines
448448 AVCodec ff_mjpeg_encoder = {
449449 .name = "mjpeg",
450450 .type = AVMEDIA_TYPE_VIDEO,
451− .id = CODEC_ID_MJPEG,
451+ .id = AV_CODEC_ID_MJPEG,
452452 .priv_data_size = sizeof(MpegEncContext),
453453 .init = ff_MPV_encode_init,
454454 .encode2 = ff_MPV_encode_picture,
libavcodec/mlp_parser.c+1−1
@@ -346,7 +346,7 @@ lost_sync: · 345 unmodified lines
346346 }
347347
348348 AVCodecParser ff_mlp_parser = {
349− .codec_ids = { CODEC_ID_MLP, CODEC_ID_TRUEHD },
349+ .codec_ids = { AV_CODEC_ID_MLP, AV_CODEC_ID_TRUEHD },
350350 .priv_data_size = sizeof(MLPParseContext),
351351 .parser_init = mlp_init,
352352 .parser_parse = mlp_parse,
libavcodec/mlpdec.c+9−9
@@ -294,7 +294,7 @@ static int read_major_sync(MLPDecodeContext *m, GetBitContext *gb) · 293 unmodified lines
294294
295295 if (mh.num_substreams == 0)
296296 return AVERROR_INVALIDDATA;
297− if (m->avctx->codec_id == CODEC_ID_MLP && mh.num_substreams > 2) {
297+ if (m->avctx->codec_id == AV_CODEC_ID_MLP && mh.num_substreams > 2) {
298298 av_log(m->avctx, AV_LOG_ERROR, "MLP only supports up to 2 substreams.\n");
299299 return AVERROR_INVALIDDATA;
300300 }
@@ -340,7 +340,7 @@ static int read_restart_header(MLPDecodeContext *m, GetBitContext *gbp, · 39 unmodified lines
340340 uint8_t checksum;
341341 uint8_t lossless_check;
342342 int start_count = get_bits_count(gbp);
343− const int max_matrix_channel = m->avctx->codec_id == CODEC_ID_MLP
343+ const int max_matrix_channel = m->avctx->codec_id == AV_CODEC_ID_MLP
344344 ? MAX_MATRIX_CHANNEL_MLP
345345 : MAX_MATRIX_CHANNEL_TRUEHD;
346346
@@ -354,7 +354,7 @@ static int read_restart_header(MLPDecodeContext *m, GetBitContext *gbp, · 7 unmodified lines
354354
355355 s->noise_type = get_bits1(gbp);
356356
357− if (m->avctx->codec_id == CODEC_ID_MLP && s->noise_type) {
357+ if (m->avctx->codec_id == AV_CODEC_ID_MLP && s->noise_type) {
358358 av_log(m->avctx, AV_LOG_ERROR, "MLP must have 0x31ea sync word.\n");
359359 return AVERROR_INVALIDDATA;
360360 }
@@ -549,7 +549,7 @@ static int read_matrix_params(MLPDecodeContext *m, unsigned int substr, GetBitCo · 188 unmodified lines
549549 {
550550 SubStream *s = &m->substream[substr];
551551 unsigned int mat, ch;
552− const int max_primitive_matrices = m->avctx->codec_id == CODEC_ID_MLP
552+ const int max_primitive_matrices = m->avctx->codec_id == AV_CODEC_ID_MLP
553553 ? MAX_MATRICES_MLP
554554 : MAX_MATRICES_TRUEHD;
555555
@@ -1004,7 +1004,7 @@ static int read_access_unit(AVCodecContext *avctx, void* data, · 448 unmodified lines
10041004 substr_header_size += 2;
10051005
10061006 if (extraword_present) {
1007− if (m->avctx->codec_id == CODEC_ID_MLP) {
1007+ if (m->avctx->codec_id == AV_CODEC_ID_MLP) {
10081008 av_log(m->avctx, AV_LOG_ERROR, "There must be no extraword for MLP.\n");
10091009 goto error;
10101010 }
@@ -1093,9 +1093,9 @@ static int read_access_unit(AVCodecContext *avctx, void* data, · 82 unmodified lines
10931093 return AVERROR_INVALIDDATA;
10941094
10951095 shorten_by = get_bits(&gb, 16);
1096− if (m->avctx->codec_id == CODEC_ID_TRUEHD && shorten_by & 0x2000)
1096+ if (m->avctx->codec_id == AV_CODEC_ID_TRUEHD && shorten_by & 0x2000)
10971097 s->blockpos -= FFMIN(shorten_by & 0x1FFF, s->blockpos);
1098− else if (m->avctx->codec_id == CODEC_ID_MLP && shorten_by != 0xD234)
1098+ else if (m->avctx->codec_id == AV_CODEC_ID_MLP && shorten_by != 0xD234)
10991099 return AVERROR_INVALIDDATA;
11001100
11011101 if (substr == m->max_decoded_substream)
@@ -1147,7 +1147,7 @@ error: · 45 unmodified lines
11471147 AVCodec ff_mlp_decoder = {
11481148 .name = "mlp",
11491149 .type = AVMEDIA_TYPE_AUDIO,
1150− .id = CODEC_ID_MLP,
1150+ .id = AV_CODEC_ID_MLP,
11511151 .priv_data_size = sizeof(MLPDecodeContext),
11521152 .init = mlp_decode_init,
11531153 .decode = read_access_unit,
@@ -1159,7 +1159,7 @@ AVCodec ff_mlp_decoder = { · 5 unmodified lines
11591159 AVCodec ff_truehd_decoder = {
11601160 .name = "truehd",
11611161 .type = AVMEDIA_TYPE_AUDIO,
1162− .id = CODEC_ID_TRUEHD,
1162+ .id = AV_CODEC_ID_TRUEHD,
11631163 .priv_data_size = sizeof(MLPDecodeContext),
11641164 .init = mlp_decode_init,
11651165 .decode = read_access_unit,
libavcodec/mmvideo.c+1−1
@@ -228,7 +228,7 @@ static av_cold int mm_decode_end(AVCodecContext *avctx) · 227 unmodified lines
228228 AVCodec ff_mmvideo_decoder = {
229229 .name = "mmvideo",
230230 .type = AVMEDIA_TYPE_VIDEO,
231− .id = CODEC_ID_MMVIDEO,
231+ .id = AV_CODEC_ID_MMVIDEO,
232232 .priv_data_size = sizeof(MmContext),
233233 .init = mm_decode_init,
234234 .close = mm_decode_end,
libavcodec/motion_est.c+8−8
@@ -305,7 +305,7 @@ int ff_init_me(MpegEncContext *s){ · 304 unmodified lines
305305 return -1;
306306 }
307307 //special case of snow is needed because snow uses its own iterative ME code
308− if(s->me_method!=ME_ZERO && s->me_method!=ME_EPZS && s->me_method!=ME_X1 && s->avctx->codec_id != CODEC_ID_SNOW){
308+ if(s->me_method!=ME_ZERO && s->me_method!=ME_EPZS && s->me_method!=ME_X1 && s->avctx->codec_id != AV_CODEC_ID_SNOW){
309309 av_log(s->avctx, AV_LOG_ERROR, "me_method is only allowed to be set to zero and epzs; for hex,umh,full and others see dia_size\n");
310310 return -1;
311311 }
@@ -356,7 +356,7 @@ int ff_init_me(MpegEncContext *s){ · 44 unmodified lines
356356 /* 8x8 fullpel search would need a 4x4 chroma compare, which we do
357357 * not have yet, and even if we had, the motion estimation code
358358 * does not expect it. */
359− if(s->codec_id != CODEC_ID_SNOW){
359+ if(s->codec_id != AV_CODEC_ID_SNOW){
360360 if((c->avctx->me_cmp&FF_CMP_CHROMA)/* && !s->dsp.me_cmp[2]*/){
361361 s->dsp.me_cmp[2]= zero_cmp;
362362 }
@@ -367,7 +367,7 @@ int ff_init_me(MpegEncContext *s){ · 4 unmodified lines
367367 c->hpel_put[2][2]= c->hpel_put[2][3]= zero_hpel;
368368 }
369369
370− if(s->codec_id == CODEC_ID_H261){
370+ if(s->codec_id == AV_CODEC_ID_H261){
371371 c->sub_motion_search= no_sub_motion_search;
372372 }
373373
@@ -1664,7 +1664,7 @@ void ff_estimate_b_frame_motion(MpegEncContext * s, · 1290 unmodified lines
16641664
16651665 c->skip=0;
16661666
1667− if (s->codec_id == CODEC_ID_MPEG4 && s->next_picture.f.mbskip_table[xy]) {
1667+ if (s->codec_id == AV_CODEC_ID_MPEG4 && s->next_picture.f.mbskip_table[xy]) {
16681668 int score= direct_search(s, mb_x, mb_y); //FIXME just check 0,0
16691669
16701670 score= ((unsigned)(score*score + 128*256))>>16;
@@ -1726,7 +1726,7 @@ void ff_estimate_b_frame_motion(MpegEncContext * s, · 55 unmodified lines
17261726 }
17271727 }
17281728
1729− if (s->codec_id == CODEC_ID_MPEG4)
1729+ if (s->codec_id == AV_CODEC_ID_MPEG4)
17301730 dmin= direct_search(s, mb_x, mb_y);
17311731 else
17321732 dmin= INT_MAX;
@@ -1797,7 +1797,7 @@ void ff_estimate_b_frame_motion(MpegEncContext * s, · 64 unmodified lines
17971797 }
17981798 //FIXME something smarter
17991799 if(dmin>256*256*16) type&= ~CANDIDATE_MB_TYPE_DIRECT; //do not try direct mode if it is invalid for this MB
1800− if(s->codec_id == CODEC_ID_MPEG4 && type&CANDIDATE_MB_TYPE_DIRECT && s->flags&CODEC_FLAG_MV0 && *(uint32_t*)s->b_direct_mv_table[xy])
1800+ if(s->codec_id == AV_CODEC_ID_MPEG4 && type&CANDIDATE_MB_TYPE_DIRECT && s->flags&CODEC_FLAG_MV0 && *(uint32_t*)s->b_direct_mv_table[xy])
18011801 type |= CANDIDATE_MB_TYPE_DIRECT0;
18021802 }
18031803
@@ -1816,7 +1816,7 @@ int ff_get_best_fcode(MpegEncContext * s, int16_t (*mv_table)[2], int type) · 12 unmodified lines
18161816
18171817 if(s->msmpeg4_version)
18181818 range= FFMIN(range, 16);
1819− else if(s->codec_id == CODEC_ID_MPEG2VIDEO && s->avctx->strict_std_compliance >= FF_COMPLIANCE_NORMAL)
1819+ else if(s->codec_id == AV_CODEC_ID_MPEG2VIDEO && s->avctx->strict_std_compliance >= FF_COMPLIANCE_NORMAL)
18201820 range= FFMIN(range, 256);
18211821
18221822 for(i=0; i<8; i++) score[i]= s->mb_num*(8-i);
@@ -1874,7 +1874,7 @@ void ff_fix_long_p_mvs(MpegEncContext * s) · 51 unmodified lines
18741874 range = (((s->out_format == FMT_MPEG1 || s->msmpeg4_version) ? 8 : 16) << f_code);
18751875
18761876 assert(range <= 16 || !s->msmpeg4_version);
1877− assert(range <=256 || !(s->codec_id == CODEC_ID_MPEG2VIDEO && s->avctx->strict_std_compliance >= FF_COMPLIANCE_NORMAL));
1877+ assert(range <=256 || !(s->codec_id == AV_CODEC_ID_MPEG2VIDEO && s->avctx->strict_std_compliance >= FF_COMPLIANCE_NORMAL));
18781878
18791879 if(c->avctx->me_range && range > c->avctx->me_range) range= c->avctx->me_range;
18801880
libavcodec/motionpixels.c+1−1
@@ -317,7 +317,7 @@ static av_cold int mp_decode_end(AVCodecContext *avctx) · 316 unmodified lines
317317 AVCodec ff_motionpixels_decoder = {
318318 .name = "motionpixels",
319319 .type = AVMEDIA_TYPE_VIDEO,
320− .id = CODEC_ID_MOTIONPIXELS,
320+ .id = AV_CODEC_ID_MOTIONPIXELS,
321321 .priv_data_size = sizeof(MotionPixelsContext),
322322 .init = mp_decode_init,
323323 .close = mp_decode_end,
libavcodec/mpc7.c+1−1
@@ -332,7 +332,7 @@ static av_cold int mpc7_decode_close(AVCodecContext *avctx) · 331 unmodified lines
332332 AVCodec ff_mpc7_decoder = {
333333 .name = "mpc7",
334334 .type = AVMEDIA_TYPE_AUDIO,
335− .id = CODEC_ID_MUSEPACK7,
335+ .id = AV_CODEC_ID_MUSEPACK7,
336336 .priv_data_size = sizeof(MPCContext),
337337 .init = mpc7_decode_init,
338338 .close = mpc7_decode_close,
libavcodec/mpc8.c+1−1
@@ -429,7 +429,7 @@ static av_cold void mpc8_decode_flush(AVCodecContext *avctx) · 428 unmodified lines
429429 AVCodec ff_mpc8_decoder = {
430430 .name = "mpc8",
431431 .type = AVMEDIA_TYPE_AUDIO,
432− .id = CODEC_ID_MUSEPACK8,
432+ .id = AV_CODEC_ID_MUSEPACK8,
433433 .priv_data_size = sizeof(MPCContext),
434434 .init = mpc8_decode_init,
435435 .decode = mpc8_decode_frame,
libavcodec/mpeg12.c+14−14
@@ -837,7 +837,7 @@ static int mpeg_decode_mb(MpegEncContext *s, DCTELEM block[12][64]) · 836 unmodified lines
837837 }
838838 }
839839
840− if (s->codec_id == CODEC_ID_MPEG2VIDEO) {
840+ if (s->codec_id == AV_CODEC_ID_MPEG2VIDEO) {
841841 if (s->flags2 & CODEC_FLAG2_FAST) {
842842 for (i = 0; i < 6; i++) {
843843 mpeg2_fast_decode_block_intra(s, *s->pblocks[i], i);
@@ -1050,7 +1050,7 @@ static int mpeg_decode_mb(MpegEncContext *s, DCTELEM block[12][64]) · 206 unmodified lines
10501050 }
10511051 }
10521052
1053− if (s->codec_id == CODEC_ID_MPEG2VIDEO) {
1053+ if (s->codec_id == AV_CODEC_ID_MPEG2VIDEO) {
10541054 if (s->flags2 & CODEC_FLAG2_FAST) {
10551055 for (i = 0; i < 6; i++) {
10561056 if (cbp & 32) {
@@ -1130,7 +1130,7 @@ static av_cold int mpeg_decode_init(AVCodecContext *avctx) · 73 unmodified lines
11301130 s->repeat_field = 0;
11311131 s->mpeg_enc_ctx.codec_id = avctx->codec->id;
11321132 avctx->color_range = AVCOL_RANGE_MPEG;
1133− if (avctx->codec->id == CODEC_ID_MPEG1VIDEO)
1133+ if (avctx->codec->id == AV_CODEC_ID_MPEG1VIDEO)
11341134 avctx->chroma_sample_location = AVCHROMA_LOC_CENTER;
11351135 else
11361136 avctx->chroma_sample_location = AVCHROMA_LOC_LEFT;
@@ -1184,7 +1184,7 @@ static enum PixelFormat mpeg_get_pixelformat(AVCodecContext *avctx) · 47 unmodified lines
11841184 if (avctx->xvmc_acceleration)
11851185 return avctx->get_format(avctx, pixfmt_xvmc_mpg2_420);
11861186 else if (avctx->codec->capabilities & CODEC_CAP_HWACCEL_VDPAU) {
1187− if (avctx->codec_id == CODEC_ID_MPEG1VIDEO)
1187+ if (avctx->codec_id == AV_CODEC_ID_MPEG1VIDEO)
11881188 return PIX_FMT_VDPAU_MPEG1;
11891189 else
11901190 return PIX_FMT_VDPAU_MPEG2;
@@ -1237,7 +1237,7 @@ static int mpeg_decode_postinit(AVCodecContext *avctx) · 46 unmodified lines
12371237 * that behave like P-frames. */
12381238 avctx->has_b_frames = !s->low_delay;
12391239
1240− if (avctx->codec_id == CODEC_ID_MPEG1VIDEO) {
1240+ if (avctx->codec_id == AV_CODEC_ID_MPEG1VIDEO) {
12411241 //MPEG-1 fps
12421242 avctx->time_base.den = avpriv_frame_rate_tab[s->frame_rate_index].num;
12431243 avctx->time_base.num = avpriv_frame_rate_tab[s->frame_rate_index].den;
@@ -1380,7 +1380,7 @@ static void mpeg_decode_sequence_extension(Mpeg1Context *s1) · 136 unmodified lines
13801380 s1->frame_rate_ext.den = get_bits(&s->gb, 5) + 1;
13811381
13821382 av_dlog(s->avctx, "sequence extension\n");
1383− s->codec_id = s->avctx->codec_id = CODEC_ID_MPEG2VIDEO;
1383+ s->codec_id = s->avctx->codec_id = AV_CODEC_ID_MPEG2VIDEO;
13841384
13851385 if (s->avctx->debug & FF_DEBUG_PICT_INFO)
13861386 av_log(s->avctx, AV_LOG_DEBUG, "profile: %d, level: %d vbv buffer: %d, bitrate:%d\n",
@@ -2001,7 +2001,7 @@ static int mpeg1_decode_sequence(AVCodecContext *avctx, · 614 unmodified lines
20012001 s->picture_structure = PICT_FRAME;
20022002 s->frame_pred_frame_dct = 1;
20032003 s->chroma_format = 1;
2004− s->codec_id = s->avctx->codec_id = CODEC_ID_MPEG1VIDEO;
2004+ s->codec_id = s->avctx->codec_id = AV_CODEC_ID_MPEG1VIDEO;
20052005 s->out_format = FMT_MPEG1;
20062006 s->swap_uv = 0; // AFAIK VCR2 does not have SEQ_HEADER
20072007 if (s->flags & CODEC_FLAG_LOW_DELAY)
@@ -2060,7 +2060,7 @@ static int vcr2_init_sequence(AVCodecContext *avctx) · 52 unmodified lines
20602060 s->picture_structure = PICT_FRAME;
20612061 s->frame_pred_frame_dct = 1;
20622062 s->chroma_format = 1;
2063− s->codec_id = s->avctx->codec_id = CODEC_ID_MPEG2VIDEO;
2063+ s->codec_id = s->avctx->codec_id = AV_CODEC_ID_MPEG2VIDEO;
20642064 s1->save_width = s->width;
20652065 s1->save_height = s->height;
20662066 s1->save_progressive_seq = s->progressive_sequence;
@@ -2401,7 +2401,7 @@ static int decode_chunks(AVCodecContext *avctx, · 334 unmodified lines
24012401 if (!s->mpeg_enc_ctx_allocated)
24022402 break;
24032403
2404− if (s2->codec_id == CODEC_ID_MPEG2VIDEO) {
2404+ if (s2->codec_id == AV_CODEC_ID_MPEG2VIDEO) {
24052405 if (mb_y < avctx->skip_top || mb_y >= s2->mb_height - avctx->skip_bottom)
24062406 break;
24072407 }
@@ -2499,7 +2499,7 @@ static const AVProfile mpeg2_video_profiles[] = { · 91 unmodified lines
24992499 AVCodec ff_mpeg1video_decoder = {
25002500 .name = "mpeg1video",
25012501 .type = AVMEDIA_TYPE_VIDEO,
2502− .id = CODEC_ID_MPEG1VIDEO,
2502+ .id = AV_CODEC_ID_MPEG1VIDEO,
25032503 .priv_data_size = sizeof(Mpeg1Context),
25042504 .init = mpeg_decode_init,
25052505 .close = mpeg_decode_end,
@@ -2515,7 +2515,7 @@ AVCodec ff_mpeg1video_decoder = { · 9 unmodified lines
25152515 AVCodec ff_mpeg2video_decoder = {
25162516 .name = "mpeg2video",
25172517 .type = AVMEDIA_TYPE_VIDEO,
2518− .id = CODEC_ID_MPEG2VIDEO,
2518+ .id = AV_CODEC_ID_MPEG2VIDEO,
25192519 .priv_data_size = sizeof(Mpeg1Context),
25202520 .init = mpeg_decode_init,
25212521 .close = mpeg_decode_end,
@@ -2549,7 +2549,7 @@ static av_cold int mpeg_mc_decode_init(AVCodecContext *avctx) · 27 unmodified lines
25492549 AVCodec ff_mpeg_xvmc_decoder = {
25502550 .name = "mpegvideo_xvmc",
25512551 .type = AVMEDIA_TYPE_VIDEO,
2552− .id = CODEC_ID_MPEG2VIDEO_XVMC,
2552+ .id = AV_CODEC_ID_MPEG2VIDEO_XVMC,
25532553 .priv_data_size = sizeof(Mpeg1Context),
25542554 .init = mpeg_mc_decode_init,
25552555 .close = mpeg_decode_end,
@@ -2566,7 +2566,7 @@ AVCodec ff_mpeg_xvmc_decoder = { · 10 unmodified lines
25662566 AVCodec ff_mpeg_vdpau_decoder = {
25672567 .name = "mpegvideo_vdpau",
25682568 .type = AVMEDIA_TYPE_VIDEO,
2569− .id = CODEC_ID_MPEG2VIDEO,
2569+ .id = AV_CODEC_ID_MPEG2VIDEO,
25702570 .priv_data_size = sizeof(Mpeg1Context),
25712571 .init = mpeg_decode_init,
25722572 .close = mpeg_decode_end,
@@ -2582,7 +2582,7 @@ AVCodec ff_mpeg_vdpau_decoder = { · 9 unmodified lines
25822582 AVCodec ff_mpeg1_vdpau_decoder = {
25832583 .name = "mpeg1video_vdpau",
25842584 .type = AVMEDIA_TYPE_VIDEO,
2585− .id = CODEC_ID_MPEG1VIDEO,
2585+ .id = AV_CODEC_ID_MPEG1VIDEO,
25862586 .priv_data_size = sizeof(Mpeg1Context),
25872587 .init = mpeg_decode_init,
25882588 .close = mpeg_decode_end,
libavcodec/mpeg12enc.c+12−12
@@ -205,7 +205,7 @@ static void mpeg1_encode_sequence_header(MpegEncContext *s) · 204 unmodified lines
205205
206206 for(i=1; i<15; i++){
207207 float error= aspect_ratio;
208− if(s->codec_id == CODEC_ID_MPEG1VIDEO || i <=1)
208+ if(s->codec_id == AV_CODEC_ID_MPEG1VIDEO || i <=1)
209209 error-= 1.0/ff_mpeg1_aspect[i];
210210 else
211211 error-= av_q2d(ff_mpeg2_aspect[i])*s->height/s->width;
@@ -223,7 +223,7 @@ static void mpeg1_encode_sequence_header(MpegEncContext *s) · 11 unmodified lines
223223
224224 if(s->avctx->rc_max_rate){
225225 v = (s->avctx->rc_max_rate + 399) / 400;
226− if (v > 0x3ffff && s->codec_id == CODEC_ID_MPEG1VIDEO)
226+ if (v > 0x3ffff && s->codec_id == AV_CODEC_ID_MPEG1VIDEO)
227227 v = 0x3ffff;
228228 }else{
229229 v= 0x3FFFF;
@@ -248,14 +248,14 @@ static void mpeg1_encode_sequence_header(MpegEncContext *s) · 18 unmodified lines
248248 s->avctx->me_range && s->avctx->me_range < 128 &&
249249 vbv_buffer_size <= 20 &&
250250 v <= 1856000/400 &&
251− s->codec_id == CODEC_ID_MPEG1VIDEO;
251+ s->codec_id == AV_CODEC_ID_MPEG1VIDEO;
252252
253253 put_bits(&s->pb, 1, constraint_parameter_flag);
254254
255255 ff_write_quant_matrix(&s->pb, s->avctx->intra_matrix);
256256 ff_write_quant_matrix(&s->pb, s->avctx->inter_matrix);
257257
258− if(s->codec_id == CODEC_ID_MPEG2VIDEO){
258+ if(s->codec_id == AV_CODEC_ID_MPEG2VIDEO){
259259 put_header(s, EXT_START_CODE);
260260 put_bits(&s->pb, 4, 1); //seq ext
261261
@@ -350,7 +350,7 @@ void ff_mpeg1_encode_picture_header(MpegEncContext *s, int picture_number) · 88 unmodified lines
350350 // RAL: Forward f_code also needed for B frames
351351 if (s->pict_type == AV_PICTURE_TYPE_P || s->pict_type == AV_PICTURE_TYPE_B) {
352352 put_bits(&s->pb, 1, 0); /* half pel coordinates */
353− if(s->codec_id == CODEC_ID_MPEG1VIDEO)
353+ if(s->codec_id == AV_CODEC_ID_MPEG1VIDEO)
354354 put_bits(&s->pb, 3, s->f_code); /* forward_f_code */
355355 else
356356 put_bits(&s->pb, 3, 7); /* forward_f_code */
@@ -359,7 +359,7 @@ void ff_mpeg1_encode_picture_header(MpegEncContext *s, int picture_number) · 2 unmodified lines
359359 // RAL: Backward f_code necessary for B frames
360360 if (s->pict_type == AV_PICTURE_TYPE_B) {
361361 put_bits(&s->pb, 1, 0); /* half pel coordinates */
362− if(s->codec_id == CODEC_ID_MPEG1VIDEO)
362+ if(s->codec_id == AV_CODEC_ID_MPEG1VIDEO)
363363 put_bits(&s->pb, 3, s->b_code); /* backward_f_code */
364364 else
365365 put_bits(&s->pb, 3, 7); /* backward_f_code */
@@ -368,7 +368,7 @@ void ff_mpeg1_encode_picture_header(MpegEncContext *s, int picture_number) · 2 unmodified lines
368368 put_bits(&s->pb, 1, 0); /* extra bit picture */
369369
370370 s->frame_pred_frame_dct = 1;
371− if(s->codec_id == CODEC_ID_MPEG2VIDEO){
371+ if(s->codec_id == AV_CODEC_ID_MPEG2VIDEO){
372372 put_header(s, EXT_START_CODE);
373373 put_bits(&s->pb, 4, 8); //pic ext
374374 if (s->pict_type == AV_PICTURE_TYPE_P || s->pict_type == AV_PICTURE_TYPE_B) {
@@ -449,7 +449,7 @@ static av_always_inline void mpeg1_encode_mb_internal(MpegEncContext *s, · 74 unmodified lines
449449 }
450450
451451 if (cbp == 0 && !first_mb && s->mv_type == MV_TYPE_16X16 &&
452− (mb_x != s->mb_width - 1 || (mb_y != s->mb_height - 1 && s->codec_id == CODEC_ID_MPEG1VIDEO)) &&
452+ (mb_x != s->mb_width - 1 || (mb_y != s->mb_height - 1 && s->codec_id == AV_CODEC_ID_MPEG1VIDEO)) &&
453453 ((s->pict_type == AV_PICTURE_TYPE_P && (motion_x | motion_y) == 0) ||
454454 (s->pict_type == AV_PICTURE_TYPE_B && s->mv_dir == s->last_mv_dir && (((s->mv_dir & MV_DIR_FORWARD) ? ((s->mv[0][0][0] - s->last_mv[0][0][0])|(s->mv[0][0][1] - s->last_mv[0][0][1])) : 0) |
455455 ((s->mv_dir & MV_DIR_BACKWARD) ? ((s->mv[1][0][0] - s->last_mv[1][0][0])|(s->mv[1][0][1] - s->last_mv[1][0][1])) : 0)) == 0))) {
@@ -783,7 +783,7 @@ void ff_mpeg1_encode_init(MpegEncContext *s) · 327 unmodified lines
783783 }
784784 s->me.mv_penalty= mv_penalty;
785785 s->fcode_tab= fcode_tab;
786− if(s->codec_id == CODEC_ID_MPEG1VIDEO){
786+ if(s->codec_id == AV_CODEC_ID_MPEG1VIDEO){
787787 s->min_qcoeff=-255;
788788 s->max_qcoeff= 255;
789789 }else{
@@ -897,7 +897,7 @@ static void mpeg1_encode_block(MpegEncContext *s, · 107 unmodified lines
897897 put_bits(&s->pb, table_vlc[111][1], table_vlc[111][0]);
898898 /* escape: only clip in this case */
899899 put_bits(&s->pb, 6, run);
900− if(s->codec_id == CODEC_ID_MPEG1VIDEO){
900+ if(s->codec_id == AV_CODEC_ID_MPEG1VIDEO){
901901 if (alevel < 128) {
902902 put_sbits(&s->pb, 8, level);
903903 } else {
@@ -953,7 +953,7 @@ mpeg12_class(2) · 49 unmodified lines
953953 AVCodec ff_mpeg1video_encoder = {
954954 .name = "mpeg1video",
955955 .type = AVMEDIA_TYPE_VIDEO,
956− .id = CODEC_ID_MPEG1VIDEO,
956+ .id = AV_CODEC_ID_MPEG1VIDEO,
957957 .priv_data_size = sizeof(MpegEncContext),
958958 .init = encode_init,
959959 .encode2 = ff_MPV_encode_picture,
@@ -969,7 +969,7 @@ AVCodec ff_mpeg1video_encoder = { · 9 unmodified lines
969969 AVCodec ff_mpeg2video_encoder = {
970970 .name = "mpeg2video",
971971 .type = AVMEDIA_TYPE_VIDEO,
972− .id = CODEC_ID_MPEG2VIDEO,
972+ .id = AV_CODEC_ID_MPEG2VIDEO,
973973 .priv_data_size = sizeof(MpegEncContext),
974974 .init = encode_init,
975975 .encode2 = ff_MPV_encode_picture,
libavcodec/mpeg4video_parser.c+1−1
@@ -133,7 +133,7 @@ static int mpeg4video_parse(AVCodecParserContext *s, · 132 unmodified lines
133133
134134
135135 AVCodecParser ff_mpeg4video_parser = {
136− .codec_ids = { CODEC_ID_MPEG4 },
136+ .codec_ids = { AV_CODEC_ID_MPEG4 },
137137 .priv_data_size = sizeof(struct Mp4vParseContext),
138138 .parser_init = mpeg4video_parse_init,
139139 .parser_parse = mpeg4video_parse,
libavcodec/mpeg4videodec.c+3−3
@@ -1466,7 +1466,7 @@ intra: · 1465 unmodified lines
14661466 end:
14671467
14681468 /* per-MB end of slice check */
1469− if(s->codec_id==CODEC_ID_MPEG4){
1469+ if(s->codec_id==AV_CODEC_ID_MPEG4){
14701470 if(mpeg4_is_resync(s)){
14711471 const int delta= s->mb_x + 1 == s->mb_width ? 2 : 1;
14721472
@@ -2257,7 +2257,7 @@ static const AVProfile mpeg4_video_profiles[] = { · 784 unmodified lines
22572257 AVCodec ff_mpeg4_decoder = {
22582258 .name = "mpeg4",
22592259 .type = AVMEDIA_TYPE_VIDEO,
2260− .id = CODEC_ID_MPEG4,
2260+ .id = AV_CODEC_ID_MPEG4,
22612261 .priv_data_size = sizeof(MpegEncContext),
22622262 .init = decode_init,
22632263 .close = ff_h263_decode_end,
@@ -2277,7 +2277,7 @@ AVCodec ff_mpeg4_decoder = { · 13 unmodified lines
22772277 AVCodec ff_mpeg4_vdpau_decoder = {
22782278 .name = "mpeg4_vdpau",
22792279 .type = AVMEDIA_TYPE_VIDEO,
2280− .id = CODEC_ID_MPEG4,
2280+ .id = AV_CODEC_ID_MPEG4,
22812281 .priv_data_size = sizeof(MpegEncContext),
22822282 .init = decode_init,
22832283 .close = ff_h263_decode_end,
libavcodec/mpeg4videoenc.c+1−1
@@ -1334,7 +1334,7 @@ static const AVClass mpeg4enc_class = { · 1333 unmodified lines
13341334 AVCodec ff_mpeg4_encoder = {
13351335 .name = "mpeg4",
13361336 .type = AVMEDIA_TYPE_VIDEO,
1337− .id = CODEC_ID_MPEG4,
1337+ .id = AV_CODEC_ID_MPEG4,
13381338 .priv_data_size = sizeof(MpegEncContext),
13391339 .init = encode_init,
13401340 .encode2 = ff_MPV_encode_picture,
libavcodec/mpegaudio_parser.c+1−1
@@ -101,7 +101,7 @@ static int mpegaudio_parse(AVCodecParserContext *s1, · 100 unmodified lines
101101
102102
103103 AVCodecParser ff_mpegaudio_parser = {
104− .codec_ids = { CODEC_ID_MP1, CODEC_ID_MP2, CODEC_ID_MP3 },
104+ .codec_ids = { AV_CODEC_ID_MP1, AV_CODEC_ID_MP2, AV_CODEC_ID_MP3 },
105105 .priv_data_size = sizeof(MpegAudioParseContext),
106106 .parser_parse = mpegaudio_parse,
107107 .parser_close = ff_parse_close,
libavcodec/mpegaudiodec.c+6−6
@@ -437,7 +437,7 @@ static av_cold int decode_init(AVCodecContext * avctx) · 436 unmodified lines
437437 avctx->sample_fmt= OUT_FMT;
438438 s->err_recognition = avctx->err_recognition;
439439
440− if (avctx->codec_id == CODEC_ID_MP3ADU)
440+ if (avctx->codec_id == AV_CODEC_ID_MP3ADU)
441441 s->adu_mode = 1;
442442
443443 avcodec_get_frame_defaults(&s->frame);
@@ -1984,7 +1984,7 @@ static int decode_frame_mp3on4(AVCodecContext *avctx, void *data, · 1540 unmodified lines
19841984 AVCodec ff_mp1_decoder = {
19851985 .name = "mp1",
19861986 .type = AVMEDIA_TYPE_AUDIO,
1987− .id = CODEC_ID_MP1,
1987+ .id = AV_CODEC_ID_MP1,
19881988 .priv_data_size = sizeof(MPADecodeContext),
19891989 .init = decode_init,
19901990 .decode = decode_frame,
@@ -1997,7 +1997,7 @@ AVCodec ff_mp1_decoder = { · 6 unmodified lines
19971997 AVCodec ff_mp2_decoder = {
19981998 .name = "mp2",
19991999 .type = AVMEDIA_TYPE_AUDIO,
2000− .id = CODEC_ID_MP2,
2000+ .id = AV_CODEC_ID_MP2,
20012001 .priv_data_size = sizeof(MPADecodeContext),
20022002 .init = decode_init,
20032003 .decode = decode_frame,
@@ -2010,7 +2010,7 @@ AVCodec ff_mp2_decoder = { · 6 unmodified lines
20102010 AVCodec ff_mp3_decoder = {
20112011 .name = "mp3",
20122012 .type = AVMEDIA_TYPE_AUDIO,
2013− .id = CODEC_ID_MP3,
2013+ .id = AV_CODEC_ID_MP3,
20142014 .priv_data_size = sizeof(MPADecodeContext),
20152015 .init = decode_init,
20162016 .decode = decode_frame,
@@ -2023,7 +2023,7 @@ AVCodec ff_mp3_decoder = { · 6 unmodified lines
20232023 AVCodec ff_mp3adu_decoder = {
20242024 .name = "mp3adu",
20252025 .type = AVMEDIA_TYPE_AUDIO,
2026− .id = CODEC_ID_MP3ADU,
2026+ .id = AV_CODEC_ID_MP3ADU,
20272027 .priv_data_size = sizeof(MPADecodeContext),
20282028 .init = decode_init,
20292029 .decode = decode_frame_adu,
@@ -2036,7 +2036,7 @@ AVCodec ff_mp3adu_decoder = { · 6 unmodified lines
20362036 AVCodec ff_mp3on4_decoder = {
20372037 .name = "mp3on4",
20382038 .type = AVMEDIA_TYPE_AUDIO,
2039− .id = CODEC_ID_MP3ON4,
2039+ .id = AV_CODEC_ID_MP3ON4,
20402040 .priv_data_size = sizeof(MP3On4DecodeContext),
20412041 .init = decode_init_mp3on4,
20422042 .close = decode_close_mp3on4,
libavcodec/mpegaudiodec_float.c+5−5
@@ -26,7 +26,7 @@ · 25 unmodified lines
2626 AVCodec ff_mp1float_decoder = {
2727 .name = "mp1float",
2828 .type = AVMEDIA_TYPE_AUDIO,
29− .id = CODEC_ID_MP1,
29+ .id = AV_CODEC_ID_MP1,
3030 .priv_data_size = sizeof(MPADecodeContext),
3131 .init = decode_init,
3232 .decode = decode_frame,
@@ -39,7 +39,7 @@ AVCodec ff_mp1float_decoder = { · 6 unmodified lines
3939 AVCodec ff_mp2float_decoder = {
4040 .name = "mp2float",
4141 .type = AVMEDIA_TYPE_AUDIO,
42− .id = CODEC_ID_MP2,
42+ .id = AV_CODEC_ID_MP2,
4343 .priv_data_size = sizeof(MPADecodeContext),
4444 .init = decode_init,
4545 .decode = decode_frame,
@@ -52,7 +52,7 @@ AVCodec ff_mp2float_decoder = { · 6 unmodified lines
5252 AVCodec ff_mp3float_decoder = {
5353 .name = "mp3float",
5454 .type = AVMEDIA_TYPE_AUDIO,
55− .id = CODEC_ID_MP3,
55+ .id = AV_CODEC_ID_MP3,
5656 .priv_data_size = sizeof(MPADecodeContext),
5757 .init = decode_init,
5858 .decode = decode_frame,
@@ -65,7 +65,7 @@ AVCodec ff_mp3float_decoder = { · 6 unmodified lines
6565 AVCodec ff_mp3adufloat_decoder = {
6666 .name = "mp3adufloat",
6767 .type = AVMEDIA_TYPE_AUDIO,
68− .id = CODEC_ID_MP3ADU,
68+ .id = AV_CODEC_ID_MP3ADU,
6969 .priv_data_size = sizeof(MPADecodeContext),
7070 .init = decode_init,
7171 .decode = decode_frame_adu,
@@ -78,7 +78,7 @@ AVCodec ff_mp3adufloat_decoder = { · 6 unmodified lines
7878 AVCodec ff_mp3on4float_decoder = {
7979 .name = "mp3on4float",
8080 .type = AVMEDIA_TYPE_AUDIO,
81− .id = CODEC_ID_MP3ON4,
81+ .id = AV_CODEC_ID_MP3ON4,
8282 .priv_data_size = sizeof(MP3On4DecodeContext),
8383 .init = decode_init_mp3on4,
8484 .close = decode_close_mp3on4,
libavcodec/mpegaudiodecheader.c+3−3
@@ -122,16 +122,16 @@ int avpriv_mpa_decode_header(AVCodecContext *avctx, uint32_t head, int *sample_r · 121 unmodified lines
122122
123123 switch(s->layer) {
124124 case 1:
125− avctx->codec_id = CODEC_ID_MP1;
125+ avctx->codec_id = AV_CODEC_ID_MP1;
126126 *frame_size = 384;
127127 break;
128128 case 2:
129− avctx->codec_id = CODEC_ID_MP2;
129+ avctx->codec_id = AV_CODEC_ID_MP2;
130130 *frame_size = 1152;
131131 break;
132132 default:
133133 case 3:
134− avctx->codec_id = CODEC_ID_MP3;
134+ avctx->codec_id = AV_CODEC_ID_MP3;
135135 if (s->lsf)
136136 *frame_size = 576;
137137 else
libavcodec/mpegaudioenc.c+1−1
@@ -784,7 +784,7 @@ static const AVCodecDefault mp2_defaults[] = { · 783 unmodified lines
784784 AVCodec ff_mp2_encoder = {
785785 .name = "mp2",
786786 .type = AVMEDIA_TYPE_AUDIO,
787− .id = CODEC_ID_MP2,
787+ .id = AV_CODEC_ID_MP2,
788788 .priv_data_size = sizeof(MpegAudioContext),
789789 .init = MPA_encode_init,
790790 .encode2 = MPA_encode_frame,
libavcodec/mpegvideo.c+20−20
@@ -230,7 +230,7 @@ static void free_frame_buffer(MpegEncContext *s, Picture *pic) · 229 unmodified lines
230230 /* Windows Media Image codecs allocate internal buffers with different
231231 * dimensions; ignore user defined callbacks for these
232232 */
233− if (s->codec_id != CODEC_ID_WMV3IMAGE && s->codec_id != CODEC_ID_VC1IMAGE)
233+ if (s->codec_id != AV_CODEC_ID_WMV3IMAGE && s->codec_id != AV_CODEC_ID_VC1IMAGE)
234234 ff_thread_release_buffer(s->avctx, &pic->f);
235235 else
236236 avcodec_default_release_buffer(s->avctx, &pic->f);
@@ -255,7 +255,7 @@ static int alloc_frame_buffer(MpegEncContext *s, Picture *pic) · 18 unmodified lines
255255 }
256256 }
257257
258− if (s->codec_id != CODEC_ID_WMV3IMAGE && s->codec_id != CODEC_ID_VC1IMAGE)
258+ if (s->codec_id != AV_CODEC_ID_WMV3IMAGE && s->codec_id != AV_CODEC_ID_VC1IMAGE)
259259 r = ff_thread_get_buffer(s->avctx, &pic->f);
260260 else
261261 r = avcodec_default_get_buffer(s->avctx, &pic->f);
@@ -662,9 +662,9 @@ av_cold int ff_MPV_common_init(MpegEncContext *s) · 400 unmodified lines
662662 if (s->encoding && s->avctx->slices)
663663 nb_slices = s->avctx->slices;
664664
665− if (s->codec_id == CODEC_ID_MPEG2VIDEO && !s->progressive_sequence)
665+ if (s->codec_id == AV_CODEC_ID_MPEG2VIDEO && !s->progressive_sequence)
666666 s->mb_height = (s->height + 31) / 32 * 2;
667− else if (s->codec_id != CODEC_ID_H264)
667+ else if (s->codec_id != AV_CODEC_ID_H264)
668668 s->mb_height = (s->height + 15) / 16;
669669
670670 if (s->avctx->pix_fmt == PIX_FMT_NONE) {
@@ -818,7 +818,7 @@ av_cold int ff_MPV_common_init(MpegEncContext *s) · 147 unmodified lines
818818 FF_ALLOCZ_OR_GOTO(s->avctx, s->error_status_table,
819819 mb_array_size * sizeof(uint8_t), fail);
820820
821− if (s->codec_id == CODEC_ID_MPEG4 ||
821+ if (s->codec_id == AV_CODEC_ID_MPEG4 ||
822822 (s->flags & CODEC_FLAG_INTERLACED_ME)) {
823823 /* interlaced direct mode decoding tables */
824824 for (i = 0; i < 2; i++) {
@@ -1174,10 +1174,10 @@ int ff_MPV_frame_start(MpegEncContext *s, AVCodecContext *avctx) · 349 unmodified lines
11741174 s->mb_skipped = 0;
11751175
11761176 assert(s->last_picture_ptr == NULL || s->out_format != FMT_H264 ||
1177− s->codec_id == CODEC_ID_SVQ3);
1177+ s->codec_id == AV_CODEC_ID_SVQ3);
11781178
11791179 /* mark & release old frames */
1180− if (s->out_format != FMT_H264 || s->codec_id == CODEC_ID_SVQ3) {
1180+ if (s->out_format != FMT_H264 || s->codec_id == AV_CODEC_ID_SVQ3) {
11811181 if (s->pict_type != AV_PICTURE_TYPE_B && s->last_picture_ptr &&
11821182 s->last_picture_ptr != s->next_picture_ptr &&
11831183 s->last_picture_ptr->f.data[0]) {
@@ -1217,7 +1217,7 @@ int ff_MPV_frame_start(MpegEncContext *s, AVCodecContext *avctx) · 33 unmodified lines
12171217
12181218 pic->f.reference = 0;
12191219 if (!s->dropable) {
1220− if (s->codec_id == CODEC_ID_H264)
1220+ if (s->codec_id == AV_CODEC_ID_H264)
12211221 pic->f.reference = s->picture_structure;
12221222 else if (s->pict_type != AV_PICTURE_TYPE_B)
12231223 pic->f.reference = 3;
@@ -1231,8 +1231,8 @@ int ff_MPV_frame_start(MpegEncContext *s, AVCodecContext *avctx) · 7 unmodified lines
12311231 s->current_picture_ptr = pic;
12321232 // FIXME use only the vars from current_pic
12331233 s->current_picture_ptr->f.top_field_first = s->top_field_first;
1234− if (s->codec_id == CODEC_ID_MPEG1VIDEO ||
1235− s->codec_id == CODEC_ID_MPEG2VIDEO) {
1234+ if (s->codec_id == AV_CODEC_ID_MPEG1VIDEO ||
1235+ s->codec_id == AV_CODEC_ID_MPEG2VIDEO) {
12361236 if (s->picture_structure != PICT_FRAME)
12371237 s->current_picture_ptr->f.top_field_first =
12381238 (s->picture_structure == PICT_TOP_FIELD) == s->first_field;
@@ -1261,7 +1261,7 @@ int ff_MPV_frame_start(MpegEncContext *s, AVCodecContext *avctx) · 22 unmodified lines
12611261 s->current_picture_ptr ? s->current_picture_ptr->f.data[0] : NULL,
12621262 s->pict_type, s->dropable); */
12631263
1264− if (s->codec_id != CODEC_ID_H264) {
1264+ if (s->codec_id != AV_CODEC_ID_H264) {
12651265 if ((s->last_picture_ptr == NULL ||
12661266 s->last_picture_ptr->f.data[0] == NULL) &&
12671267 (s->pict_type != AV_PICTURE_TYPE_I ||
@@ -1306,7 +1306,7 @@ int ff_MPV_frame_start(MpegEncContext *s, AVCodecContext *avctx) · 38 unmodified lines
13061306 ff_copy_picture(&s->next_picture, s->next_picture_ptr);
13071307
13081308 if (HAVE_THREADS && (avctx->active_thread_type & FF_THREAD_FRAME) &&
1309− (s->out_format != FMT_H264 || s->codec_id == CODEC_ID_SVQ3)) {
1309+ (s->out_format != FMT_H264 || s->codec_id == AV_CODEC_ID_SVQ3)) {
13101310 if (s->next_picture_ptr)
13111311 s->next_picture_ptr->owner2 = s;
13121312 if (s->last_picture_ptr)
@@ -1334,7 +1334,7 @@ int ff_MPV_frame_start(MpegEncContext *s, AVCodecContext *avctx) · 21 unmodified lines
13341334 /* set dequantizer, we can't do it during init as
13351335 * it might change for mpeg4 and we can't do it in the header
13361336 * decode as init is not called for mpeg4 there yet */
1337− if (s->mpeg_quant || s->codec_id == CODEC_ID_MPEG2VIDEO) {
1337+ if (s->mpeg_quant || s->codec_id == AV_CODEC_ID_MPEG2VIDEO) {
13381338 s->dct_unquantize_intra = s->dct_unquantize_mpeg2_intra;
13391339 s->dct_unquantize_inter = s->dct_unquantize_mpeg2_inter;
13401340 } else if (s->out_format == FMT_H263 || s->out_format == FMT_H261) {
@@ -1423,7 +1423,7 @@ void ff_MPV_frame_end(MpegEncContext *s) · 82 unmodified lines
14231423 #endif
14241424 s->avctx->coded_frame = &s->current_picture_ptr->f;
14251425
1426− if (s->codec_id != CODEC_ID_H264 && s->current_picture.f.reference) {
1426+ if (s->codec_id != AV_CODEC_ID_H264 && s->current_picture.f.reference) {
14271427 ff_thread_report_progress(&s->current_picture_ptr->f, INT_MAX, 0);
14281428 }
14291429 }
@@ -1625,7 +1625,7 @@ void ff_print_debug_info(MpegEncContext *s, AVFrame *pict) · 195 unmodified lines
16251625 const int height = s->avctx->height;
16261626 const int mv_sample_log2 = 4 - pict->motion_subsample_log2;
16271627 const int mv_stride = (s->mb_width << mv_sample_log2) +
1628− (s->codec_id == CODEC_ID_H264 ? 0 : 1);
1628+ (s->codec_id == AV_CODEC_ID_H264 ? 0 : 1);
16291629 s->low_delay = 0; // needed to see the vectors without trashing the buffers
16301630
16311631 avcodec_get_chroma_sub_sample(s->avctx->pix_fmt,
@@ -1814,7 +1814,7 @@ void ff_print_debug_info(MpegEncContext *s, AVFrame *pict) · 182 unmodified lines
18141814 }
18151815
18161816 if (IS_INTERLACED(mb_type) &&
1817− s->codec_id == CODEC_ID_H264) {
1817+ s->codec_id == AV_CODEC_ID_H264) {
18181818 // hmm
18191819 }
18201820 }
@@ -2053,8 +2053,8 @@ void MPV_decode_mb_internal(MpegEncContext *s, DCTELEM block[12][64], · 232 unmodified lines
20532053 }
20542054
20552055 /* add dct residue */
2056− if(s->encoding || !( s->msmpeg4_version || s->codec_id==CODEC_ID_MPEG1VIDEO || s->codec_id==CODEC_ID_MPEG2VIDEO
2057− || (s->codec_id==CODEC_ID_MPEG4 && !s->mpeg_quant))){
2056+ if(s->encoding || !( s->msmpeg4_version || s->codec_id==AV_CODEC_ID_MPEG1VIDEO || s->codec_id==AV_CODEC_ID_MPEG2VIDEO
2057+ || (s->codec_id==AV_CODEC_ID_MPEG4 && !s->mpeg_quant))){
20582058 add_dequant_dct(s, block[0], 0, dest_y , dct_linesize, s->qscale);
20592059 add_dequant_dct(s, block[1], 1, dest_y + block_size, dct_linesize, s->qscale);
20602060 add_dequant_dct(s, block[2], 2, dest_y + dct_offset , dct_linesize, s->qscale);
@@ -2073,7 +2073,7 @@ void MPV_decode_mb_internal(MpegEncContext *s, DCTELEM block[12][64], · 12 unmodified lines
20732073 add_dequant_dct(s, block[7], 7, dest_cr + dct_offset, dct_linesize, s->chroma_qscale);
20742074 }
20752075 }
2076− } else if(is_mpeg12 || (s->codec_id != CODEC_ID_WMV2)){
2076+ } else if(is_mpeg12 || (s->codec_id != AV_CODEC_ID_WMV2)){
20772077 add_dct(s, block[0], 0, dest_y , dct_linesize);
20782078 add_dct(s, block[1], 1, dest_y + block_size, dct_linesize);
20792079 add_dct(s, block[2], 2, dest_y + dct_offset , dct_linesize);
@@ -2106,7 +2106,7 @@ void MPV_decode_mb_internal(MpegEncContext *s, DCTELEM block[12][64], · 26 unmodified lines
21062106 }
21072107 } else {
21082108 /* dct only in intra block */
2109− if(s->encoding || !(s->codec_id==CODEC_ID_MPEG1VIDEO || s->codec_id==CODEC_ID_MPEG2VIDEO)){
2109+ if(s->encoding || !(s->codec_id==AV_CODEC_ID_MPEG1VIDEO || s->codec_id==AV_CODEC_ID_MPEG2VIDEO)){
21102110 put_dct(s, block[0], 0, dest_y , dct_linesize, s->qscale);
21112111 put_dct(s, block[1], 1, dest_y + block_size, dct_linesize, s->qscale);
21122112 put_dct(s, block[2], 2, dest_y + dct_offset , dct_linesize, s->qscale);
libavcodec/mpegvideo.h+1−1
@@ -216,7 +216,7 @@ typedef struct MpegEncContext { · 215 unmodified lines
216216 int h263_plus; ///< h263 plus headers
217217 int h263_flv; ///< use flv h263 header
218218
219− enum CodecID codec_id; /* see CODEC_ID_xxx */
219+ enum AVCodecID codec_id; /* see AV_CODEC_ID_xxx */
220220 int fixed_qscale; ///< fixed qscale if non zero
221221 int encoding; ///< true if we are encoding (vs decoding)
222222 int flags; ///< AVCodecContext.flags (HQ, MV4, ...)
libavcodec/mpegvideo_common.h+3−3
@@ -302,8 +302,8 @@ if(s->quarter_sample) · 301 unmodified lines
302302
303303 if( (unsigned)src_x > FFMAX(s->h_edge_pos - (motion_x&1) - 16, 0)
304304 || (unsigned)src_y > FFMAX( v_edge_pos - (motion_y&1) - h , 0)){
305− if(is_mpeg12 || s->codec_id == CODEC_ID_MPEG2VIDEO ||
306− s->codec_id == CODEC_ID_MPEG1VIDEO){
305+ if(is_mpeg12 || s->codec_id == AV_CODEC_ID_MPEG2VIDEO ||
306+ s->codec_id == AV_CODEC_ID_MPEG1VIDEO){
307307 av_log(s->avctx,AV_LOG_DEBUG,
308308 "MPEG motion vector out of boundary (%d %d)\n", src_x, src_y);
309309 return;
@@ -719,7 +719,7 @@ static av_always_inline void MPV_motion_internal(MpegEncContext *s, · 409 unmodified lines
719719 ref_picture, pix_op, qpix_op,
720720 s->mv[dir][0][0], s->mv[dir][0][1], 16);
721721 } else if (!is_mpeg12 && (CONFIG_WMV2_DECODER || CONFIG_WMV2_ENCODER) &&
722− s->mspel && s->codec_id == CODEC_ID_WMV2) {
722+ s->mspel && s->codec_id == AV_CODEC_ID_WMV2) {
723723 ff_mspel_motion(s, dest_y, dest_cb, dest_cr,
724724 ref_picture, pix_op,
725725 s->mv[dir][0][0], s->mv[dir][0][1], 16);
libavcodec/mpegvideo_enc.c+94−94
@@ -278,7 +278,7 @@ av_cold int ff_MPV_encode_init(AVCodecContext *avctx) · 277 unmodified lines
278278 MPV_encode_defaults(s);
279279
280280 switch (avctx->codec_id) {
281− case CODEC_ID_MPEG2VIDEO:
281+ case AV_CODEC_ID_MPEG2VIDEO:
282282 if (avctx->pix_fmt != PIX_FMT_YUV420P &&
283283 avctx->pix_fmt != PIX_FMT_YUV422P) {
284284 av_log(avctx, AV_LOG_ERROR,
@@ -286,7 +286,7 @@ av_cold int ff_MPV_encode_init(AVCodecContext *avctx) · 1 unmodified line
286286 return -1;
287287 }
288288 break;
289− case CODEC_ID_LJPEG:
289+ case AV_CODEC_ID_LJPEG:
290290 if (avctx->pix_fmt != PIX_FMT_YUVJ420P &&
291291 avctx->pix_fmt != PIX_FMT_YUVJ422P &&
292292 avctx->pix_fmt != PIX_FMT_YUVJ444P &&
@@ -299,7 +299,7 @@ av_cold int ff_MPV_encode_init(AVCodecContext *avctx) · 6 unmodified lines
299299 return -1;
300300 }
301301 break;
302− case CODEC_ID_MJPEG:
302+ case AV_CODEC_ID_MJPEG:
303303 if (avctx->pix_fmt != PIX_FMT_YUVJ420P &&
304304 avctx->pix_fmt != PIX_FMT_YUVJ422P &&
305305 ((avctx->pix_fmt != PIX_FMT_YUV420P &&
@@ -430,8 +430,8 @@ av_cold int ff_MPV_encode_init(AVCodecContext *avctx) · 124 unmodified lines
430430
431431 if (s->avctx->rc_max_rate &&
432432 s->avctx->rc_min_rate == s->avctx->rc_max_rate &&
433− (s->codec_id == CODEC_ID_MPEG1VIDEO ||
434− s->codec_id == CODEC_ID_MPEG2VIDEO) &&
433+ (s->codec_id == AV_CODEC_ID_MPEG1VIDEO ||
434+ s->codec_id == AV_CODEC_ID_MPEG2VIDEO) &&
435435 90000LL * (avctx->rc_buffer_size - 1) >
436436 s->avctx->rc_max_rate * 0xFFFFLL) {
437437 av_log(avctx, AV_LOG_INFO,
@@ -439,9 +439,9 @@ av_cold int ff_MPV_encode_init(AVCodecContext *avctx) · 1 unmodified line
439439 "specified vbv buffer is too large for the given bitrate!\n");
440440 }
441441
442− if ((s->flags & CODEC_FLAG_4MV) && s->codec_id != CODEC_ID_MPEG4 &&
443− s->codec_id != CODEC_ID_H263 && s->codec_id != CODEC_ID_H263P &&
444− s->codec_id != CODEC_ID_FLV1) {
442+ if ((s->flags & CODEC_FLAG_4MV) && s->codec_id != AV_CODEC_ID_MPEG4 &&
443+ s->codec_id != AV_CODEC_ID_H263 && s->codec_id != AV_CODEC_ID_H263P &&
444+ s->codec_id != AV_CODEC_ID_FLV1) {
445445 av_log(avctx, AV_LOG_ERROR, "4MV not supported by codec\n");
446446 return -1;
447447 }
@@ -452,22 +452,22 @@ av_cold int ff_MPV_encode_init(AVCodecContext *avctx) · 4 unmodified lines
452452 return -1;
453453 }
454454
455− if (s->quarter_sample && s->codec_id != CODEC_ID_MPEG4) {
455+ if (s->quarter_sample && s->codec_id != AV_CODEC_ID_MPEG4) {
456456 av_log(avctx, AV_LOG_ERROR, "qpel not supported by codec\n");
457457 return -1;
458458 }
459459
460460 if (s->max_b_frames &&
461− s->codec_id != CODEC_ID_MPEG4 &&
462− s->codec_id != CODEC_ID_MPEG1VIDEO &&
463− s->codec_id != CODEC_ID_MPEG2VIDEO) {
461+ s->codec_id != AV_CODEC_ID_MPEG4 &&
462+ s->codec_id != AV_CODEC_ID_MPEG1VIDEO &&
463+ s->codec_id != AV_CODEC_ID_MPEG2VIDEO) {
464464 av_log(avctx, AV_LOG_ERROR, "b frames not supported by codec\n");
465465 return -1;
466466 }
467467
468− if ((s->codec_id == CODEC_ID_MPEG4 ||
469− s->codec_id == CODEC_ID_H263 ||
470− s->codec_id == CODEC_ID_H263P) &&
468+ if ((s->codec_id == AV_CODEC_ID_MPEG4 ||
469+ s->codec_id == AV_CODEC_ID_H263 ||
470+ s->codec_id == AV_CODEC_ID_H263P) &&
471471 (avctx->sample_aspect_ratio.num > 255 ||
472472 avctx->sample_aspect_ratio.den > 255)) {
473473 av_log(avctx, AV_LOG_ERROR,
@@ -477,13 +477,13 @@ av_cold int ff_MPV_encode_init(AVCodecContext *avctx) · 3 unmodified lines
477477 }
478478
479479 if ((s->flags & (CODEC_FLAG_INTERLACED_DCT | CODEC_FLAG_INTERLACED_ME)) &&
480− s->codec_id != CODEC_ID_MPEG4 && s->codec_id != CODEC_ID_MPEG2VIDEO) {
480+ s->codec_id != AV_CODEC_ID_MPEG4 && s->codec_id != AV_CODEC_ID_MPEG2VIDEO) {
481481 av_log(avctx, AV_LOG_ERROR, "interlacing not supported by codec\n");
482482 return -1;
483483 }
484484
485485 // FIXME mpeg2 uses that too
486− if (s->mpeg_quant && s->codec_id != CODEC_ID_MPEG4) {
486+ if (s->mpeg_quant && s->codec_id != AV_CODEC_ID_MPEG4) {
487487 av_log(avctx, AV_LOG_ERROR,
488488 "mpeg2 style quantization not supported by codec\n");
489489 return -1;
@@ -514,7 +514,7 @@ av_cold int ff_MPV_encode_init(AVCodecContext *avctx) · 24 unmodified lines
514514 }
515515
516516 if (s->flags & CODEC_FLAG_LOW_DELAY) {
517− if (s->codec_id != CODEC_ID_MPEG2VIDEO) {
517+ if (s->codec_id != AV_CODEC_ID_MPEG2VIDEO) {
518518 av_log(avctx, AV_LOG_ERROR,
519519 "low delay forcing is only available for mpeg2\n");
520520 return -1;
@@ -535,10 +535,10 @@ av_cold int ff_MPV_encode_init(AVCodecContext *avctx) · 14 unmodified lines
535535 }
536536
537537 if (s->avctx->thread_count > 1 &&
538− s->codec_id != CODEC_ID_MPEG4 &&
539− s->codec_id != CODEC_ID_MPEG1VIDEO &&
540− s->codec_id != CODEC_ID_MPEG2VIDEO &&
541− (s->codec_id != CODEC_ID_H263P)) {
538+ s->codec_id != AV_CODEC_ID_MPEG4 &&
539+ s->codec_id != AV_CODEC_ID_MPEG1VIDEO &&
540+ s->codec_id != AV_CODEC_ID_MPEG2VIDEO &&
541+ (s->codec_id != AV_CODEC_ID_H263P)) {
542542 av_log(avctx, AV_LOG_ERROR,
543543 "multi threaded encoding not supported by codec\n");
544544 return -1;
@@ -585,8 +585,8 @@ av_cold int ff_MPV_encode_init(AVCodecContext *avctx) · 40 unmodified lines
585585 //return -1;
586586 }
587587
588− if (s->mpeg_quant || s->codec_id == CODEC_ID_MPEG1VIDEO ||
589− s->codec_id == CODEC_ID_MPEG2VIDEO || s->codec_id == CODEC_ID_MJPEG) {
588+ if (s->mpeg_quant || s->codec_id == AV_CODEC_ID_MPEG1VIDEO ||
589+ s->codec_id == AV_CODEC_ID_MPEG2VIDEO || s->codec_id == AV_CODEC_ID_MJPEG) {
590590 // (a + x * 3 / 8) / x
591591 s->intra_quant_bias = 3 << (QUANT_BIAS_SHIFT - 3);
592592 s->inter_quant_bias = 0;
@@ -604,7 +604,7 @@ av_cold int ff_MPV_encode_init(AVCodecContext *avctx) · 11 unmodified lines
604604 avcodec_get_chroma_sub_sample(avctx->pix_fmt, &chroma_h_shift,
605605 &chroma_v_shift);
606606
607− if (avctx->codec_id == CODEC_ID_MPEG4 &&
607+ if (avctx->codec_id == AV_CODEC_ID_MPEG4 &&
608608 s->avctx->time_base.den > (1 << 16) - 1) {
609609 av_log(avctx, AV_LOG_ERROR,
610610 "timebase %d/%d not supported by MPEG 4 standard, "
@@ -625,22 +625,22 @@ av_cold int ff_MPV_encode_init(AVCodecContext *avctx) · 14 unmodified lines
625625 #endif
626626
627627 switch (avctx->codec->id) {
628− case CODEC_ID_MPEG1VIDEO:
628+ case AV_CODEC_ID_MPEG1VIDEO:
629629 s->out_format = FMT_MPEG1;
630630 s->low_delay = !!(s->flags & CODEC_FLAG_LOW_DELAY);
631631 avctx->delay = s->low_delay ? 0 : (s->max_b_frames + 1);
632632 break;
633− case CODEC_ID_MPEG2VIDEO:
633+ case AV_CODEC_ID_MPEG2VIDEO:
634634 s->out_format = FMT_MPEG1;
635635 s->low_delay = !!(s->flags & CODEC_FLAG_LOW_DELAY);
636636 avctx->delay = s->low_delay ? 0 : (s->max_b_frames + 1);
637637 s->rtp_mode = 1;
638638 break;
639− case CODEC_ID_LJPEG:
640− case CODEC_ID_MJPEG:
639+ case AV_CODEC_ID_LJPEG:
640+ case AV_CODEC_ID_MJPEG:
641641 s->out_format = FMT_MJPEG;
642642 s->intra_only = 1; /* force intra only for jpeg */
643− if (avctx->codec->id == CODEC_ID_LJPEG &&
643+ if (avctx->codec->id == AV_CODEC_ID_LJPEG &&
644644 avctx->pix_fmt == PIX_FMT_BGRA) {
645645 s->mjpeg_vsample[0] = s->mjpeg_hsample[0] =
646646 s->mjpeg_vsample[1] = s->mjpeg_hsample[1] =
@@ -659,7 +659,7 @@ av_cold int ff_MPV_encode_init(AVCodecContext *avctx) · 12 unmodified lines
659659 avctx->delay = 0;
660660 s->low_delay = 1;
661661 break;
662− case CODEC_ID_H261:
662+ case AV_CODEC_ID_H261:
663663 if (!CONFIG_H261_ENCODER)
664664 return -1;
665665 if (ff_h261_get_picture_format(s->width, s->height) < 0) {
@@ -673,7 +673,7 @@ av_cold int ff_MPV_encode_init(AVCodecContext *avctx) · 7 unmodified lines
673673 avctx->delay = 0;
674674 s->low_delay = 1;
675675 break;
676− case CODEC_ID_H263:
676+ case AV_CODEC_ID_H263:
677677 if (!CONFIG_H263_ENCODER)
678678 return -1;
679679 if (ff_match_2uint16(ff_h263_format, FF_ARRAY_ELEMS(ff_h263_format),
@@ -689,7 +689,7 @@ av_cold int ff_MPV_encode_init(AVCodecContext *avctx) · 9 unmodified lines
689689 avctx->delay = 0;
690690 s->low_delay = 1;
691691 break;
692− case CODEC_ID_H263P:
692+ case AV_CODEC_ID_H263P:
693693 s->out_format = FMT_H263;
694694 s->h263_plus = 1;
695695 /* Fx */
@@ -703,7 +703,7 @@ av_cold int ff_MPV_encode_init(AVCodecContext *avctx) · 7 unmodified lines
703703 avctx->delay = 0;
704704 s->low_delay = 1;
705705 break;
706− case CODEC_ID_FLV1:
706+ case AV_CODEC_ID_FLV1:
707707 s->out_format = FMT_H263;
708708 s->h263_flv = 2; /* format = 1; 11-bit codes */
709709 s->unrestricted_mv = 1;
@@ -711,12 +711,12 @@ av_cold int ff_MPV_encode_init(AVCodecContext *avctx) · 1 unmodified line
711711 avctx->delay = 0;
712712 s->low_delay = 1;
713713 break;
714− case CODEC_ID_RV10:
714+ case AV_CODEC_ID_RV10:
715715 s->out_format = FMT_H263;
716716 avctx->delay = 0;
717717 s->low_delay = 1;
718718 break;
719− case CODEC_ID_RV20:
719+ case AV_CODEC_ID_RV20:
720720 s->out_format = FMT_H263;
721721 avctx->delay = 0;
722722 s->low_delay = 1;
@@ -726,14 +726,14 @@ av_cold int ff_MPV_encode_init(AVCodecContext *avctx) · 3 unmodified lines
726726 s->loop_filter = 1;
727727 s->unrestricted_mv = 0;
728728 break;
729− case CODEC_ID_MPEG4:
729+ case AV_CODEC_ID_MPEG4:
730730 s->out_format = FMT_H263;
731731 s->h263_pred = 1;
732732 s->unrestricted_mv = 1;
733733 s->low_delay = s->max_b_frames ? 0 : 1;
734734 avctx->delay = s->low_delay ? 0 : (s->max_b_frames + 1);
735735 break;
736− case CODEC_ID_MSMPEG4V2:
736+ case AV_CODEC_ID_MSMPEG4V2:
737737 s->out_format = FMT_H263;
738738 s->h263_pred = 1;
739739 s->unrestricted_mv = 1;
@@ -741,7 +741,7 @@ av_cold int ff_MPV_encode_init(AVCodecContext *avctx) · 1 unmodified line
741741 avctx->delay = 0;
742742 s->low_delay = 1;
743743 break;
744− case CODEC_ID_MSMPEG4V3:
744+ case AV_CODEC_ID_MSMPEG4V3:
745745 s->out_format = FMT_H263;
746746 s->h263_pred = 1;
747747 s->unrestricted_mv = 1;
@@ -750,7 +750,7 @@ av_cold int ff_MPV_encode_init(AVCodecContext *avctx) · 2 unmodified lines
750750 avctx->delay = 0;
751751 s->low_delay = 1;
752752 break;
753− case CODEC_ID_WMV1:
753+ case AV_CODEC_ID_WMV1:
754754 s->out_format = FMT_H263;
755755 s->h263_pred = 1;
756756 s->unrestricted_mv = 1;
@@ -759,7 +759,7 @@ av_cold int ff_MPV_encode_init(AVCodecContext *avctx) · 2 unmodified lines
759759 avctx->delay = 0;
760760 s->low_delay = 1;
761761 break;
762− case CODEC_ID_WMV2:
762+ case AV_CODEC_ID_WMV2:
763763 s->out_format = FMT_H263;
764764 s->h263_pred = 1;
765765 s->unrestricted_mv = 1;
@@ -814,7 +814,7 @@ av_cold int ff_MPV_encode_init(AVCodecContext *avctx) · 48 unmodified lines
814814 /* init q matrix */
815815 for (i = 0; i < 64; i++) {
816816 int j = s->dsp.idct_permutation[i];
817− if (CONFIG_MPEG4_ENCODER && s->codec_id == CODEC_ID_MPEG4 &&
817+ if (CONFIG_MPEG4_ENCODER && s->codec_id == AV_CODEC_ID_MPEG4 &&
818818 s->mpeg_quant) {
819819 s->intra_matrix[j] = ff_mpeg4_default_intra_matrix[i];
820820 s->inter_matrix[j] = ff_mpeg4_default_non_intra_matrix[i];
@@ -1477,8 +1477,8 @@ vbv_retry: · 656 unmodified lines
14771477 // done in encode_picture() so we must undo it
14781478 if (s->pict_type == AV_PICTURE_TYPE_P) {
14791479 if (s->flipflop_rounding ||
1480− s->codec_id == CODEC_ID_H263P ||
1481− s->codec_id == CODEC_ID_MPEG4)
1480+ s->codec_id == AV_CODEC_ID_H263P ||
1481+ s->codec_id == AV_CODEC_ID_MPEG4)
14821482 s->no_rounding ^= 1;
14831483 }
14841484 if (s->pict_type != AV_PICTURE_TYPE_B) {
@@ -1520,13 +1520,13 @@ vbv_retry: · 35 unmodified lines
15201520 }
15211521
15221522 switch (s->codec_id) {
1523− case CODEC_ID_MPEG1VIDEO:
1524− case CODEC_ID_MPEG2VIDEO:
1523+ case AV_CODEC_ID_MPEG1VIDEO:
1524+ case AV_CODEC_ID_MPEG2VIDEO:
15251525 while (stuffing_count--) {
15261526 put_bits(&s->pb, 8, 0);
15271527 }
15281528 break;
1529− case CODEC_ID_MPEG4:
1529+ case AV_CODEC_ID_MPEG4:
15301530 put_bits(&s->pb, 16, 0);
15311531 put_bits(&s->pb, 16, 0x1C3);
15321532 stuffing_count -= 4;
@@ -1748,7 +1748,7 @@ static av_always_inline void encode_mb_internal(MpegEncContext *s, · 215 unmodified lines
17481748 if (s->out_format == FMT_H263) {
17491749 s->dquant = av_clip(s->dquant, -2, 2);
17501750
1751− if (s->codec_id == CODEC_ID_MPEG4) {
1751+ if (s->codec_id == AV_CODEC_ID_MPEG4) {
17521752 if (!s->mb_intra) {
17531753 if (s->pict_type == AV_PICTURE_TYPE_B) {
17541754 if (s->dquant & 1 || s->mv_dir & MV_DIRECT)
@@ -2038,38 +2038,38 @@ static av_always_inline void encode_mb_internal(MpegEncContext *s, · 283 unmodified lines
20382038
20392039 /* huffman encode */
20402040 switch(s->codec_id){ //FIXME funct ptr could be slightly faster
2041− case CODEC_ID_MPEG1VIDEO:
2042− case CODEC_ID_MPEG2VIDEO:
2041+ case AV_CODEC_ID_MPEG1VIDEO:
2042+ case AV_CODEC_ID_MPEG2VIDEO:
20432043 if (CONFIG_MPEG1VIDEO_ENCODER || CONFIG_MPEG2VIDEO_ENCODER)
20442044 ff_mpeg1_encode_mb(s, s->block, motion_x, motion_y);
20452045 break;
2046− case CODEC_ID_MPEG4:
2046+ case AV_CODEC_ID_MPEG4:
20472047 if (CONFIG_MPEG4_ENCODER)
20482048 ff_mpeg4_encode_mb(s, s->block, motion_x, motion_y);
20492049 break;
2050− case CODEC_ID_MSMPEG4V2:
2051− case CODEC_ID_MSMPEG4V3:
2052− case CODEC_ID_WMV1:
2050+ case AV_CODEC_ID_MSMPEG4V2:
2051+ case AV_CODEC_ID_MSMPEG4V3:
2052+ case AV_CODEC_ID_WMV1:
20532053 if (CONFIG_MSMPEG4_ENCODER)
20542054 ff_msmpeg4_encode_mb(s, s->block, motion_x, motion_y);
20552055 break;
2056− case CODEC_ID_WMV2:
2056+ case AV_CODEC_ID_WMV2:
20572057 if (CONFIG_WMV2_ENCODER)
20582058 ff_wmv2_encode_mb(s, s->block, motion_x, motion_y);
20592059 break;
2060− case CODEC_ID_H261:
2060+ case AV_CODEC_ID_H261:
20612061 if (CONFIG_H261_ENCODER)
20622062 ff_h261_encode_mb(s, s->block, motion_x, motion_y);
20632063 break;
2064− case CODEC_ID_H263:
2065− case CODEC_ID_H263P:
2066− case CODEC_ID_FLV1:
2067− case CODEC_ID_RV10:
2068− case CODEC_ID_RV20:
2064+ case AV_CODEC_ID_H263:
2065+ case AV_CODEC_ID_H263P:
2066+ case AV_CODEC_ID_FLV1:
2067+ case AV_CODEC_ID_RV10:
2068+ case AV_CODEC_ID_RV20:
20692069 if (CONFIG_H263_ENCODER)
20702070 ff_h263_encode_mb(s, s->block, motion_x, motion_y);
20712071 break;
2072− case CODEC_ID_MJPEG:
2072+ case AV_CODEC_ID_MJPEG:
20732073 if (CONFIG_MJPEG_ENCODER)
20742074 ff_mjpeg_encode_mb(s, s->block);
20752075 break;
@@ -2317,7 +2317,7 @@ static int mb_var_thread(AVCodecContext *c, void *arg){ · 241 unmodified lines
23172317 }
23182318
23192319 static void write_slice_end(MpegEncContext *s){
2320− if(CONFIG_MPEG4_ENCODER && s->codec_id==CODEC_ID_MPEG4){
2320+ if(CONFIG_MPEG4_ENCODER && s->codec_id==AV_CODEC_ID_MPEG4){
23212321 if(s->partitioned_frame){
23222322 ff_mpeg4_merge_partitions(s);
23232323 }
@@ -2420,13 +2420,13 @@ static int encode_thread(AVCodecContext *c, void *arg){ · 96 unmodified lines
24202420 s->last_mv_dir = 0;
24212421
24222422 switch(s->codec_id){
2423− case CODEC_ID_H263:
2424− case CODEC_ID_H263P:
2425− case CODEC_ID_FLV1:
2423+ case AV_CODEC_ID_H263:
2424+ case AV_CODEC_ID_H263P:
2425+ case AV_CODEC_ID_FLV1:
24262426 if (CONFIG_H263_ENCODER)
24272427 s->gob_index = ff_h263_get_gob_height(s);
24282428 break;
2429− case CODEC_ID_MPEG4:
2429+ case AV_CODEC_ID_MPEG4:
24302430 if(CONFIG_MPEG4_ENCODER && s->partitioned_frame)
24312431 ff_mpeg4_init_partitions(s);
24322432 break;
@@ -2467,7 +2467,7 @@ static int encode_thread(AVCodecContext *c, void *arg){ · 34 unmodified lines
24672467 s->mb_y = mb_y; // moved into loop, can get changed by H.261
24682468 ff_update_block_index(s);
24692469
2470− if(CONFIG_H261_ENCODER && s->codec_id == CODEC_ID_H261){
2470+ if(CONFIG_H261_ENCODER && s->codec_id == AV_CODEC_ID_H261){
24712471 ff_h261_reorder_mb_index(s);
24722472 xy= s->mb_y*s->mb_stride + s->mb_x;
24732473 mb_type= s->mb_type[xy];
@@ -2484,14 +2484,14 @@ static int encode_thread(AVCodecContext *c, void *arg){ · 10 unmodified lines
24842484 if(s->start_mb_y == mb_y && mb_y > 0 && mb_x==0) is_gob_start=1;
24852485
24862486 switch(s->codec_id){
2487− case CODEC_ID_H263:
2488− case CODEC_ID_H263P:
2487+ case AV_CODEC_ID_H263:
2488+ case AV_CODEC_ID_H263P:
24892489 if(!s->h263_slice_structured)
24902490 if(s->mb_x || s->mb_y%s->gob_index) is_gob_start=0;
24912491 break;
2492− case CODEC_ID_MPEG2VIDEO:
2492+ case AV_CODEC_ID_MPEG2VIDEO:
24932493 if(s->mb_x==0 && s->mb_y!=0) is_gob_start=1;
2494− case CODEC_ID_MPEG1VIDEO:
2494+ case AV_CODEC_ID_MPEG1VIDEO:
24952495 if(s->mb_skip_run) is_gob_start=0;
24962496 break;
24972497 }
@@ -2500,7 +2500,7 @@ static int encode_thread(AVCodecContext *c, void *arg){ · 2 unmodified lines
25002500 if(s->start_mb_y != mb_y || mb_x!=0){
25012501 write_slice_end(s);
25022502
2503− if(CONFIG_MPEG4_ENCODER && s->codec_id==CODEC_ID_MPEG4 && s->partitioned_frame){
2503+ if(CONFIG_MPEG4_ENCODER && s->codec_id==AV_CODEC_ID_MPEG4 && s->partitioned_frame){
25042504 ff_mpeg4_init_partitions(s);
25052505 }
25062506 }
@@ -2525,21 +2525,21 @@ static int encode_thread(AVCodecContext *c, void *arg){ · 18 unmodified lines
25252525 update_mb_info(s, 1);
25262526
25272527 switch(s->codec_id){
2528− case CODEC_ID_MPEG4:
2528+ case AV_CODEC_ID_MPEG4:
25292529 if (CONFIG_MPEG4_ENCODER) {
25302530 ff_mpeg4_encode_video_packet_header(s);
25312531 ff_mpeg4_clean_buffers(s);
25322532 }
25332533 break;
2534− case CODEC_ID_MPEG1VIDEO:
2535− case CODEC_ID_MPEG2VIDEO:
2534+ case AV_CODEC_ID_MPEG1VIDEO:
2535+ case AV_CODEC_ID_MPEG2VIDEO:
25362536 if (CONFIG_MPEG1VIDEO_ENCODER || CONFIG_MPEG2VIDEO_ENCODER) {
25372537 ff_mpeg1_encode_slice_header(s);
25382538 ff_mpeg1_clean_buffers(s);
25392539 }
25402540 break;
2541− case CODEC_ID_H263:
2542− case CODEC_ID_H263P:
2541+ case AV_CODEC_ID_H263:
2542+ case AV_CODEC_ID_H263P:
25432543 if (CONFIG_H263_ENCODER)
25442544 ff_h263_encode_gob_header(s, mb_y);
25452545 break;
@@ -3061,13 +3061,13 @@ static int estimate_qp(MpegEncContext *s, int dry_run){ · 515 unmodified lines
30613061
30623062 if(s->adaptive_quant){
30633063 switch(s->codec_id){
3064− case CODEC_ID_MPEG4:
3064+ case AV_CODEC_ID_MPEG4:
30653065 if (CONFIG_MPEG4_ENCODER)
30663066 ff_clean_mpeg4_qscales(s);
30673067 break;
3068− case CODEC_ID_H263:
3069− case CODEC_ID_H263P:
3070− case CODEC_ID_FLV1:
3068+ case AV_CODEC_ID_H263:
3069+ case AV_CODEC_ID_H263P:
3070+ case AV_CODEC_ID_FLV1:
30713071 if (CONFIG_H263_ENCODER)
30723072 ff_clean_h263_qscales(s);
30733073 break;
@@ -3113,9 +3113,9 @@ static int encode_picture(MpegEncContext *s, int picture_number) · 39 unmodified lines
31133113
31143114 /* we need to initialize some time vars before we can encode b-frames */
31153115 // RAL: Condition added for MPEG1VIDEO
3116− if (s->codec_id == CODEC_ID_MPEG1VIDEO || s->codec_id == CODEC_ID_MPEG2VIDEO || (s->h263_pred && !s->msmpeg4_version))
3116+ if (s->codec_id == AV_CODEC_ID_MPEG1VIDEO || s->codec_id == AV_CODEC_ID_MPEG2VIDEO || (s->h263_pred && !s->msmpeg4_version))
31173117 set_frame_distances(s);
3118− if(CONFIG_MPEG4_ENCODER && s->codec_id == CODEC_ID_MPEG4)
3118+ if(CONFIG_MPEG4_ENCODER && s->codec_id == AV_CODEC_ID_MPEG4)
31193119 ff_set_mpeg4_time(s);
31203120
31213121 s->me.scene_change_score=0;
@@ -3126,7 +3126,7 @@ static int encode_picture(MpegEncContext *s, int picture_number) · 4 unmodified lines
31263126 if(s->msmpeg4_version >= 3) s->no_rounding=1;
31273127 else s->no_rounding=0;
31283128 }else if(s->pict_type!=AV_PICTURE_TYPE_B){
3129− if(s->flipflop_rounding || s->codec_id == CODEC_ID_H263P || s->codec_id == CODEC_ID_MPEG4)
3129+ if(s->flipflop_rounding || s->codec_id == AV_CODEC_ID_H263P || s->codec_id == AV_CODEC_ID_MPEG4)
31303130 s->no_rounding ^= 1;
31313131 }
31323132
@@ -3280,17 +3280,17 @@ static int encode_picture(MpegEncContext *s, int picture_number) · 147 unmodified lines
32803280 ff_h261_encode_picture_header(s, picture_number);
32813281 break;
32823282 case FMT_H263:
3283− if (CONFIG_WMV2_ENCODER && s->codec_id == CODEC_ID_WMV2)
3283+ if (CONFIG_WMV2_ENCODER && s->codec_id == AV_CODEC_ID_WMV2)
32843284 ff_wmv2_encode_picture_header(s, picture_number);
32853285 else if (CONFIG_MSMPEG4_ENCODER && s->msmpeg4_version)
32863286 ff_msmpeg4_encode_picture_header(s, picture_number);
32873287 else if (CONFIG_MPEG4_ENCODER && s->h263_pred)
32883288 ff_mpeg4_encode_picture_header(s, picture_number);
3289− else if (CONFIG_RV10_ENCODER && s->codec_id == CODEC_ID_RV10)
3289+ else if (CONFIG_RV10_ENCODER && s->codec_id == AV_CODEC_ID_RV10)
32903290 ff_rv10_encode_picture_header(s, picture_number);
3291− else if (CONFIG_RV20_ENCODER && s->codec_id == CODEC_ID_RV20)
3291+ else if (CONFIG_RV20_ENCODER && s->codec_id == AV_CODEC_ID_RV20)
32923292 ff_rv20_encode_picture_header(s, picture_number);
3293− else if (CONFIG_FLV_ENCODER && s->codec_id == CODEC_ID_FLV1)
3293+ else if (CONFIG_FLV_ENCODER && s->codec_id == AV_CODEC_ID_FLV1)
32943294 ff_flv_encode_picture_header(s, picture_number);
32953295 else if (CONFIG_H263_ENCODER)
32963296 ff_h263_encode_picture_header(s, picture_number);
@@ -4129,7 +4129,7 @@ static const AVClass h263_class = { · 832 unmodified lines
41294129 AVCodec ff_h263_encoder = {
41304130 .name = "h263",
41314131 .type = AVMEDIA_TYPE_VIDEO,
4132− .id = CODEC_ID_H263,
4132+ .id = AV_CODEC_ID_H263,
41334133 .priv_data_size = sizeof(MpegEncContext),
41344134 .init = ff_MPV_encode_init,
41354135 .encode2 = ff_MPV_encode_picture,
@@ -4157,7 +4157,7 @@ static const AVClass h263p_class = { · 21 unmodified lines
41574157 AVCodec ff_h263p_encoder = {
41584158 .name = "h263p",
41594159 .type = AVMEDIA_TYPE_VIDEO,
4160− .id = CODEC_ID_H263P,
4160+ .id = AV_CODEC_ID_H263P,
41614161 .priv_data_size = sizeof(MpegEncContext),
41624162 .init = ff_MPV_encode_init,
41634163 .encode2 = ff_MPV_encode_picture,
@@ -4173,7 +4173,7 @@ FF_MPV_GENERIC_CLASS(msmpeg4v2) · 9 unmodified lines
41734173 AVCodec ff_msmpeg4v2_encoder = {
41744174 .name = "msmpeg4v2",
41754175 .type = AVMEDIA_TYPE_VIDEO,
4176− .id = CODEC_ID_MSMPEG4V2,
4176+ .id = AV_CODEC_ID_MSMPEG4V2,
41774177 .priv_data_size = sizeof(MpegEncContext),
41784178 .init = ff_MPV_encode_init,
41794179 .encode2 = ff_MPV_encode_picture,
@@ -4188,7 +4188,7 @@ FF_MPV_GENERIC_CLASS(msmpeg4v3) · 8 unmodified lines
41884188 AVCodec ff_msmpeg4v3_encoder = {
41894189 .name = "msmpeg4",
41904190 .type = AVMEDIA_TYPE_VIDEO,
4191− .id = CODEC_ID_MSMPEG4V3,
4191+ .id = AV_CODEC_ID_MSMPEG4V3,
41924192 .priv_data_size = sizeof(MpegEncContext),
41934193 .init = ff_MPV_encode_init,
41944194 .encode2 = ff_MPV_encode_picture,
@@ -4203,7 +4203,7 @@ FF_MPV_GENERIC_CLASS(wmv1) · 8 unmodified lines
42034203 AVCodec ff_wmv1_encoder = {
42044204 .name = "wmv1",
42054205 .type = AVMEDIA_TYPE_VIDEO,
4206− .id = CODEC_ID_WMV1,
4206+ .id = AV_CODEC_ID_WMV1,
42074207 .priv_data_size = sizeof(MpegEncContext),
42084208 .init = ff_MPV_encode_init,
42094209 .encode2 = ff_MPV_encode_picture,
libavcodec/mpegvideo_parser.c+3−3
@@ -68,7 +68,7 @@ static void mpegvideo_extract_headers(AVCodecParserContext *s, · 67 unmodified lines
6868 pc->frame_rate.den = avctx->time_base.den = avpriv_frame_rate_tab[frame_rate_index].num;
6969 pc->frame_rate.num = avctx->time_base.num = avpriv_frame_rate_tab[frame_rate_index].den;
7070 avctx->bit_rate = ((buf[4]<<10) | (buf[5]<<2) | (buf[6]>>6))*400;
71− avctx->codec_id = CODEC_ID_MPEG1VIDEO;
71+ avctx->codec_id = AV_CODEC_ID_MPEG1VIDEO;
7272 }
7373 break;
7474 case EXT_START_CODE:
@@ -92,7 +92,7 @@ static void mpegvideo_extract_headers(AVCodecParserContext *s, · 17 unmodified lines
9292 avcodec_set_dimensions(avctx, pc->width, pc->height);
9393 avctx->time_base.den = pc->frame_rate.den * (frame_rate_ext_n + 1) * 2;
9494 avctx->time_base.num = pc->frame_rate.num * (frame_rate_ext_d + 1);
95− avctx->codec_id = CODEC_ID_MPEG2VIDEO;
95+ avctx->codec_id = AV_CODEC_ID_MPEG2VIDEO;
9696 }
9797 break;
9898 case 0x8: /* picture coding extension */
@@ -180,7 +180,7 @@ static int mpegvideo_split(AVCodecContext *avctx, · 81 unmodified lines
180180 }
181181
182182 AVCodecParser ff_mpegvideo_parser = {
183− .codec_ids = { CODEC_ID_MPEG1VIDEO, CODEC_ID_MPEG2VIDEO },
183+ .codec_ids = { AV_CODEC_ID_MPEG1VIDEO, AV_CODEC_ID_MPEG2VIDEO },
184184 .priv_data_size = sizeof(struct MpvParseContext),
185185 .parser_parse = mpegvideo_parse,
186186 .parser_close = ff_parse_close,
libavcodec/msmpeg4.c+4−4
@@ -1210,7 +1210,7 @@ int ff_msmpeg4_decode_motion(MpegEncContext * s, · 1209 unmodified lines
12101210 AVCodec ff_msmpeg4v1_decoder = {
12111211 .name = "msmpeg4v1",
12121212 .type = AVMEDIA_TYPE_VIDEO,
1213− .id = CODEC_ID_MSMPEG4V1,
1213+ .id = AV_CODEC_ID_MSMPEG4V1,
12141214 .priv_data_size = sizeof(MpegEncContext),
12151215 .init = ff_msmpeg4_decode_init,
12161216 .close = ff_h263_decode_end,
@@ -1223,7 +1223,7 @@ AVCodec ff_msmpeg4v1_decoder = { · 6 unmodified lines
12231223 AVCodec ff_msmpeg4v2_decoder = {
12241224 .name = "msmpeg4v2",
12251225 .type = AVMEDIA_TYPE_VIDEO,
1226− .id = CODEC_ID_MSMPEG4V2,
1226+ .id = AV_CODEC_ID_MSMPEG4V2,
12271227 .priv_data_size = sizeof(MpegEncContext),
12281228 .init = ff_msmpeg4_decode_init,
12291229 .close = ff_h263_decode_end,
@@ -1236,7 +1236,7 @@ AVCodec ff_msmpeg4v2_decoder = { · 6 unmodified lines
12361236 AVCodec ff_msmpeg4v3_decoder = {
12371237 .name = "msmpeg4",
12381238 .type = AVMEDIA_TYPE_VIDEO,
1239− .id = CODEC_ID_MSMPEG4V3,
1239+ .id = AV_CODEC_ID_MSMPEG4V3,
12401240 .priv_data_size = sizeof(MpegEncContext),
12411241 .init = ff_msmpeg4_decode_init,
12421242 .close = ff_h263_decode_end,
@@ -1249,7 +1249,7 @@ AVCodec ff_msmpeg4v3_decoder = { · 6 unmodified lines
12491249 AVCodec ff_wmv1_decoder = {
12501250 .name = "wmv1",
12511251 .type = AVMEDIA_TYPE_VIDEO,
1252− .id = CODEC_ID_WMV1,
1252+ .id = AV_CODEC_ID_WMV1,
12531253 .priv_data_size = sizeof(MpegEncContext),
12541254 .init = ff_msmpeg4_decode_init,
12551255 .close = ff_h263_decode_end,
libavcodec/msrle.c+1−1
@@ -149,7 +149,7 @@ static av_cold int msrle_decode_end(AVCodecContext *avctx) · 148 unmodified lines
149149 AVCodec ff_msrle_decoder = {
150150 .name = "msrle",
151151 .type = AVMEDIA_TYPE_VIDEO,
152− .id = CODEC_ID_MSRLE,
152+ .id = AV_CODEC_ID_MSRLE,
153153 .priv_data_size = sizeof(MsrleContext),
154154 .init = msrle_decode_init,
155155 .close = msrle_decode_end,
libavcodec/mss1.c+1−1
@@ -841,7 +841,7 @@ static av_cold int mss1_decode_end(AVCodecContext *avctx) · 840 unmodified lines
841841 AVCodec ff_mss1_decoder = {
842842 .name = "mss1",
843843 .type = AVMEDIA_TYPE_VIDEO,
844− .id = CODEC_ID_MSS1,
844+ .id = AV_CODEC_ID_MSS1,
845845 .priv_data_size = sizeof(MSS1Context),
846846 .init = mss1_decode_init,
847847 .close = mss1_decode_end,
libavcodec/mss3.c+1−1
@@ -859,7 +859,7 @@ static av_cold int mss3_decode_end(AVCodecContext *avctx) · 858 unmodified lines
859859 AVCodec ff_msa1_decoder = {
860860 .name = "msa1",
861861 .type = AVMEDIA_TYPE_VIDEO,
862− .id = CODEC_ID_MSA1,
862+ .id = AV_CODEC_ID_MSA1,
863863 .priv_data_size = sizeof(MSS3Context),
864864 .init = mss3_decode_init,
865865 .close = mss3_decode_end,
libavcodec/mss4.c+1−1
@@ -672,7 +672,7 @@ static av_cold int mss4_decode_end(AVCodecContext *avctx) · 671 unmodified lines
672672 AVCodec ff_mts2_decoder = {
673673 .name = "mts2",
674674 .type = AVMEDIA_TYPE_VIDEO,
675− .id = CODEC_ID_MTS2,
675+ .id = AV_CODEC_ID_MTS2,
676676 .priv_data_size = sizeof(MSS4Context),
677677 .init = mss4_decode_init,
678678 .close = mss4_decode_end,
libavcodec/msvideo1.c+1−1
@@ -336,7 +336,7 @@ static av_cold int msvideo1_decode_end(AVCodecContext *avctx) · 335 unmodified lines
336336 AVCodec ff_msvideo1_decoder = {
337337 .name = "msvideo1",
338338 .type = AVMEDIA_TYPE_VIDEO,
339− .id = CODEC_ID_MSVIDEO1,
339+ .id = AV_CODEC_ID_MSVIDEO1,
340340 .priv_data_size = sizeof(Msvideo1Context),
341341 .init = msvideo1_decode_init,
342342 .close = msvideo1_decode_end,
libavcodec/mxpegdec.c+1−1
@@ -332,7 +332,7 @@ AVCodec ff_mxpeg_decoder = { · 331 unmodified lines
332332 .name = "mxpeg",
333333 .long_name = NULL_IF_CONFIG_SMALL("Mobotix MxPEG video"),
334334 .type = AVMEDIA_TYPE_VIDEO,
335− .id = CODEC_ID_MXPEG,
335+ .id = AV_CODEC_ID_MXPEG,
336336 .priv_data_size = sizeof(MXpegDecodeContext),
337337 .init = mxpeg_decode_init,
338338 .close = mxpeg_decode_end,
libavcodec/nellymoserdec.c+1−1
@@ -216,7 +216,7 @@ static av_cold int decode_end(AVCodecContext * avctx) { · 215 unmodified lines
216216 AVCodec ff_nellymoser_decoder = {
217217 .name = "nellymoser",
218218 .type = AVMEDIA_TYPE_AUDIO,
219− .id = CODEC_ID_NELLYMOSER,
219+ .id = AV_CODEC_ID_NELLYMOSER,
220220 .priv_data_size = sizeof(NellyMoserDecodeContext),
221221 .init = decode_init,
222222 .close = decode_end,
libavcodec/nellymoserenc.c+1−1
@@ -421,7 +421,7 @@ static int encode_frame(AVCodecContext *avctx, AVPacket *avpkt, · 420 unmodified lines
421421 AVCodec ff_nellymoser_encoder = {
422422 .name = "nellymoser",
423423 .type = AVMEDIA_TYPE_AUDIO,
424− .id = CODEC_ID_NELLYMOSER,
424+ .id = AV_CODEC_ID_NELLYMOSER,
425425 .priv_data_size = sizeof(NellyMoserEncodeContext),
426426 .init = encode_init,
427427 .encode2 = encode_frame,
libavcodec/nuv.c+1−1
@@ -302,7 +302,7 @@ static av_cold int decode_end(AVCodecContext *avctx) · 301 unmodified lines
302302 AVCodec ff_nuv_decoder = {
303303 .name = "nuv",
304304 .type = AVMEDIA_TYPE_VIDEO,
305− .id = CODEC_ID_NUV,
305+ .id = AV_CODEC_ID_NUV,
306306 .priv_data_size = sizeof(NuvContext),
307307 .init = decode_init,
308308 .close = decode_end,
libavcodec/pamenc.c+1−1
@@ -117,7 +117,7 @@ static int pam_encode_frame(AVCodecContext *avctx, AVPacket *pkt, · 116 unmodified lines
117117 AVCodec ff_pam_encoder = {
118118 .name = "pam",
119119 .type = AVMEDIA_TYPE_VIDEO,
120− .id = CODEC_ID_PAM,
120+ .id = AV_CODEC_ID_PAM,
121121 .priv_data_size = sizeof(PNMContext),
122122 .init = ff_pnm_init,
123123 .encode2 = pam_encode_frame,
libavcodec/parser.c+1−1
@@ -41,7 +41,7 @@ AVCodecParserContext *av_parser_init(int codec_id) · 40 unmodified lines
4141 AVCodecParser *parser;
4242 int ret;
4343
44− if(codec_id == CODEC_ID_NONE)
44+ if(codec_id == AV_CODEC_ID_NONE)
4545 return NULL;
4646
4747 for(parser = av_first_parser; parser != NULL; parser = parser->next) {
libavcodec/pcm-mpeg.c+1−1
@@ -317,7 +317,7 @@ static int pcm_bluray_decode_frame(AVCodecContext *avctx, void *data, · 316 unmodified lines
317317 AVCodec ff_pcm_bluray_decoder = {
318318 .name = "pcm_bluray",
319319 .type = AVMEDIA_TYPE_AUDIO,
320− .id = CODEC_ID_PCM_BLURAY,
320+ .id = AV_CODEC_ID_PCM_BLURAY,
321321 .priv_data_size = sizeof(PCMBRDecode),
322322 .init = pcm_bluray_decode_init,
323323 .decode = pcm_bluray_decode_frame,
libavcodec/pcm.c+94−94
@@ -36,10 +36,10 @@ static av_cold int pcm_encode_init(AVCodecContext *avctx) · 35 unmodified lines
3636 {
3737 avctx->frame_size = 0;
3838 switch (avctx->codec->id) {
39− case CODEC_ID_PCM_ALAW:
39+ case AV_CODEC_ID_PCM_ALAW:
4040 pcm_alaw_tableinit();
4141 break;
42− case CODEC_ID_PCM_MULAW:
42+ case AV_CODEC_ID_PCM_MULAW:
4343 pcm_ulaw_tableinit();
4444 break;
4545 default:
@@ -104,25 +104,25 @@ static int pcm_encode_frame(AVCodecContext *avctx, AVPacket *avpkt, · 58 unmodified lines
104104 dst = avpkt->data;
105105
106106 switch (avctx->codec->id) {
107− case CODEC_ID_PCM_U32LE:
107+ case AV_CODEC_ID_PCM_U32LE:
108108 ENCODE(uint32_t, le32, samples, dst, n, 0, 0x80000000)
109109 break;
110− case CODEC_ID_PCM_U32BE:
110+ case AV_CODEC_ID_PCM_U32BE:
111111 ENCODE(uint32_t, be32, samples, dst, n, 0, 0x80000000)
112112 break;
113− case CODEC_ID_PCM_S24LE:
113+ case AV_CODEC_ID_PCM_S24LE:
114114 ENCODE(int32_t, le24, samples, dst, n, 8, 0)
115115 break;
116− case CODEC_ID_PCM_S24BE:
116+ case AV_CODEC_ID_PCM_S24BE:
117117 ENCODE(int32_t, be24, samples, dst, n, 8, 0)
118118 break;
119− case CODEC_ID_PCM_U24LE:
119+ case AV_CODEC_ID_PCM_U24LE:
120120 ENCODE(uint32_t, le24, samples, dst, n, 8, 0x800000)
121121 break;
122− case CODEC_ID_PCM_U24BE:
122+ case AV_CODEC_ID_PCM_U24BE:
123123 ENCODE(uint32_t, be24, samples, dst, n, 8, 0x800000)
124124 break;
125− case CODEC_ID_PCM_S24DAUD:
125+ case AV_CODEC_ID_PCM_S24DAUD:
126126 for (; n > 0; n--) {
127127 uint32_t tmp = av_reverse[(*samples >> 8) & 0xff] +
128128 (av_reverse[*samples & 0xff] << 8);
@@ -131,13 +131,13 @@ static int pcm_encode_frame(AVCodecContext *avctx, AVPacket *avpkt, · 2 unmodified lines
131131 samples++;
132132 }
133133 break;
134− case CODEC_ID_PCM_U16LE:
134+ case AV_CODEC_ID_PCM_U16LE:
135135 ENCODE(uint16_t, le16, samples, dst, n, 0, 0x8000)
136136 break;
137− case CODEC_ID_PCM_U16BE:
137+ case AV_CODEC_ID_PCM_U16BE:
138138 ENCODE(uint16_t, be16, samples, dst, n, 0, 0x8000)
139139 break;
140− case CODEC_ID_PCM_S8:
140+ case AV_CODEC_ID_PCM_S8:
141141 srcu8 = frame->data[0];
142142 for (; n > 0; n--) {
143143 v = *srcu8++;
@@ -145,47 +145,47 @@ static int pcm_encode_frame(AVCodecContext *avctx, AVPacket *avpkt, · 1 unmodified line
145145 }
146146 break;
147147 #if HAVE_BIGENDIAN
148− case CODEC_ID_PCM_F64LE:
148+ case AV_CODEC_ID_PCM_F64LE:
149149 ENCODE(int64_t, le64, samples, dst, n, 0, 0)
150150 break;
151− case CODEC_ID_PCM_S32LE:
152− case CODEC_ID_PCM_F32LE:
151+ case AV_CODEC_ID_PCM_S32LE:
152+ case AV_CODEC_ID_PCM_F32LE:
153153 ENCODE(int32_t, le32, samples, dst, n, 0, 0)
154154 break;
155− case CODEC_ID_PCM_S16LE:
155+ case AV_CODEC_ID_PCM_S16LE:
156156 ENCODE(int16_t, le16, samples, dst, n, 0, 0)
157157 break;
158− case CODEC_ID_PCM_F64BE:
159− case CODEC_ID_PCM_F32BE:
160− case CODEC_ID_PCM_S32BE:
161− case CODEC_ID_PCM_S16BE:
158+ case AV_CODEC_ID_PCM_F64BE:
159+ case AV_CODEC_ID_PCM_F32BE:
160+ case AV_CODEC_ID_PCM_S32BE:
161+ case AV_CODEC_ID_PCM_S16BE:
162162 #else
163− case CODEC_ID_PCM_F64BE:
163+ case AV_CODEC_ID_PCM_F64BE:
164164 ENCODE(int64_t, be64, samples, dst, n, 0, 0)
165165 break;
166− case CODEC_ID_PCM_F32BE:
167− case CODEC_ID_PCM_S32BE:
166+ case AV_CODEC_ID_PCM_F32BE:
167+ case AV_CODEC_ID_PCM_S32BE:
168168 ENCODE(int32_t, be32, samples, dst, n, 0, 0)
169169 break;
170− case CODEC_ID_PCM_S16BE:
170+ case AV_CODEC_ID_PCM_S16BE:
171171 ENCODE(int16_t, be16, samples, dst, n, 0, 0)
172172 break;
173− case CODEC_ID_PCM_F64LE:
174− case CODEC_ID_PCM_F32LE:
175− case CODEC_ID_PCM_S32LE:
176− case CODEC_ID_PCM_S16LE:
173+ case AV_CODEC_ID_PCM_F64LE:
174+ case AV_CODEC_ID_PCM_F32LE:
175+ case AV_CODEC_ID_PCM_S32LE:
176+ case AV_CODEC_ID_PCM_S16LE:
177177 #endif /* HAVE_BIGENDIAN */
178− case CODEC_ID_PCM_U8:
178+ case AV_CODEC_ID_PCM_U8:
179179 memcpy(dst, samples, n * sample_size);
180180 dst += n * sample_size;
181181 break;
182− case CODEC_ID_PCM_ALAW:
182+ case AV_CODEC_ID_PCM_ALAW:
183183 for (; n > 0; n--) {
184184 v = *samples++;
185185 *dst++ = linear_to_alaw[(v + 32768) >> 2];
186186 }
187187 break;
188− case CODEC_ID_PCM_MULAW:
188+ case AV_CODEC_ID_PCM_MULAW:
189189 for (; n > 0; n--) {
190190 v = *samples++;
191191 *dst++ = linear_to_ulaw[(v + 32768) >> 2];
@@ -215,11 +215,11 @@ static av_cold int pcm_decode_init(AVCodecContext *avctx) · 23 unmodified lines
215215 }
216216
217217 switch (avctx->codec->id) {
218− case CODEC_ID_PCM_ALAW:
218+ case AV_CODEC_ID_PCM_ALAW:
219219 for (i = 0; i < 256; i++)
220220 s->table[i] = alaw2linear(i);
221221 break;
222− case CODEC_ID_PCM_MULAW:
222+ case AV_CODEC_ID_PCM_MULAW:
223223 for (i = 0; i < 256; i++)
224224 s->table[i] = ulaw2linear(i);
225225 break;
@@ -267,9 +267,9 @@ static int pcm_decode_frame(AVCodecContext *avctx, void *data, · 41 unmodified lines
267267
268268 sample_size = av_get_bits_per_sample(avctx->codec_id) / 8;
269269
270− /* av_get_bits_per_sample returns 0 for CODEC_ID_PCM_DVD */
270+ /* av_get_bits_per_sample returns 0 for AV_CODEC_ID_PCM_DVD */
271271 samples_per_block = 1;
272− if (CODEC_ID_PCM_DVD == avctx->codec_id) {
272+ if (AV_CODEC_ID_PCM_DVD == avctx->codec_id) {
273273 if (avctx->bits_per_coded_sample != 20 &&
274274 avctx->bits_per_coded_sample != 24) {
275275 av_log(avctx, AV_LOG_ERROR, "PCM DVD unsupported sample depth\n");
@@ -278,7 +278,7 @@ static int pcm_decode_frame(AVCodecContext *avctx, void *data, · 2 unmodified lines
278278 /* 2 samples are interleaved per block in PCM_DVD */
279279 samples_per_block = 2;
280280 sample_size = avctx->bits_per_coded_sample * 2 / 8;
281− } else if (avctx->codec_id == CODEC_ID_PCM_LXF) {
281+ } else if (avctx->codec_id == AV_CODEC_ID_PCM_LXF) {
282282 /* we process 40-bit blocks per channel for LXF */
283283 samples_per_block = 2;
284284 sample_size = 5;
@@ -310,25 +310,25 @@ static int pcm_decode_frame(AVCodecContext *avctx, void *data, · 25 unmodified lines
310310 samples = s->frame.data[0];
311311
312312 switch (avctx->codec->id) {
313− case CODEC_ID_PCM_U32LE:
313+ case AV_CODEC_ID_PCM_U32LE:
314314 DECODE(32, le32, src, samples, n, 0, 0x80000000)
315315 break;
316− case CODEC_ID_PCM_U32BE:
316+ case AV_CODEC_ID_PCM_U32BE:
317317 DECODE(32, be32, src, samples, n, 0, 0x80000000)
318318 break;
319− case CODEC_ID_PCM_S24LE:
319+ case AV_CODEC_ID_PCM_S24LE:
320320 DECODE(32, le24, src, samples, n, 8, 0)
321321 break;
322− case CODEC_ID_PCM_S24BE:
322+ case AV_CODEC_ID_PCM_S24BE:
323323 DECODE(32, be24, src, samples, n, 8, 0)
324324 break;
325− case CODEC_ID_PCM_U24LE:
325+ case AV_CODEC_ID_PCM_U24LE:
326326 DECODE(32, le24, src, samples, n, 8, 0x800000)
327327 break;
328− case CODEC_ID_PCM_U24BE:
328+ case AV_CODEC_ID_PCM_U24BE:
329329 DECODE(32, be24, src, samples, n, 8, 0x800000)
330330 break;
331− case CODEC_ID_PCM_S24DAUD:
331+ case AV_CODEC_ID_PCM_S24DAUD:
332332 for (; n > 0; n--) {
333333 uint32_t v = bytestream_get_be24(&src);
334334 v >>= 4; // sync flags are here
@@ -337,7 +337,7 @@ static int pcm_decode_frame(AVCodecContext *avctx, void *data, · 2 unmodified lines
337337 samples += 2;
338338 }
339339 break;
340− case CODEC_ID_PCM_S16LE_PLANAR:
340+ case AV_CODEC_ID_PCM_S16LE_PLANAR:
341341 {
342342 const uint8_t *src2[MAX_CHANNELS];
343343 n /= avctx->channels;
@@ -350,51 +350,51 @@ static int pcm_decode_frame(AVCodecContext *avctx, void *data, · 6 unmodified lines
350350 }
351351 break;
352352 }
353− case CODEC_ID_PCM_U16LE:
353+ case AV_CODEC_ID_PCM_U16LE:
354354 DECODE(16, le16, src, samples, n, 0, 0x8000)
355355 break;
356− case CODEC_ID_PCM_U16BE:
356+ case AV_CODEC_ID_PCM_U16BE:
357357 DECODE(16, be16, src, samples, n, 0, 0x8000)
358358 break;
359− case CODEC_ID_PCM_S8:
359+ case AV_CODEC_ID_PCM_S8:
360360 for (; n > 0; n--)
361361 *samples++ = *src++ + 128;
362362 break;
363363 #if HAVE_BIGENDIAN
364− case CODEC_ID_PCM_F64LE:
364+ case AV_CODEC_ID_PCM_F64LE:
365365 DECODE(64, le64, src, samples, n, 0, 0)
366366 break;
367− case CODEC_ID_PCM_S32LE:
368− case CODEC_ID_PCM_F32LE:
367+ case AV_CODEC_ID_PCM_S32LE:
368+ case AV_CODEC_ID_PCM_F32LE:
369369 DECODE(32, le32, src, samples, n, 0, 0)
370370 break;
371− case CODEC_ID_PCM_S16LE:
371+ case AV_CODEC_ID_PCM_S16LE:
372372 DECODE(16, le16, src, samples, n, 0, 0)
373373 break;
374− case CODEC_ID_PCM_F64BE:
375− case CODEC_ID_PCM_F32BE:
376− case CODEC_ID_PCM_S32BE:
377− case CODEC_ID_PCM_S16BE:
374+ case AV_CODEC_ID_PCM_F64BE:
375+ case AV_CODEC_ID_PCM_F32BE:
376+ case AV_CODEC_ID_PCM_S32BE:
377+ case AV_CODEC_ID_PCM_S16BE:
378378 #else
379− case CODEC_ID_PCM_F64BE:
379+ case AV_CODEC_ID_PCM_F64BE:
380380 DECODE(64, be64, src, samples, n, 0, 0)
381381 break;
382− case CODEC_ID_PCM_F32BE:
383− case CODEC_ID_PCM_S32BE:
382+ case AV_CODEC_ID_PCM_F32BE:
383+ case AV_CODEC_ID_PCM_S32BE:
384384 DECODE(32, be32, src, samples, n, 0, 0)
385385 break;
386− case CODEC_ID_PCM_S16BE:
386+ case AV_CODEC_ID_PCM_S16BE:
387387 DECODE(16, be16, src, samples, n, 0, 0)
388388 break;
389− case CODEC_ID_PCM_F64LE:
390− case CODEC_ID_PCM_F32LE:
391− case CODEC_ID_PCM_S32LE:
392− case CODEC_ID_PCM_S16LE:
389+ case AV_CODEC_ID_PCM_F64LE:
390+ case AV_CODEC_ID_PCM_F32LE:
391+ case AV_CODEC_ID_PCM_S32LE:
392+ case AV_CODEC_ID_PCM_S16LE:
393393 #endif /* HAVE_BIGENDIAN */
394− case CODEC_ID_PCM_U8:
394+ case AV_CODEC_ID_PCM_U8:
395395 memcpy(samples, src, n * sample_size);
396396 break;
397− case CODEC_ID_PCM_ZORK:
397+ case AV_CODEC_ID_PCM_ZORK:
398398 for (; n > 0; n--) {
399399 int v = *src++;
400400 if (v < 128)
@@ -402,14 +402,14 @@ static int pcm_decode_frame(AVCodecContext *avctx, void *data, · 1 unmodified line
402402 *samples++ = v;
403403 }
404404 break;
405− case CODEC_ID_PCM_ALAW:
406− case CODEC_ID_PCM_MULAW:
405+ case AV_CODEC_ID_PCM_ALAW:
406+ case AV_CODEC_ID_PCM_MULAW:
407407 for (; n > 0; n--) {
408408 AV_WN16A(samples, s->table[*src++]);
409409 samples += 2;
410410 }
411411 break;
412− case CODEC_ID_PCM_DVD:
412+ case AV_CODEC_ID_PCM_DVD:
413413 {
414414 const uint8_t *src8;
415415 dst_int32_t = (int32_t *)s->frame.data[0];
@@ -440,7 +440,7 @@ static int pcm_decode_frame(AVCodecContext *avctx, void *data, · 24 unmodified lines
440440 }
441441 break;
442442 }
443− case CODEC_ID_PCM_LXF:
443+ case AV_CODEC_ID_PCM_LXF:
444444 {
445445 int i;
446446 const uint8_t *src8;
@@ -518,28 +518,28 @@ AVCodec ff_ ## name_ ## _decoder = { \ · 71 unmodified lines
518518 PCM_DECODER(id, sample_fmt_, name, long_name_)
519519
520520 /* Note: Do not forget to add new entries to the Makefile as well. */
521−PCM_CODEC (CODEC_ID_PCM_ALAW, AV_SAMPLE_FMT_S16, pcm_alaw, "PCM A-law");
522−PCM_DECODER(CODEC_ID_PCM_DVD, AV_SAMPLE_FMT_S32, pcm_dvd, "PCM signed 20|24-bit big-endian");
523−PCM_CODEC (CODEC_ID_PCM_F32BE, AV_SAMPLE_FMT_FLT, pcm_f32be, "PCM 32-bit floating point big-endian");
524−PCM_CODEC (CODEC_ID_PCM_F32LE, AV_SAMPLE_FMT_FLT, pcm_f32le, "PCM 32-bit floating point little-endian");
525−PCM_CODEC (CODEC_ID_PCM_F64BE, AV_SAMPLE_FMT_DBL, pcm_f64be, "PCM 64-bit floating point big-endian");
526−PCM_CODEC (CODEC_ID_PCM_F64LE, AV_SAMPLE_FMT_DBL, pcm_f64le, "PCM 64-bit floating point little-endian");
527−PCM_DECODER(CODEC_ID_PCM_LXF, AV_SAMPLE_FMT_S32, pcm_lxf, "PCM signed 20-bit little-endian planar");
528−PCM_CODEC (CODEC_ID_PCM_MULAW, AV_SAMPLE_FMT_S16, pcm_mulaw, "PCM mu-law");
529−PCM_CODEC (CODEC_ID_PCM_S8, AV_SAMPLE_FMT_U8, pcm_s8, "PCM signed 8-bit");
530−PCM_CODEC (CODEC_ID_PCM_S16BE, AV_SAMPLE_FMT_S16, pcm_s16be, "PCM signed 16-bit big-endian");
531−PCM_CODEC (CODEC_ID_PCM_S16LE, AV_SAMPLE_FMT_S16, pcm_s16le, "PCM signed 16-bit little-endian");
532−PCM_DECODER(CODEC_ID_PCM_S16LE_PLANAR, AV_SAMPLE_FMT_S16, pcm_s16le_planar, "PCM 16-bit little-endian planar");
533−PCM_CODEC (CODEC_ID_PCM_S24BE, AV_SAMPLE_FMT_S32, pcm_s24be, "PCM signed 24-bit big-endian");
534−PCM_CODEC (CODEC_ID_PCM_S24DAUD, AV_SAMPLE_FMT_S16, pcm_s24daud, "PCM D-Cinema audio signed 24-bit");
535−PCM_CODEC (CODEC_ID_PCM_S24LE, AV_SAMPLE_FMT_S32, pcm_s24le, "PCM signed 24-bit little-endian");
536−PCM_CODEC (CODEC_ID_PCM_S32BE, AV_SAMPLE_FMT_S32, pcm_s32be, "PCM signed 32-bit big-endian");
537−PCM_CODEC (CODEC_ID_PCM_S32LE, AV_SAMPLE_FMT_S32, pcm_s32le, "PCM signed 32-bit little-endian");
538−PCM_CODEC (CODEC_ID_PCM_U8, AV_SAMPLE_FMT_U8, pcm_u8, "PCM unsigned 8-bit");
539−PCM_CODEC (CODEC_ID_PCM_U16BE, AV_SAMPLE_FMT_S16, pcm_u16be, "PCM unsigned 16-bit big-endian");
540−PCM_CODEC (CODEC_ID_PCM_U16LE, AV_SAMPLE_FMT_S16, pcm_u16le, "PCM unsigned 16-bit little-endian");
541−PCM_CODEC (CODEC_ID_PCM_U24BE, AV_SAMPLE_FMT_S32, pcm_u24be, "PCM unsigned 24-bit big-endian");
542−PCM_CODEC (CODEC_ID_PCM_U24LE, AV_SAMPLE_FMT_S32, pcm_u24le, "PCM unsigned 24-bit little-endian");
543−PCM_CODEC (CODEC_ID_PCM_U32BE, AV_SAMPLE_FMT_S32, pcm_u32be, "PCM unsigned 32-bit big-endian");
544−PCM_CODEC (CODEC_ID_PCM_U32LE, AV_SAMPLE_FMT_S32, pcm_u32le, "PCM unsigned 32-bit little-endian");
545−PCM_DECODER(CODEC_ID_PCM_ZORK, AV_SAMPLE_FMT_U8, pcm_zork, "PCM Zork");
521+PCM_CODEC (AV_CODEC_ID_PCM_ALAW, AV_SAMPLE_FMT_S16, pcm_alaw, "PCM A-law");
522+PCM_DECODER(AV_CODEC_ID_PCM_DVD, AV_SAMPLE_FMT_S32, pcm_dvd, "PCM signed 20|24-bit big-endian");
523+PCM_CODEC (AV_CODEC_ID_PCM_F32BE, AV_SAMPLE_FMT_FLT, pcm_f32be, "PCM 32-bit floating point big-endian");
524+PCM_CODEC (AV_CODEC_ID_PCM_F32LE, AV_SAMPLE_FMT_FLT, pcm_f32le, "PCM 32-bit floating point little-endian");
525+PCM_CODEC (AV_CODEC_ID_PCM_F64BE, AV_SAMPLE_FMT_DBL, pcm_f64be, "PCM 64-bit floating point big-endian");
526+PCM_CODEC (AV_CODEC_ID_PCM_F64LE, AV_SAMPLE_FMT_DBL, pcm_f64le, "PCM 64-bit floating point little-endian");
527+PCM_DECODER(AV_CODEC_ID_PCM_LXF, AV_SAMPLE_FMT_S32, pcm_lxf, "PCM signed 20-bit little-endian planar");
528+PCM_CODEC (AV_CODEC_ID_PCM_MULAW, AV_SAMPLE_FMT_S16, pcm_mulaw, "PCM mu-law");
529+PCM_CODEC (AV_CODEC_ID_PCM_S8, AV_SAMPLE_FMT_U8, pcm_s8, "PCM signed 8-bit");
530+PCM_CODEC (AV_CODEC_ID_PCM_S16BE, AV_SAMPLE_FMT_S16, pcm_s16be, "PCM signed 16-bit big-endian");
531+PCM_CODEC (AV_CODEC_ID_PCM_S16LE, AV_SAMPLE_FMT_S16, pcm_s16le, "PCM signed 16-bit little-endian");
532+PCM_DECODER(AV_CODEC_ID_PCM_S16LE_PLANAR, AV_SAMPLE_FMT_S16, pcm_s16le_planar, "PCM 16-bit little-endian planar");
533+PCM_CODEC (AV_CODEC_ID_PCM_S24BE, AV_SAMPLE_FMT_S32, pcm_s24be, "PCM signed 24-bit big-endian");
534+PCM_CODEC (AV_CODEC_ID_PCM_S24DAUD, AV_SAMPLE_FMT_S16, pcm_s24daud, "PCM D-Cinema audio signed 24-bit");
535+PCM_CODEC (AV_CODEC_ID_PCM_S24LE, AV_SAMPLE_FMT_S32, pcm_s24le, "PCM signed 24-bit little-endian");
536+PCM_CODEC (AV_CODEC_ID_PCM_S32BE, AV_SAMPLE_FMT_S32, pcm_s32be, "PCM signed 32-bit big-endian");
537+PCM_CODEC (AV_CODEC_ID_PCM_S32LE, AV_SAMPLE_FMT_S32, pcm_s32le, "PCM signed 32-bit little-endian");
538+PCM_CODEC (AV_CODEC_ID_PCM_U8, AV_SAMPLE_FMT_U8, pcm_u8, "PCM unsigned 8-bit");
539+PCM_CODEC (AV_CODEC_ID_PCM_U16BE, AV_SAMPLE_FMT_S16, pcm_u16be, "PCM unsigned 16-bit big-endian");
540+PCM_CODEC (AV_CODEC_ID_PCM_U16LE, AV_SAMPLE_FMT_S16, pcm_u16le, "PCM unsigned 16-bit little-endian");
541+PCM_CODEC (AV_CODEC_ID_PCM_U24BE, AV_SAMPLE_FMT_S32, pcm_u24be, "PCM unsigned 24-bit big-endian");
542+PCM_CODEC (AV_CODEC_ID_PCM_U24LE, AV_SAMPLE_FMT_S32, pcm_u24le, "PCM unsigned 24-bit little-endian");
543+PCM_CODEC (AV_CODEC_ID_PCM_U32BE, AV_SAMPLE_FMT_S32, pcm_u32be, "PCM unsigned 32-bit big-endian");
544+PCM_CODEC (AV_CODEC_ID_PCM_U32LE, AV_SAMPLE_FMT_S32, pcm_u32le, "PCM unsigned 32-bit little-endian");
545+PCM_DECODER(AV_CODEC_ID_PCM_ZORK, AV_SAMPLE_FMT_U8, pcm_zork, "PCM Zork");
libavcodec/pcx.c+1−1
@@ -250,7 +250,7 @@ static av_cold int pcx_end(AVCodecContext *avctx) { · 249 unmodified lines
250250 AVCodec ff_pcx_decoder = {
251251 .name = "pcx",
252252 .type = AVMEDIA_TYPE_VIDEO,
253− .id = CODEC_ID_PCX,
253+ .id = AV_CODEC_ID_PCX,
254254 .priv_data_size = sizeof(PCXContext),
255255 .init = pcx_init,
256256 .close = pcx_end,
libavcodec/pcxenc.c+1−1
@@ -205,7 +205,7 @@ static int pcx_encode_frame(AVCodecContext *avctx, AVPacket *pkt, · 204 unmodified lines
205205 AVCodec ff_pcx_encoder = {
206206 .name = "pcx",
207207 .type = AVMEDIA_TYPE_VIDEO,
208− .id = CODEC_ID_PCX,
208+ .id = AV_CODEC_ID_PCX,
209209 .priv_data_size = sizeof(PCXContext),
210210 .init = pcx_encode_init,
211211 .encode2 = pcx_encode_frame,
libavcodec/pgssubdec.c+1−1
@@ -471,7 +471,7 @@ static int decode(AVCodecContext *avctx, void *data, int *data_size, · 470 unmodified lines
471471 AVCodec ff_pgssub_decoder = {
472472 .name = "pgssub",
473473 .type = AVMEDIA_TYPE_SUBTITLE,
474− .id = CODEC_ID_HDMV_PGS_SUBTITLE,
474+ .id = AV_CODEC_ID_HDMV_PGS_SUBTITLE,
475475 .priv_data_size = sizeof(PGSSubContext),
476476 .init = init_decoder,
477477 .close = close_decoder,
libavcodec/pictordec.c+1−1
@@ -253,7 +253,7 @@ static av_cold int decode_end(AVCodecContext *avctx) · 252 unmodified lines
253253 AVCodec ff_pictor_decoder = {
254254 .name = "pictor",
255255 .type = AVMEDIA_TYPE_VIDEO,
256− .id = CODEC_ID_PICTOR,
256+ .id = AV_CODEC_ID_PICTOR,
257257 .priv_data_size = sizeof(PicContext),
258258 .close = decode_end,
259259 .decode = decode_frame,
libavcodec/pngdec.c+1−1
@@ -652,7 +652,7 @@ static av_cold int png_dec_end(AVCodecContext *avctx) · 651 unmodified lines
652652 AVCodec ff_png_decoder = {
653653 .name = "png",
654654 .type = AVMEDIA_TYPE_VIDEO,
655− .id = CODEC_ID_PNG,
655+ .id = AV_CODEC_ID_PNG,
656656 .priv_data_size = sizeof(PNGDecContext),
657657 .init = png_dec_init,
658658 .close = png_dec_end,
libavcodec/pngenc.c+1−1
@@ -456,7 +456,7 @@ static av_cold int png_enc_init(AVCodecContext *avctx){ · 455 unmodified lines
456456 AVCodec ff_png_encoder = {
457457 .name = "png",
458458 .type = AVMEDIA_TYPE_VIDEO,
459− .id = CODEC_ID_PNG,
459+ .id = AV_CODEC_ID_PNG,
460460 .priv_data_size = sizeof(PNGEncContext),
461461 .init = png_enc_init,
462462 .encode2 = encode_frame,
libavcodec/pnm.c+1−1
@@ -67,7 +67,7 @@ int ff_pnm_decode_header(AVCodecContext *avctx, PNMContext * const s) · 66 unmodified lines
6767 if (s->type==1 || s->type==4) {
6868 avctx->pix_fmt = PIX_FMT_MONOWHITE;
6969 } else if (s->type==2 || s->type==5) {
70− if (avctx->codec_id == CODEC_ID_PGMYUV)
70+ if (avctx->codec_id == AV_CODEC_ID_PGMYUV)
7171 avctx->pix_fmt = PIX_FMT_YUV420P;
7272 else
7373 avctx->pix_fmt = PIX_FMT_GRAY8;
libavcodec/pnm_parser.c+2−2
@@ -84,8 +84,8 @@ retry: · 83 unmodified lines
8484 }
8585
8686 AVCodecParser ff_pnm_parser = {
87− .codec_ids = { CODEC_ID_PGM, CODEC_ID_PGMYUV, CODEC_ID_PPM,
88− CODEC_ID_PBM, CODEC_ID_PAM },
87+ .codec_ids = { AV_CODEC_ID_PGM, AV_CODEC_ID_PGMYUV, AV_CODEC_ID_PPM,
88+ AV_CODEC_ID_PBM, AV_CODEC_ID_PAM },
8989 .priv_data_size = sizeof(ParseContext),
9090 .parser_parse = pnm_parse,
9191 .parser_close = ff_parse_close,
libavcodec/pnmdec.c+5−5
@@ -191,7 +191,7 @@ static int pnm_decode_frame(AVCodecContext *avctx, void *data, · 190 unmodified lines
191191 AVCodec ff_pgm_decoder = {
192192 .name = "pgm",
193193 .type = AVMEDIA_TYPE_VIDEO,
194− .id = CODEC_ID_PGM,
194+ .id = AV_CODEC_ID_PGM,
195195 .priv_data_size = sizeof(PNMContext),
196196 .init = ff_pnm_init,
197197 .close = ff_pnm_end,
@@ -205,7 +205,7 @@ AVCodec ff_pgm_decoder = { · 7 unmodified lines
205205 AVCodec ff_pgmyuv_decoder = {
206206 .name = "pgmyuv",
207207 .type = AVMEDIA_TYPE_VIDEO,
208− .id = CODEC_ID_PGMYUV,
208+ .id = AV_CODEC_ID_PGMYUV,
209209 .priv_data_size = sizeof(PNMContext),
210210 .init = ff_pnm_init,
211211 .close = ff_pnm_end,
@@ -219,7 +219,7 @@ AVCodec ff_pgmyuv_decoder = { · 7 unmodified lines
219219 AVCodec ff_ppm_decoder = {
220220 .name = "ppm",
221221 .type = AVMEDIA_TYPE_VIDEO,
222− .id = CODEC_ID_PPM,
222+ .id = AV_CODEC_ID_PPM,
223223 .priv_data_size = sizeof(PNMContext),
224224 .init = ff_pnm_init,
225225 .close = ff_pnm_end,
@@ -233,7 +233,7 @@ AVCodec ff_ppm_decoder = { · 7 unmodified lines
233233 AVCodec ff_pbm_decoder = {
234234 .name = "pbm",
235235 .type = AVMEDIA_TYPE_VIDEO,
236− .id = CODEC_ID_PBM,
236+ .id = AV_CODEC_ID_PBM,
237237 .priv_data_size = sizeof(PNMContext),
238238 .init = ff_pnm_init,
239239 .close = ff_pnm_end,
@@ -247,7 +247,7 @@ AVCodec ff_pbm_decoder = { · 7 unmodified lines
247247 AVCodec ff_pam_decoder = {
248248 .name = "pam",
249249 .type = AVMEDIA_TYPE_VIDEO,
250− .id = CODEC_ID_PAM,
250+ .id = AV_CODEC_ID_PAM,
251251 .priv_data_size = sizeof(PNMContext),
252252 .init = ff_pnm_init,
253253 .close = ff_pnm_end,
libavcodec/pnmenc.c+4−4
@@ -122,7 +122,7 @@ static int pnm_encode_frame(AVCodecContext *avctx, AVPacket *pkt, · 121 unmodified lines
122122 AVCodec ff_pgm_encoder = {
123123 .name = "pgm",
124124 .type = AVMEDIA_TYPE_VIDEO,
125− .id = CODEC_ID_PGM,
125+ .id = AV_CODEC_ID_PGM,
126126 .priv_data_size = sizeof(PNMContext),
127127 .init = ff_pnm_init,
128128 .encode2 = pnm_encode_frame,
@@ -137,7 +137,7 @@ AVCodec ff_pgm_encoder = { · 8 unmodified lines
137137 AVCodec ff_pgmyuv_encoder = {
138138 .name = "pgmyuv",
139139 .type = AVMEDIA_TYPE_VIDEO,
140− .id = CODEC_ID_PGMYUV,
140+ .id = AV_CODEC_ID_PGMYUV,
141141 .priv_data_size = sizeof(PNMContext),
142142 .init = ff_pnm_init,
143143 .encode2 = pnm_encode_frame,
@@ -150,7 +150,7 @@ AVCodec ff_pgmyuv_encoder = { · 6 unmodified lines
150150 AVCodec ff_ppm_encoder = {
151151 .name = "ppm",
152152 .type = AVMEDIA_TYPE_VIDEO,
153− .id = CODEC_ID_PPM,
153+ .id = AV_CODEC_ID_PPM,
154154 .priv_data_size = sizeof(PNMContext),
155155 .init = ff_pnm_init,
156156 .encode2 = pnm_encode_frame,
@@ -165,7 +165,7 @@ AVCodec ff_ppm_encoder = { · 8 unmodified lines
165165 AVCodec ff_pbm_encoder = {
166166 .name = "pbm",
167167 .type = AVMEDIA_TYPE_VIDEO,
168− .id = CODEC_ID_PBM,
168+ .id = AV_CODEC_ID_PBM,
169169 .priv_data_size = sizeof(PNMContext),
170170 .init = ff_pnm_init,
171171 .encode2 = pnm_encode_frame,
libavcodec/proresdec.c+1−1
@@ -663,7 +663,7 @@ static av_cold int decode_close(AVCodecContext *avctx) · 662 unmodified lines
663663 AVCodec ff_prores_decoder = {
664664 .name = "prores",
665665 .type = AVMEDIA_TYPE_VIDEO,
666− .id = CODEC_ID_PRORES,
666+ .id = AV_CODEC_ID_PRORES,
667667 .priv_data_size = sizeof(ProresContext),
668668 .init = decode_init,
669669 .close = decode_close,
libavcodec/proresenc.c+1−1
@@ -1021,7 +1021,7 @@ static const AVClass proresenc_class = { · 1020 unmodified lines
10211021 AVCodec ff_prores_encoder = {
10221022 .name = "prores",
10231023 .type = AVMEDIA_TYPE_VIDEO,
1024− .id = CODEC_ID_PRORES,
1024+ .id = AV_CODEC_ID_PRORES,
10251025 .priv_data_size = sizeof(ProresContext),
10261026 .init = encode_init,
10271027 .close = encode_close,
libavcodec/psymodel.c+1−1
@@ -51,7 +51,7 @@ av_cold int ff_psy_init(FFPsyContext *ctx, AVCodecContext *avctx, int num_lens, · 50 unmodified lines
5151 }
5252
5353 switch (ctx->avctx->codec_id) {
54− case CODEC_ID_AAC:
54+ case AV_CODEC_ID_AAC:
5555 ctx->model = &ff_aac_psy_model;
5656 break;
5757 }
libavcodec/ptx.c+1−1
@@ -119,7 +119,7 @@ static av_cold int ptx_end(AVCodecContext *avctx) { · 118 unmodified lines
119119 AVCodec ff_ptx_decoder = {
120120 .name = "ptx",
121121 .type = AVMEDIA_TYPE_VIDEO,
122− .id = CODEC_ID_PTX,
122+ .id = AV_CODEC_ID_PTX,
123123 .priv_data_size = sizeof(PTXContext),
124124 .init = ptx_init,
125125 .close = ptx_end,
libavcodec/qcelpdec.c+1−1
@@ -793,7 +793,7 @@ erasure: · 792 unmodified lines
793793 AVCodec ff_qcelp_decoder = {
794794 .name = "qcelp",
795795 .type = AVMEDIA_TYPE_AUDIO,
796− .id = CODEC_ID_QCELP,
796+ .id = AV_CODEC_ID_QCELP,
797797 .init = qcelp_decode_init,
798798 .decode = qcelp_decode_frame,
799799 .capabilities = CODEC_CAP_DR1,
libavcodec/qdm2.c+1−1
@@ -1962,7 +1962,7 @@ AVCodec ff_qdm2_decoder = · 1961 unmodified lines
19621962 {
19631963 .name = "qdm2",
19641964 .type = AVMEDIA_TYPE_AUDIO,
1965− .id = CODEC_ID_QDM2,
1965+ .id = AV_CODEC_ID_QDM2,
19661966 .priv_data_size = sizeof(QDM2Context),
19671967 .init = qdm2_decode_init,
19681968 .close = qdm2_decode_close,
libavcodec/qdrw.c+1−1
@@ -165,7 +165,7 @@ static av_cold int decode_end(AVCodecContext *avctx){ · 164 unmodified lines
165165 AVCodec ff_qdraw_decoder = {
166166 .name = "qdraw",
167167 .type = AVMEDIA_TYPE_VIDEO,
168− .id = CODEC_ID_QDRAW,
168+ .id = AV_CODEC_ID_QDRAW,
169169 .priv_data_size = sizeof(QdrawContext),
170170 .init = decode_init,
171171 .close = decode_end,
libavcodec/qpeg.c+1−1
@@ -310,7 +310,7 @@ static av_cold int decode_end(AVCodecContext *avctx){ · 309 unmodified lines
310310 AVCodec ff_qpeg_decoder = {
311311 .name = "qpeg",
312312 .type = AVMEDIA_TYPE_VIDEO,
313− .id = CODEC_ID_QPEG,
313+ .id = AV_CODEC_ID_QPEG,
314314 .priv_data_size = sizeof(QpegContext),
315315 .init = decode_init,
316316 .close = decode_end,
libavcodec/qtrle.c+1−1
@@ -498,7 +498,7 @@ static av_cold int qtrle_decode_end(AVCodecContext *avctx) · 497 unmodified lines
498498 AVCodec ff_qtrle_decoder = {
499499 .name = "qtrle",
500500 .type = AVMEDIA_TYPE_VIDEO,
501− .id = CODEC_ID_QTRLE,
501+ .id = AV_CODEC_ID_QTRLE,
502502 .priv_data_size = sizeof(QtrleContext),
503503 .init = qtrle_decode_init,
504504 .close = qtrle_decode_end,
libavcodec/qtrleenc.c+1−1
@@ -330,7 +330,7 @@ static av_cold int qtrle_encode_end(AVCodecContext *avctx) · 329 unmodified lines
330330 AVCodec ff_qtrle_encoder = {
331331 .name = "qtrle",
332332 .type = AVMEDIA_TYPE_VIDEO,
333− .id = CODEC_ID_QTRLE,
333+ .id = AV_CODEC_ID_QTRLE,
334334 .priv_data_size = sizeof(QtrleEncContext),
335335 .init = qtrle_encode_init,
336336 .encode2 = qtrle_encode_frame,
libavcodec/r210dec.c+3−3
@@ -63,7 +63,7 @@ static int decode_frame(AVCodecContext *avctx, void *data, int *data_size, · 62 unmodified lines
6363 for (w = 0; w < avctx->width; w++) {
6464 uint32_t pixel = av_be2ne32(*src++);
6565 uint16_t r, g, b;
66− if (avctx->codec_id==CODEC_ID_R210) {
66+ if (avctx->codec_id==AV_CODEC_ID_R210) {
6767 b = pixel << 6;
6868 g = (pixel >> 4) & 0xffc0;
6969 r = (pixel >> 14) & 0xffc0;
@@ -100,7 +100,7 @@ static av_cold int decode_close(AVCodecContext *avctx) · 30 unmodified lines
100100 AVCodec ff_r210_decoder = {
101101 .name = "r210",
102102 .type = AVMEDIA_TYPE_VIDEO,
103− .id = CODEC_ID_R210,
103+ .id = AV_CODEC_ID_R210,
104104 .init = decode_init,
105105 .close = decode_close,
106106 .decode = decode_frame,
@@ -112,7 +112,7 @@ AVCodec ff_r210_decoder = { · 5 unmodified lines
112112 AVCodec ff_r10k_decoder = {
113113 .name = "r10k",
114114 .type = AVMEDIA_TYPE_VIDEO,
115− .id = CODEC_ID_R10K,
115+ .id = AV_CODEC_ID_R10K,
116116 .init = decode_init,
117117 .close = decode_close,
118118 .decode = decode_frame,
libavcodec/ra144dec.c+1−1
@@ -129,7 +129,7 @@ static int ra144_decode_frame(AVCodecContext * avctx, void *data, · 128 unmodified lines
129129 AVCodec ff_ra_144_decoder = {
130130 .name = "real_144",
131131 .type = AVMEDIA_TYPE_AUDIO,
132− .id = CODEC_ID_RA_144,
132+ .id = AV_CODEC_ID_RA_144,
133133 .priv_data_size = sizeof(RA144Context),
134134 .init = ra144_decode_init,
135135 .decode = ra144_decode_frame,
libavcodec/ra144enc.c+1−1
@@ -557,7 +557,7 @@ static int ra144_encode_frame(AVCodecContext *avctx, AVPacket *avpkt, · 556 unmodified lines
557557 AVCodec ff_ra_144_encoder = {
558558 .name = "real_144",
559559 .type = AVMEDIA_TYPE_AUDIO,
560− .id = CODEC_ID_RA_144,
560+ .id = AV_CODEC_ID_RA_144,
561561 .priv_data_size = sizeof(RA144Context),
562562 .init = ra144_encode_init,
563563 .encode2 = ra144_encode_frame,
libavcodec/ra288.c+1−1
@@ -224,7 +224,7 @@ static int ra288_decode_frame(AVCodecContext * avctx, void *data, · 223 unmodified lines
224224 AVCodec ff_ra_288_decoder = {
225225 .name = "real_288",
226226 .type = AVMEDIA_TYPE_AUDIO,
227− .id = CODEC_ID_RA_288,
227+ .id = AV_CODEC_ID_RA_288,
228228 .priv_data_size = sizeof(RA288Context),
229229 .init = ra288_decode_init,
230230 .decode = ra288_decode_frame,
libavcodec/ralf.c+1−1
@@ -525,7 +525,7 @@ static void decode_flush(AVCodecContext *avctx) · 524 unmodified lines
525525 AVCodec ff_ralf_decoder = {
526526 .name = "ralf",
527527 .type = AVMEDIA_TYPE_AUDIO,
528− .id = CODEC_ID_RALF,
528+ .id = AV_CODEC_ID_RALF,
529529 .priv_data_size = sizeof(RALFContext),
530530 .init = decode_init,
531531 .close = decode_close,
libavcodec/ratecontrol.c+1−1
@@ -286,7 +286,7 @@ int ff_vbv_update(MpegEncContext *s, int frame_size){ · 285 unmodified lines
286286 if(rcc->buffer_index > buffer_size){
287287 int stuffing= ceil((rcc->buffer_index - buffer_size)/8);
288288
289− if(stuffing < 4 && s->codec_id == CODEC_ID_MPEG4)
289+ if(stuffing < 4 && s->codec_id == AV_CODEC_ID_MPEG4)
290290 stuffing=4;
291291 rcc->buffer_index -= 8*stuffing;
292292
libavcodec/rawdec.c+1−1
@@ -210,7 +210,7 @@ static av_cold int raw_close_decoder(AVCodecContext *avctx) · 209 unmodified lines
210210 AVCodec ff_rawvideo_decoder = {
211211 .name = "rawvideo",
212212 .type = AVMEDIA_TYPE_VIDEO,
213− .id = CODEC_ID_RAWVIDEO,
213+ .id = AV_CODEC_ID_RAWVIDEO,
214214 .priv_data_size = sizeof(RawVideoContext),
215215 .init = raw_init_decoder,
216216 .close = raw_close_decoder,
libavcodec/rawenc.c+1−1
@@ -69,7 +69,7 @@ static int raw_encode(AVCodecContext *avctx, AVPacket *pkt, · 68 unmodified lines
6969 AVCodec ff_rawvideo_encoder = {
7070 .name = "rawvideo",
7171 .type = AVMEDIA_TYPE_VIDEO,
72− .id = CODEC_ID_RAWVIDEO,
72+ .id = AV_CODEC_ID_RAWVIDEO,
7373 .priv_data_size = sizeof(AVFrame),
7474 .init = raw_init_encoder,
7575 .encode2 = raw_encode,
libavcodec/rl2.c+1−1
@@ -221,7 +221,7 @@ static av_cold int rl2_decode_end(AVCodecContext *avctx) · 220 unmodified lines
221221 AVCodec ff_rl2_decoder = {
222222 .name = "rl2",
223223 .type = AVMEDIA_TYPE_VIDEO,
224− .id = CODEC_ID_RL2,
224+ .id = AV_CODEC_ID_RL2,
225225 .priv_data_size = sizeof(Rl2Context),
226226 .init = rl2_decode_init,
227227 .close = rl2_decode_end,
libavcodec/roqaudioenc.c+1−1
@@ -205,7 +205,7 @@ static int roq_dpcm_encode_frame(AVCodecContext *avctx, AVPacket *avpkt, · 204 unmodified lines
205205 AVCodec ff_roq_dpcm_encoder = {
206206 .name = "roq_dpcm",
207207 .type = AVMEDIA_TYPE_AUDIO,
208− .id = CODEC_ID_ROQ_DPCM,
208+ .id = AV_CODEC_ID_ROQ_DPCM,
209209 .priv_data_size = sizeof(ROQDPCMContext),
210210 .init = roq_dpcm_encode_init,
211211 .encode2 = roq_dpcm_encode_frame,
libavcodec/roqvideodec.c+1−1
@@ -215,7 +215,7 @@ static av_cold int roq_decode_end(AVCodecContext *avctx) · 214 unmodified lines
215215 AVCodec ff_roq_decoder = {
216216 .name = "roqvideo",
217217 .type = AVMEDIA_TYPE_VIDEO,
218− .id = CODEC_ID_ROQ,
218+ .id = AV_CODEC_ID_ROQ,
219219 .priv_data_size = sizeof(RoqContext),
220220 .init = roq_decode_init,
221221 .close = roq_decode_end,
libavcodec/roqvideoenc.c+1−1
@@ -1075,7 +1075,7 @@ static int roq_encode_end(AVCodecContext *avctx) · 1074 unmodified lines
10751075 AVCodec ff_roq_encoder = {
10761076 .name = "roqvideo",
10771077 .type = AVMEDIA_TYPE_VIDEO,
1078− .id = CODEC_ID_ROQ,
1078+ .id = AV_CODEC_ID_ROQ,
10791079 .priv_data_size = sizeof(RoqContext),
10801080 .init = roq_encode_init,
10811081 .encode2 = roq_encode_frame,
libavcodec/rpza.c+1−1
@@ -282,7 +282,7 @@ static av_cold int rpza_decode_end(AVCodecContext *avctx) · 281 unmodified lines
282282 AVCodec ff_rpza_decoder = {
283283 .name = "rpza",
284284 .type = AVMEDIA_TYPE_VIDEO,
285− .id = CODEC_ID_RPZA,
285+ .id = AV_CODEC_ID_RPZA,
286286 .priv_data_size = sizeof(RpzaContext),
287287 .init = rpza_decode_init,
288288 .close = rpza_decode_end,
libavcodec/rv10.c+4−4
@@ -510,7 +510,7 @@ static int rv10_decode_packet(AVCodecContext *avctx, · 509 unmodified lines
510510
511511 active_bits_size = buf_size * 8;
512512 init_get_bits(&s->gb, buf, FFMAX(buf_size, buf_size2) * 8);
513− if(s->codec_id ==CODEC_ID_RV10)
513+ if(s->codec_id ==AV_CODEC_ID_RV10)
514514 mb_count = rv10_decode_picture_header(s);
515515 else
516516 mb_count = rv20_decode_picture_header(rv);
@@ -550,7 +550,7 @@ static int rv10_decode_packet(AVCodecContext *avctx, · 33 unmodified lines
550550 av_dlog(avctx, "qscale=%d\n", s->qscale);
551551
552552 /* default quantization values */
553− if(s->codec_id== CODEC_ID_RV10){
553+ if(s->codec_id== AV_CODEC_ID_RV10){
554554 if(s->mb_y==0) s->first_slice_line=1;
555555 }else{
556556 s->first_slice_line=1;
@@ -720,7 +720,7 @@ static int rv10_decode_frame(AVCodecContext *avctx, · 163 unmodified lines
720720 AVCodec ff_rv10_decoder = {
721721 .name = "rv10",
722722 .type = AVMEDIA_TYPE_VIDEO,
723− .id = CODEC_ID_RV10,
723+ .id = AV_CODEC_ID_RV10,
724724 .priv_data_size = sizeof(RVDecContext),
725725 .init = rv10_decode_init,
726726 .close = rv10_decode_end,
@@ -733,7 +733,7 @@ AVCodec ff_rv10_decoder = { · 6 unmodified lines
733733 AVCodec ff_rv20_decoder = {
734734 .name = "rv20",
735735 .type = AVMEDIA_TYPE_VIDEO,
736− .id = CODEC_ID_RV20,
736+ .id = AV_CODEC_ID_RV20,
737737 .priv_data_size = sizeof(RVDecContext),
738738 .init = rv10_decode_init,
739739 .close = rv10_decode_end,
libavcodec/rv10enc.c+1−1
@@ -61,7 +61,7 @@ FF_MPV_GENERIC_CLASS(rv10) · 60 unmodified lines
6161 AVCodec ff_rv10_encoder = {
6262 .name = "rv10",
6363 .type = AVMEDIA_TYPE_VIDEO,
64− .id = CODEC_ID_RV10,
64+ .id = AV_CODEC_ID_RV10,
6565 .priv_data_size = sizeof(MpegEncContext),
6666 .init = ff_MPV_encode_init,
6767 .encode2 = ff_MPV_encode_picture,
libavcodec/rv20enc.c+1−1
@@ -62,7 +62,7 @@ FF_MPV_GENERIC_CLASS(rv20) · 61 unmodified lines
6262 AVCodec ff_rv20_encoder = {
6363 .name = "rv20",
6464 .type = AVMEDIA_TYPE_VIDEO,
65− .id = CODEC_ID_RV20,
65+ .id = AV_CODEC_ID_RV20,
6666 .priv_data_size = sizeof(MpegEncContext),
6767 .init = ff_MPV_encode_init,
6868 .encode2 = ff_MPV_encode_picture,
libavcodec/rv30.c+1−1
@@ -270,7 +270,7 @@ static av_cold int rv30_decode_init(AVCodecContext *avctx) · 269 unmodified lines
270270 AVCodec ff_rv30_decoder = {
271271 .name = "rv30",
272272 .type = AVMEDIA_TYPE_VIDEO,
273− .id = CODEC_ID_RV30,
273+ .id = AV_CODEC_ID_RV30,
274274 .priv_data_size = sizeof(RV34DecContext),
275275 .init = rv30_decode_init,
276276 .close = ff_rv34_decode_end,
libavcodec/rv34.c+3−3
@@ -1486,14 +1486,14 @@ av_cold int ff_rv34_decode_init(AVCodecContext *avctx) · 1485 unmodified lines
14861486 if ((ret = ff_MPV_common_init(s)) < 0)
14871487 return ret;
14881488
1489− ff_h264_pred_init(&r->h, CODEC_ID_RV40, 8, 1);
1489+ ff_h264_pred_init(&r->h, AV_CODEC_ID_RV40, 8, 1);
14901490
14911491 #if CONFIG_RV30_DECODER
1492− if (avctx->codec_id == CODEC_ID_RV30)
1492+ if (avctx->codec_id == AV_CODEC_ID_RV30)
14931493 ff_rv30dsp_init(&r->rdsp, &r->s.dsp);
14941494 #endif
14951495 #if CONFIG_RV40_DECODER
1496− if (avctx->codec_id == CODEC_ID_RV40)
1496+ if (avctx->codec_id == AV_CODEC_ID_RV40)
14971497 ff_rv40dsp_init(&r->rdsp, &r->s.dsp);
14981498 #endif
14991499
libavcodec/rv34_parser.c+3−3
@@ -52,7 +52,7 @@ static int rv34_parse(AVCodecParserContext *s, · 51 unmodified lines
5252 }
5353
5454 hdr = AV_RB32(buf + 9 + *buf * 8);
55− if (avctx->codec_id == CODEC_ID_RV30) {
55+ if (avctx->codec_id == AV_CODEC_ID_RV30) {
5656 type = (hdr >> 27) & 3;
5757 pts = (hdr >> 7) & 0x1FFF;
5858 } else {
@@ -78,7 +78,7 @@ static int rv34_parse(AVCodecParserContext *s, · 19 unmodified lines
7878
7979 #ifdef CONFIG_RV30_PARSER
8080 AVCodecParser ff_rv30_parser = {
81− .codec_ids = { CODEC_ID_RV30 },
81+ .codec_ids = { AV_CODEC_ID_RV30 },
8282 .priv_data_size = sizeof(RV34ParseContext),
8383 .parser_parse = rv34_parse,
8484 };
@@ -86,7 +86,7 @@ AVCodecParser ff_rv30_parser = { · 1 unmodified line
8686
8787 #ifdef CONFIG_RV40_PARSER
8888 AVCodecParser ff_rv40_parser = {
89− .codec_ids = { CODEC_ID_RV40 },
89+ .codec_ids = { AV_CODEC_ID_RV40 },
9090 .priv_data_size = sizeof(RV34ParseContext),
9191 .parser_parse = rv34_parse,
9292 };
libavcodec/rv40.c+1−1
@@ -562,7 +562,7 @@ static av_cold int rv40_decode_init(AVCodecContext *avctx) · 561 unmodified lines
562562 AVCodec ff_rv40_decoder = {
563563 .name = "rv40",
564564 .type = AVMEDIA_TYPE_VIDEO,
565− .id = CODEC_ID_RV40,
565+ .id = AV_CODEC_ID_RV40,
566566 .priv_data_size = sizeof(RV34DecContext),
567567 .init = rv40_decode_init,
568568 .close = ff_rv34_decode_end,
libavcodec/s302m.c+1−1
@@ -156,7 +156,7 @@ static int s302m_decode_init(AVCodecContext *avctx) · 155 unmodified lines
156156 AVCodec ff_s302m_decoder = {
157157 .name = "s302m",
158158 .type = AVMEDIA_TYPE_AUDIO,
159− .id = CODEC_ID_S302M,
159+ .id = AV_CODEC_ID_S302M,
160160 .priv_data_size = sizeof(S302MDecodeContext),
161161 .init = s302m_decode_init,
162162 .decode = s302m_decode_frame,
libavcodec/sgidec.c+1−1
@@ -261,7 +261,7 @@ static av_cold int sgi_end(AVCodecContext *avctx) · 260 unmodified lines
261261 AVCodec ff_sgi_decoder = {
262262 .name = "sgi",
263263 .type = AVMEDIA_TYPE_VIDEO,
264− .id = CODEC_ID_SGI,
264+ .id = AV_CODEC_ID_SGI,
265265 .priv_data_size = sizeof(SgiState),
266266 .init = sgi_init,
267267 .close = sgi_end,
libavcodec/sgienc.c+1−1
@@ -173,7 +173,7 @@ static int encode_frame(AVCodecContext *avctx, AVPacket *pkt, · 172 unmodified lines
173173 AVCodec ff_sgi_encoder = {
174174 .name = "sgi",
175175 .type = AVMEDIA_TYPE_VIDEO,
176− .id = CODEC_ID_SGI,
176+ .id = AV_CODEC_ID_SGI,
177177 .priv_data_size = sizeof(SgiContext),
178178 .init = encode_init,
179179 .encode2 = encode_frame,
libavcodec/shorten.c+1−1
@@ -630,7 +630,7 @@ static av_cold int shorten_decode_close(AVCodecContext *avctx) · 629 unmodified lines
630630 AVCodec ff_shorten_decoder = {
631631 .name = "shorten",
632632 .type = AVMEDIA_TYPE_AUDIO,
633− .id = CODEC_ID_SHORTEN,
633+ .id = AV_CODEC_ID_SHORTEN,
634634 .priv_data_size = sizeof(ShortenContext),
635635 .init = shorten_decode_init,
636636 .close = shorten_decode_close,
libavcodec/sipr.c+1−1
@@ -561,7 +561,7 @@ static int sipr_decode_frame(AVCodecContext *avctx, void *data, · 560 unmodified lines
561561 AVCodec ff_sipr_decoder = {
562562 .name = "sipr",
563563 .type = AVMEDIA_TYPE_AUDIO,
564− .id = CODEC_ID_SIPR,
564+ .id = AV_CODEC_ID_SIPR,
565565 .priv_data_size = sizeof(SiprContext),
566566 .init = sipr_decoder_init,
567567 .decode = sipr_decode_frame,
libavcodec/smacker.c+2−2
@@ -724,7 +724,7 @@ static int smka_decode_frame(AVCodecContext *avctx, void *data, · 723 unmodified lines
724724 AVCodec ff_smacker_decoder = {
725725 .name = "smackvid",
726726 .type = AVMEDIA_TYPE_VIDEO,
727− .id = CODEC_ID_SMACKVIDEO,
727+ .id = AV_CODEC_ID_SMACKVIDEO,
728728 .priv_data_size = sizeof(SmackVContext),
729729 .init = decode_init,
730730 .close = decode_end,
@@ -736,7 +736,7 @@ AVCodec ff_smacker_decoder = { · 5 unmodified lines
736736 AVCodec ff_smackaud_decoder = {
737737 .name = "smackaud",
738738 .type = AVMEDIA_TYPE_AUDIO,
739− .id = CODEC_ID_SMACKAUDIO,
739+ .id = AV_CODEC_ID_SMACKAUDIO,
740740 .priv_data_size = sizeof(SmackerAudioContext),
741741 .init = smka_decode_init,
742742 .decode = smka_decode_frame,
libavcodec/smc.c+1−1
@@ -467,7 +467,7 @@ static av_cold int smc_decode_end(AVCodecContext *avctx) · 466 unmodified lines
467467 AVCodec ff_smc_decoder = {
468468 .name = "smc",
469469 .type = AVMEDIA_TYPE_VIDEO,
470− .id = CODEC_ID_SMC,
470+ .id = AV_CODEC_ID_SMC,
471471 .priv_data_size = sizeof(SmcContext),
472472 .init = smc_decode_init,
473473 .close = smc_decode_end,
libavcodec/snowdec.c+1−1
@@ -563,7 +563,7 @@ static av_cold int decode_end(AVCodecContext *avctx) · 562 unmodified lines
563563 AVCodec ff_snow_decoder = {
564564 .name = "snow",
565565 .type = AVMEDIA_TYPE_VIDEO,
566− .id = CODEC_ID_SNOW,
566+ .id = AV_CODEC_ID_SNOW,
567567 .priv_data_size = sizeof(SnowContext),
568568 .init = decode_init,
569569 .close = decode_end,
libavcodec/snowenc.c+1−1
@@ -1928,7 +1928,7 @@ static const AVClass snowenc_class = { · 1927 unmodified lines
19281928 AVCodec ff_snow_encoder = {
19291929 .name = "snow",
19301930 .type = AVMEDIA_TYPE_VIDEO,
1931− .id = CODEC_ID_SNOW,
1931+ .id = AV_CODEC_ID_SNOW,
19321932 .priv_data_size = sizeof(SnowContext),
19331933 .init = encode_init,
19341934 .encode2 = encode_frame,
libavcodec/sp5xdec.c+3−3
@@ -68,7 +68,7 @@ static int sp5x_decode_frame(AVCodecContext *avctx, · 67 unmodified lines
6868 memcpy(recoded+j, &sp5x_data_sos[0], sizeof(sp5x_data_sos));
6969 j += sizeof(sp5x_data_sos);
7070
71− if(avctx->codec_id==CODEC_ID_AMV)
71+ if(avctx->codec_id==AV_CODEC_ID_AMV)
7272 for (i = 2; i < buf_size-2 && j < buf_size+1024-2; i++)
7373 recoded[j++] = buf[i];
7474 else
@@ -96,7 +96,7 @@ static int sp5x_decode_frame(AVCodecContext *avctx, · 21 unmodified lines
9696 AVCodec ff_sp5x_decoder = {
9797 .name = "sp5x",
9898 .type = AVMEDIA_TYPE_VIDEO,
99− .id = CODEC_ID_SP5X,
99+ .id = AV_CODEC_ID_SP5X,
100100 .priv_data_size = sizeof(MJpegDecodeContext),
101101 .init = ff_mjpeg_decode_init,
102102 .close = ff_mjpeg_decode_end,
@@ -108,7 +108,7 @@ AVCodec ff_sp5x_decoder = { · 5 unmodified lines
108108 AVCodec ff_amv_decoder = {
109109 .name = "amv",
110110 .type = AVMEDIA_TYPE_VIDEO,
111− .id = CODEC_ID_AMV,
111+ .id = AV_CODEC_ID_AMV,
112112 .priv_data_size = sizeof(MJpegDecodeContext),
113113 .init = ff_mjpeg_decode_init,
114114 .close = ff_mjpeg_decode_end,
libavcodec/srtdec.c+1−1
@@ -235,7 +235,7 @@ AVCodec ff_srt_decoder = { · 234 unmodified lines
235235 .name = "srt",
236236 .long_name = NULL_IF_CONFIG_SMALL("SubRip subtitle"),
237237 .type = AVMEDIA_TYPE_SUBTITLE,
238− .id = CODEC_ID_SRT,
238+ .id = AV_CODEC_ID_SRT,
239239 .init = ff_ass_subtitle_header_default,
240240 .decode = srt_decode_frame,
241241 };
libavcodec/sunrast.c+1−1
@@ -196,7 +196,7 @@ static av_cold int sunrast_end(AVCodecContext *avctx) { · 195 unmodified lines
196196 AVCodec ff_sunrast_decoder = {
197197 .name = "sunrast",
198198 .type = AVMEDIA_TYPE_VIDEO,
199− .id = CODEC_ID_SUNRAST,
199+ .id = AV_CODEC_ID_SUNRAST,
200200 .priv_data_size = sizeof(SUNRASTContext),
201201 .init = sunrast_init,
202202 .close = sunrast_end,
libavcodec/sunrastenc.c+1−1
@@ -215,7 +215,7 @@ static const AVCodecDefault sunrast_defaults[] = { · 214 unmodified lines
215215 AVCodec ff_sunrast_encoder = {
216216 .name = "sunrast",
217217 .type = AVMEDIA_TYPE_VIDEO,
218− .id = CODEC_ID_SUNRAST,
218+ .id = AV_CODEC_ID_SUNRAST,
219219 .priv_data_size = sizeof(SUNRASTContext),
220220 .init = sunrast_encode_init,
221221 .encode2 = sunrast_encode_frame,
libavcodec/svq1dec.c+1−1
@@ -812,7 +812,7 @@ static av_cold int svq1_decode_end(AVCodecContext *avctx) · 811 unmodified lines
812812 AVCodec ff_svq1_decoder = {
813813 .name = "svq1",
814814 .type = AVMEDIA_TYPE_VIDEO,
815− .id = CODEC_ID_SVQ1,
815+ .id = AV_CODEC_ID_SVQ1,
816816 .priv_data_size = sizeof(MpegEncContext),
817817 .init = svq1_decode_init,
818818 .close = svq1_decode_end,
libavcodec/svq1enc.c+1−1
@@ -581,7 +581,7 @@ static av_cold int svq1_encode_end(AVCodecContext *avctx) · 580 unmodified lines
581581 AVCodec ff_svq1_encoder = {
582582 .name = "svq1",
583583 .type = AVMEDIA_TYPE_VIDEO,
584− .id = CODEC_ID_SVQ1,
584+ .id = AV_CODEC_ID_SVQ1,
585585 .priv_data_size = sizeof(SVQ1Context),
586586 .init = svq1_encode_init,
587587 .encode2 = svq1_encode_frame,
libavcodec/svq3.c+1−1
@@ -1104,7 +1104,7 @@ static int svq3_decode_end(AVCodecContext *avctx) · 1103 unmodified lines
11041104 AVCodec ff_svq3_decoder = {
11051105 .name = "svq3",
11061106 .type = AVMEDIA_TYPE_VIDEO,
1107− .id = CODEC_ID_SVQ3,
1107+ .id = AV_CODEC_ID_SVQ3,
11081108 .priv_data_size = sizeof(SVQ3Context),
11091109 .init = svq3_decode_init,
11101110 .close = svq3_decode_end,
libavcodec/targa.c+1−1
@@ -258,7 +258,7 @@ static av_cold int targa_end(AVCodecContext *avctx){ · 257 unmodified lines
258258 AVCodec ff_targa_decoder = {
259259 .name = "targa",
260260 .type = AVMEDIA_TYPE_VIDEO,
261− .id = CODEC_ID_TARGA,
261+ .id = AV_CODEC_ID_TARGA,
262262 .priv_data_size = sizeof(TargaContext),
263263 .init = targa_init,
264264 .close = targa_end,
libavcodec/targaenc.c+1−1
@@ -164,7 +164,7 @@ static av_cold int targa_encode_init(AVCodecContext *avctx) · 163 unmodified lines
164164 AVCodec ff_targa_encoder = {
165165 .name = "targa",
166166 .type = AVMEDIA_TYPE_VIDEO,
167− .id = CODEC_ID_TARGA,
167+ .id = AV_CODEC_ID_TARGA,
168168 .priv_data_size = sizeof(TargaContext),
169169 .init = targa_encode_init,
170170 .encode2 = targa_encode_frame,
libavcodec/tiertexseqv.c+1−1
@@ -259,7 +259,7 @@ static av_cold int seqvideo_decode_end(AVCodecContext *avctx) · 258 unmodified lines
259259 AVCodec ff_tiertexseqvideo_decoder = {
260260 .name = "tiertexseqvideo",
261261 .type = AVMEDIA_TYPE_VIDEO,
262− .id = CODEC_ID_TIERTEXSEQVIDEO,
262+ .id = AV_CODEC_ID_TIERTEXSEQVIDEO,
263263 .priv_data_size = sizeof(SeqVideoContext),
264264 .init = seqvideo_decode_init,
265265 .close = seqvideo_decode_end,
libavcodec/tiff.c+1−1
@@ -685,7 +685,7 @@ static av_cold int tiff_end(AVCodecContext *avctx) · 684 unmodified lines
685685 AVCodec ff_tiff_decoder = {
686686 .name = "tiff",
687687 .type = AVMEDIA_TYPE_VIDEO,
688− .id = CODEC_ID_TIFF,
688+ .id = AV_CODEC_ID_TIFF,
689689 .priv_data_size = sizeof(TiffContext),
690690 .init = tiff_init,
691691 .close = tiff_end,
libavcodec/tiffenc.c+1−1
@@ -469,7 +469,7 @@ static const AVClass tiffenc_class = { · 468 unmodified lines
469469 AVCodec ff_tiff_encoder = {
470470 .name = "tiff",
471471 .type = AVMEDIA_TYPE_VIDEO,
472− .id = CODEC_ID_TIFF,
472+ .id = AV_CODEC_ID_TIFF,
473473 .priv_data_size = sizeof(TiffEncoderContext),
474474 .encode2 = encode_frame,
475475 .pix_fmts = (const enum PixelFormat[]) {
libavcodec/tmv.c+1−1
@@ -101,7 +101,7 @@ static av_cold int tmv_decode_close(AVCodecContext *avctx) · 100 unmodified lines
101101 AVCodec ff_tmv_decoder = {
102102 .name = "tmv",
103103 .type = AVMEDIA_TYPE_VIDEO,
104− .id = CODEC_ID_TMV,
104+ .id = AV_CODEC_ID_TMV,
105105 .priv_data_size = sizeof(TMVContext),
106106 .init = tmv_decode_init,
107107 .close = tmv_decode_close,
libavcodec/truemotion1.c+1−1
@@ -886,7 +886,7 @@ static av_cold int truemotion1_decode_end(AVCodecContext *avctx) · 885 unmodified lines
886886 AVCodec ff_truemotion1_decoder = {
887887 .name = "truemotion1",
888888 .type = AVMEDIA_TYPE_VIDEO,
889− .id = CODEC_ID_TRUEMOTION1,
889+ .id = AV_CODEC_ID_TRUEMOTION1,
890890 .priv_data_size = sizeof(TrueMotion1Context),
891891 .init = truemotion1_decode_init,
892892 .close = truemotion1_decode_end,
libavcodec/truemotion2.c+1−1
@@ -954,7 +954,7 @@ static av_cold int decode_end(AVCodecContext *avctx){ · 953 unmodified lines
954954 AVCodec ff_truemotion2_decoder = {
955955 .name = "truemotion2",
956956 .type = AVMEDIA_TYPE_VIDEO,
957− .id = CODEC_ID_TRUEMOTION2,
957+ .id = AV_CODEC_ID_TRUEMOTION2,
958958 .priv_data_size = sizeof(TM2Context),
959959 .init = decode_init,
960960 .close = decode_end,
libavcodec/truespeech.c+1−1
@@ -360,7 +360,7 @@ static int truespeech_decode_frame(AVCodecContext *avctx, void *data, · 359 unmodified lines
360360 AVCodec ff_truespeech_decoder = {
361361 .name = "truespeech",
362362 .type = AVMEDIA_TYPE_AUDIO,
363− .id = CODEC_ID_TRUESPEECH,
363+ .id = AV_CODEC_ID_TRUESPEECH,
364364 .priv_data_size = sizeof(TSContext),
365365 .init = truespeech_decode_init,
366366 .decode = truespeech_decode_frame,
libavcodec/tscc.c+1−1
@@ -205,7 +205,7 @@ static av_cold int decode_end(AVCodecContext *avctx) · 204 unmodified lines
205205 AVCodec ff_tscc_decoder = {
206206 .name = "camtasia",
207207 .type = AVMEDIA_TYPE_VIDEO,
208− .id = CODEC_ID_TSCC,
208+ .id = AV_CODEC_ID_TSCC,
209209 .priv_data_size = sizeof(CamtasiaContext),
210210 .init = decode_init,
211211 .close = decode_end,
libavcodec/tscc2.c+1−1
@@ -372,7 +372,7 @@ static av_cold int tscc2_decode_end(AVCodecContext *avctx) · 371 unmodified lines
372372 AVCodec ff_tscc2_decoder = {
373373 .name = "tscc2",
374374 .type = AVMEDIA_TYPE_VIDEO,
375− .id = CODEC_ID_TSCC2,
375+ .id = AV_CODEC_ID_TSCC2,
376376 .priv_data_size = sizeof(TSCC2Context),
377377 .init = tscc2_decode_init,
378378 .close = tscc2_decode_end,
libavcodec/tta.c+1−1
@@ -469,7 +469,7 @@ static av_cold int tta_decode_close(AVCodecContext *avctx) { · 468 unmodified lines
469469 AVCodec ff_tta_decoder = {
470470 .name = "tta",
471471 .type = AVMEDIA_TYPE_AUDIO,
472− .id = CODEC_ID_TTA,
472+ .id = AV_CODEC_ID_TTA,
473473 .priv_data_size = sizeof(TTAContext),
474474 .init = tta_decode_init,
475475 .close = tta_decode_close,
libavcodec/twinvq.c+1−1
@@ -1177,7 +1177,7 @@ static av_cold int twin_decode_init(AVCodecContext *avctx) · 1176 unmodified lines
11771177 AVCodec ff_twinvq_decoder = {
11781178 .name = "twinvq",
11791179 .type = AVMEDIA_TYPE_AUDIO,
1180− .id = CODEC_ID_TWINVQ,
1180+ .id = AV_CODEC_ID_TWINVQ,
11811181 .priv_data_size = sizeof(TwinContext),
11821182 .init = twin_decode_init,
11831183 .close = twin_decode_close,
libavcodec/txd.c+1−1
@@ -155,7 +155,7 @@ static av_cold int txd_end(AVCodecContext *avctx) { · 154 unmodified lines
155155 AVCodec ff_txd_decoder = {
156156 .name = "txd",
157157 .type = AVMEDIA_TYPE_VIDEO,
158− .id = CODEC_ID_TXD,
158+ .id = AV_CODEC_ID_TXD,
159159 .priv_data_size = sizeof(TXDContext),
160160 .init = txd_init,
161161 .close = txd_end,
libavcodec/ulti.c+1−1
@@ -420,7 +420,7 @@ err: · 419 unmodified lines
420420 AVCodec ff_ulti_decoder = {
421421 .name = "ultimotion",
422422 .type = AVMEDIA_TYPE_VIDEO,
423− .id = CODEC_ID_ULTI,
423+ .id = AV_CODEC_ID_ULTI,
424424 .priv_data_size = sizeof(UltimotionDecodeContext),
425425 .init = ulti_decode_init,
426426 .close = ulti_decode_end,
libavcodec/utils.c+96−96
@@ -197,25 +197,25 @@ void avcodec_align_dimensions2(AVCodecContext *s, int *width, int *height, · 196 unmodified lines
197197 h_align=8;
198198 break;
199199 case PIX_FMT_YUV410P:
200− if(s->codec_id == CODEC_ID_SVQ1){
200+ if(s->codec_id == AV_CODEC_ID_SVQ1){
201201 w_align=64;
202202 h_align=64;
203203 }
204204 case PIX_FMT_RGB555:
205− if(s->codec_id == CODEC_ID_RPZA){
205+ if(s->codec_id == AV_CODEC_ID_RPZA){
206206 w_align=4;
207207 h_align=4;
208208 }
209209 case PIX_FMT_PAL8:
210210 case PIX_FMT_BGR8:
211211 case PIX_FMT_RGB8:
212− if(s->codec_id == CODEC_ID_SMC){
212+ if(s->codec_id == AV_CODEC_ID_SMC){
213213 w_align=4;
214214 h_align=4;
215215 }
216216 break;
217217 case PIX_FMT_BGR24:
218− if((s->codec_id == CODEC_ID_MSZH) || (s->codec_id == CODEC_ID_ZLIB)){
218+ if((s->codec_id == AV_CODEC_ID_MSZH) || (s->codec_id == AV_CODEC_ID_ZLIB)){
219219 w_align=4;
220220 h_align=4;
221221 }
@@ -228,7 +228,7 @@ void avcodec_align_dimensions2(AVCodecContext *s, int *width, int *height, · 6 unmodified lines
228228
229229 *width = FFALIGN(*width , w_align);
230230 *height= FFALIGN(*height, h_align);
231− if (s->codec_id == CODEC_ID_H264)
231+ if (s->codec_id == AV_CODEC_ID_H264)
232232 *height+=2; // some of the optimized chroma MC reads one line too much
233233
234234 for (i = 0; i < 4; i++)
@@ -717,7 +717,7 @@ int attribute_align_arg avcodec_open2(AVCodecContext *avctx, AVCodec *codec, AVD · 482 unmodified lines
717717
718718 avctx->codec = codec;
719719 if ((avctx->codec_type == AVMEDIA_TYPE_UNKNOWN || avctx->codec_type == codec->type) &&
720− avctx->codec_id == CODEC_ID_NONE) {
720+ avctx->codec_id == AV_CODEC_ID_NONE) {
721721 avctx->codec_type = codec->type;
722722 avctx->codec_id = codec->id;
723723 }
@@ -1410,7 +1410,7 @@ av_cold int avcodec_close(AVCodecContext *avctx) · 686 unmodified lines
14101410 return 0;
14111411 }
14121412
1413−AVCodec *avcodec_find_encoder(enum CodecID id)
1413+AVCodec *avcodec_find_encoder(enum AVCodecID id)
14141414 {
14151415 AVCodec *p, *experimental=NULL;
14161416 p = first_avcodec;
@@ -1440,7 +1440,7 @@ AVCodec *avcodec_find_encoder_by_name(const char *name) · 23 unmodified lines
14401440 return NULL;
14411441 }
14421442
1443−AVCodec *avcodec_find_decoder(enum CodecID id)
1443+AVCodec *avcodec_find_decoder(enum AVCodecID id)
14441444 {
14451445 AVCodec *p;
14461446 p = first_avcodec;
@@ -1523,7 +1523,7 @@ void avcodec_string(char *buf, int buf_size, AVCodecContext *enc, int encode) · 76 unmodified lines
15231523 if (p) {
15241524 codec_name = p->name;
15251525 profile = av_get_profile_name(p, enc->profile);
1526− } else if (enc->codec_id == CODEC_ID_MPEG2TS) {
1526+ } else if (enc->codec_id == AV_CODEC_ID_MPEG2TS) {
15271527 /* fake mpeg2 transport stream codec (currently not
15281528 registered) */
15291529 codec_name = "mpeg2ts";
@@ -1713,61 +1713,61 @@ void avcodec_default_free_buffers(AVCodecContext *avctx) · 183 unmodified lines
17131713 }
17141714 }
17151715
1716−int av_get_exact_bits_per_sample(enum CodecID codec_id)
1716+int av_get_exact_bits_per_sample(enum AVCodecID codec_id)
17171717 {
17181718 switch(codec_id){
1719− case CODEC_ID_ADPCM_CT:
1720− case CODEC_ID_ADPCM_IMA_APC:
1721− case CODEC_ID_ADPCM_IMA_EA_SEAD:
1722− case CODEC_ID_ADPCM_IMA_WS:
1723− case CODEC_ID_ADPCM_G722:
1724− case CODEC_ID_ADPCM_YAMAHA:
1719+ case AV_CODEC_ID_ADPCM_CT:
1720+ case AV_CODEC_ID_ADPCM_IMA_APC:
1721+ case AV_CODEC_ID_ADPCM_IMA_EA_SEAD:
1722+ case AV_CODEC_ID_ADPCM_IMA_WS:
1723+ case AV_CODEC_ID_ADPCM_G722:
1724+ case AV_CODEC_ID_ADPCM_YAMAHA:
17251725 return 4;
1726− case CODEC_ID_PCM_ALAW:
1727− case CODEC_ID_PCM_MULAW:
1728− case CODEC_ID_PCM_S8:
1729− case CODEC_ID_PCM_U8:
1730− case CODEC_ID_PCM_ZORK:
1726+ case AV_CODEC_ID_PCM_ALAW:
1727+ case AV_CODEC_ID_PCM_MULAW:
1728+ case AV_CODEC_ID_PCM_S8:
1729+ case AV_CODEC_ID_PCM_U8:
1730+ case AV_CODEC_ID_PCM_ZORK:
17311731 return 8;
1732− case CODEC_ID_PCM_S16BE:
1733− case CODEC_ID_PCM_S16LE:
1734− case CODEC_ID_PCM_S16LE_PLANAR:
1735− case CODEC_ID_PCM_U16BE:
1736− case CODEC_ID_PCM_U16LE:
1732+ case AV_CODEC_ID_PCM_S16BE:
1733+ case AV_CODEC_ID_PCM_S16LE:
1734+ case AV_CODEC_ID_PCM_S16LE_PLANAR:
1735+ case AV_CODEC_ID_PCM_U16BE:
1736+ case AV_CODEC_ID_PCM_U16LE:
17371737 return 16;
1738− case CODEC_ID_PCM_S24DAUD:
1739− case CODEC_ID_PCM_S24BE:
1740− case CODEC_ID_PCM_S24LE:
1741− case CODEC_ID_PCM_U24BE:
1742− case CODEC_ID_PCM_U24LE:
1738+ case AV_CODEC_ID_PCM_S24DAUD:
1739+ case AV_CODEC_ID_PCM_S24BE:
1740+ case AV_CODEC_ID_PCM_S24LE:
1741+ case AV_CODEC_ID_PCM_U24BE:
1742+ case AV_CODEC_ID_PCM_U24LE:
17431743 return 24;
1744− case CODEC_ID_PCM_S32BE:
1745− case CODEC_ID_PCM_S32LE:
1746− case CODEC_ID_PCM_U32BE:
1747− case CODEC_ID_PCM_U32LE:
1748− case CODEC_ID_PCM_F32BE:
1749− case CODEC_ID_PCM_F32LE:
1744+ case AV_CODEC_ID_PCM_S32BE:
1745+ case AV_CODEC_ID_PCM_S32LE:
1746+ case AV_CODEC_ID_PCM_U32BE:
1747+ case AV_CODEC_ID_PCM_U32LE:
1748+ case AV_CODEC_ID_PCM_F32BE:
1749+ case AV_CODEC_ID_PCM_F32LE:
17501750 return 32;
1751− case CODEC_ID_PCM_F64BE:
1752− case CODEC_ID_PCM_F64LE:
1751+ case AV_CODEC_ID_PCM_F64BE:
1752+ case AV_CODEC_ID_PCM_F64LE:
17531753 return 64;
17541754 default:
17551755 return 0;
17561756 }
17571757 }
17581758
1759−int av_get_bits_per_sample(enum CodecID codec_id)
1759+int av_get_bits_per_sample(enum AVCodecID codec_id)
17601760 {
17611761 switch (codec_id) {
1762− case CODEC_ID_ADPCM_SBPRO_2:
1762+ case AV_CODEC_ID_ADPCM_SBPRO_2:
17631763 return 2;
1764− case CODEC_ID_ADPCM_SBPRO_3:
1764+ case AV_CODEC_ID_ADPCM_SBPRO_3:
17651765 return 3;
1766− case CODEC_ID_ADPCM_SBPRO_4:
1767− case CODEC_ID_ADPCM_IMA_WAV:
1768− case CODEC_ID_ADPCM_IMA_QT:
1769− case CODEC_ID_ADPCM_SWF:
1770− case CODEC_ID_ADPCM_MS:
1766+ case AV_CODEC_ID_ADPCM_SBPRO_4:
1767+ case AV_CODEC_ID_ADPCM_IMA_WAV:
1768+ case AV_CODEC_ID_ADPCM_IMA_QT:
1769+ case AV_CODEC_ID_ADPCM_SWF:
1770+ case AV_CODEC_ID_ADPCM_MS:
17711771 return 4;
17721772 default:
17731773 return av_get_exact_bits_per_sample(codec_id);
@@ -1792,47 +1792,47 @@ int av_get_audio_frame_duration(AVCodecContext *avctx, int frame_bytes) · 18 unmodified lines
17921792
17931793 /* codecs with a fixed packet duration */
17941794 switch (id) {
1795− case CODEC_ID_ADPCM_ADX: return 32;
1796− case CODEC_ID_ADPCM_IMA_QT: return 64;
1797− case CODEC_ID_ADPCM_EA_XAS: return 128;
1798− case CODEC_ID_AMR_NB:
1799− case CODEC_ID_GSM:
1800− case CODEC_ID_QCELP:
1801− case CODEC_ID_RA_144:
1802− case CODEC_ID_RA_288: return 160;
1803− case CODEC_ID_IMC: return 256;
1804− case CODEC_ID_AMR_WB:
1805− case CODEC_ID_GSM_MS: return 320;
1806− case CODEC_ID_MP1: return 384;
1807− case CODEC_ID_ATRAC1: return 512;
1808− case CODEC_ID_ATRAC3: return 1024;
1809− case CODEC_ID_MP2:
1810− case CODEC_ID_MUSEPACK7: return 1152;
1811− case CODEC_ID_AC3: return 1536;
1795+ case AV_CODEC_ID_ADPCM_ADX: return 32;
1796+ case AV_CODEC_ID_ADPCM_IMA_QT: return 64;
1797+ case AV_CODEC_ID_ADPCM_EA_XAS: return 128;
1798+ case AV_CODEC_ID_AMR_NB:
1799+ case AV_CODEC_ID_GSM:
1800+ case AV_CODEC_ID_QCELP:
1801+ case AV_CODEC_ID_RA_144:
1802+ case AV_CODEC_ID_RA_288: return 160;
1803+ case AV_CODEC_ID_IMC: return 256;
1804+ case AV_CODEC_ID_AMR_WB:
1805+ case AV_CODEC_ID_GSM_MS: return 320;
1806+ case AV_CODEC_ID_MP1: return 384;
1807+ case AV_CODEC_ID_ATRAC1: return 512;
1808+ case AV_CODEC_ID_ATRAC3: return 1024;
1809+ case AV_CODEC_ID_MP2:
1810+ case AV_CODEC_ID_MUSEPACK7: return 1152;
1811+ case AV_CODEC_ID_AC3: return 1536;
18121812 }
18131813
18141814 if (sr > 0) {
18151815 /* calc from sample rate */
1816− if (id == CODEC_ID_TTA)
1816+ if (id == AV_CODEC_ID_TTA)
18171817 return 256 * sr / 245;
18181818
18191819 if (ch > 0) {
18201820 /* calc from sample rate and channels */
1821− if (id == CODEC_ID_BINKAUDIO_DCT)
1821+ if (id == AV_CODEC_ID_BINKAUDIO_DCT)
18221822 return (480 << (sr / 22050)) / ch;
18231823 }
18241824 }
18251825
18261826 if (ba > 0) {
18271827 /* calc from block_align */
1828− if (id == CODEC_ID_SIPR) {
1828+ if (id == AV_CODEC_ID_SIPR) {
18291829 switch (ba) {
18301830 case 20: return 160;
18311831 case 19: return 144;
18321832 case 29: return 288;
18331833 case 37: return 480;
18341834 }
1835− } else if (id == CODEC_ID_ILBC) {
1835+ } else if (id == AV_CODEC_ID_ILBC) {
18361836 switch (ba) {
18371837 case 38: return 160;
18381838 case 50: return 240;
@@ -1842,46 +1842,46 @@ int av_get_audio_frame_duration(AVCodecContext *avctx, int frame_bytes) · 3 unmodified lines
18421842
18431843 if (frame_bytes > 0) {
18441844 /* calc from frame_bytes only */
1845− if (id == CODEC_ID_TRUESPEECH)
1845+ if (id == AV_CODEC_ID_TRUESPEECH)
18461846 return 240 * (frame_bytes / 32);
1847− if (id == CODEC_ID_NELLYMOSER)
1847+ if (id == AV_CODEC_ID_NELLYMOSER)
18481848 return 256 * (frame_bytes / 64);
18491849
18501850 if (bps > 0) {
18511851 /* calc from frame_bytes and bits_per_coded_sample */
1852− if (id == CODEC_ID_ADPCM_G726)
1852+ if (id == AV_CODEC_ID_ADPCM_G726)
18531853 return frame_bytes * 8 / bps;
18541854 }
18551855
18561856 if (ch > 0) {
18571857 /* calc from frame_bytes and channels */
18581858 switch (id) {
1859− case CODEC_ID_ADPCM_4XM:
1860− case CODEC_ID_ADPCM_IMA_ISS:
1859+ case AV_CODEC_ID_ADPCM_4XM:
1860+ case AV_CODEC_ID_ADPCM_IMA_ISS:
18611861 return (frame_bytes - 4 * ch) * 2 / ch;
1862− case CODEC_ID_ADPCM_IMA_SMJPEG:
1862+ case AV_CODEC_ID_ADPCM_IMA_SMJPEG:
18631863 return (frame_bytes - 4) * 2 / ch;
1864− case CODEC_ID_ADPCM_IMA_AMV:
1864+ case AV_CODEC_ID_ADPCM_IMA_AMV:
18651865 return (frame_bytes - 8) * 2 / ch;
1866− case CODEC_ID_ADPCM_XA:
1866+ case AV_CODEC_ID_ADPCM_XA:
18671867 return (frame_bytes / 128) * 224 / ch;
1868− case CODEC_ID_INTERPLAY_DPCM:
1868+ case AV_CODEC_ID_INTERPLAY_DPCM:
18691869 return (frame_bytes - 6 - ch) / ch;
1870− case CODEC_ID_ROQ_DPCM:
1870+ case AV_CODEC_ID_ROQ_DPCM:
18711871 return (frame_bytes - 8) / ch;
1872− case CODEC_ID_XAN_DPCM:
1872+ case AV_CODEC_ID_XAN_DPCM:
18731873 return (frame_bytes - 2 * ch) / ch;
1874− case CODEC_ID_MACE3:
1874+ case AV_CODEC_ID_MACE3:
18751875 return 3 * frame_bytes / ch;
1876− case CODEC_ID_MACE6:
1876+ case AV_CODEC_ID_MACE6:
18771877 return 6 * frame_bytes / ch;
1878− case CODEC_ID_PCM_LXF:
1878+ case AV_CODEC_ID_PCM_LXF:
18791879 return 2 * (frame_bytes / (5 * ch));
18801880 }
18811881
18821882 if (tag) {
18831883 /* calc from frame_bytes, channels, and codec_tag */
1884− if (id == CODEC_ID_SOL_DPCM) {
1884+ if (id == AV_CODEC_ID_SOL_DPCM) {
18851885 if (tag == 3)
18861886 return frame_bytes / ch;
18871887 else
@@ -1893,13 +1893,13 @@ int av_get_audio_frame_duration(AVCodecContext *avctx, int frame_bytes) · 5 unmodified lines
18931893 /* calc from frame_bytes, channels, and block_align */
18941894 int blocks = frame_bytes / ba;
18951895 switch (avctx->codec_id) {
1896− case CODEC_ID_ADPCM_IMA_WAV:
1896+ case AV_CODEC_ID_ADPCM_IMA_WAV:
18971897 return blocks * (1 + (ba - 4 * ch) / (4 * ch) * 8);
1898− case CODEC_ID_ADPCM_IMA_DK3:
1898+ case AV_CODEC_ID_ADPCM_IMA_DK3:
18991899 return blocks * (((ba - 16) * 2 / 3 * 4) / ch);
1900− case CODEC_ID_ADPCM_IMA_DK4:
1900+ case AV_CODEC_ID_ADPCM_IMA_DK4:
19011901 return blocks * (1 + (ba - 4 * ch) * 2 / ch);
1902− case CODEC_ID_ADPCM_MS:
1902+ case AV_CODEC_ID_ADPCM_MS:
19031903 return blocks * (2 + (ba - 7 * ch) * 2 / ch);
19041904 }
19051905 }
@@ -1907,11 +1907,11 @@ int av_get_audio_frame_duration(AVCodecContext *avctx, int frame_bytes) · 1 unmodified line
19071907 if (bps > 0) {
19081908 /* calc from frame_bytes, channels, and bits_per_coded_sample */
19091909 switch (avctx->codec_id) {
1910− case CODEC_ID_PCM_DVD:
1910+ case AV_CODEC_ID_PCM_DVD:
19111911 return 2 * (frame_bytes / ((bps * 2 / 8) * ch));
1912− case CODEC_ID_PCM_BLURAY:
1912+ case AV_CODEC_ID_PCM_BLURAY:
19131913 return frame_bytes / ((FFALIGN(ch, 2) * bps) / 8);
1914− case CODEC_ID_S302M:
1914+ case AV_CODEC_ID_S302M:
19151915 return 2 * (frame_bytes / ((bps + 4) / 4)) / ch;
19161916 }
19171917 }
@@ -1988,7 +1988,7 @@ AVHWAccel *av_hwaccel_next(AVHWAccel *hwaccel) · 70 unmodified lines
19881988 return hwaccel ? hwaccel->next : first_hwaccel;
19891989 }
19901990
1991−AVHWAccel *ff_find_hwaccel(enum CodecID codec_id, enum PixelFormat pix_fmt)
1991+AVHWAccel *ff_find_hwaccel(enum AVCodecID codec_id, enum PixelFormat pix_fmt)
19921992 {
19931993 AVHWAccel *hwaccel=NULL;
19941994
@@ -2073,15 +2073,15 @@ void ff_thread_await_progress(AVFrame *f, int progress, int field) · 78 unmodified lines
20732073
20742074 #endif
20752075
2076−enum AVMediaType avcodec_get_type(enum CodecID codec_id)
2076+enum AVMediaType avcodec_get_type(enum AVCodecID codec_id)
20772077 {
2078− if (codec_id <= CODEC_ID_NONE)
2078+ if (codec_id <= AV_CODEC_ID_NONE)
20792079 return AVMEDIA_TYPE_UNKNOWN;
2080− else if (codec_id < CODEC_ID_FIRST_AUDIO)
2080+ else if (codec_id < AV_CODEC_ID_FIRST_AUDIO)
20812081 return AVMEDIA_TYPE_VIDEO;
2082− else if (codec_id < CODEC_ID_FIRST_SUBTITLE)
2082+ else if (codec_id < AV_CODEC_ID_FIRST_SUBTITLE)
20832083 return AVMEDIA_TYPE_AUDIO;
2084− else if (codec_id < CODEC_ID_FIRST_UNKNOWN)
2084+ else if (codec_id < AV_CODEC_ID_FIRST_UNKNOWN)
20852085 return AVMEDIA_TYPE_SUBTITLE;
20862086
20872087 return AVMEDIA_TYPE_UNKNOWN;
libavcodec/utvideo.c+1−1
@@ -581,7 +581,7 @@ static av_cold int decode_end(AVCodecContext *avctx) · 580 unmodified lines
581581 AVCodec ff_utvideo_decoder = {
582582 .name = "utvideo",
583583 .type = AVMEDIA_TYPE_VIDEO,
584− .id = CODEC_ID_UTVIDEO,
584+ .id = AV_CODEC_ID_UTVIDEO,
585585 .priv_data_size = sizeof(UtvideoContext),
586586 .init = decode_init,
587587 .close = decode_end,
libavcodec/v210dec.c+1−1
@@ -125,7 +125,7 @@ static av_cold int decode_close(AVCodecContext *avctx) · 124 unmodified lines
125125 AVCodec ff_v210_decoder = {
126126 .name = "v210",
127127 .type = AVMEDIA_TYPE_VIDEO,
128− .id = CODEC_ID_V210,
128+ .id = AV_CODEC_ID_V210,
129129 .init = decode_init,
130130 .close = decode_close,
131131 .decode = decode_frame,
libavcodec/v210enc.c+1−1
@@ -119,7 +119,7 @@ static av_cold int encode_close(AVCodecContext *avctx) · 118 unmodified lines
119119 AVCodec ff_v210_encoder = {
120120 .name = "v210",
121121 .type = AVMEDIA_TYPE_VIDEO,
122− .id = CODEC_ID_V210,
122+ .id = AV_CODEC_ID_V210,
123123 .init = encode_init,
124124 .encode2 = encode_frame,
125125 .close = encode_close,
libavcodec/v210x.c+1−1
@@ -135,7 +135,7 @@ static av_cold int decode_close(AVCodecContext *avctx) · 134 unmodified lines
135135 AVCodec ff_v210x_decoder = {
136136 .name = "v210x",
137137 .type = AVMEDIA_TYPE_VIDEO,
138− .id = CODEC_ID_V210X,
138+ .id = AV_CODEC_ID_V210X,
139139 .init = decode_init,
140140 .close = decode_close,
141141 .decode = decode_frame,
libavcodec/v410dec.c+1−1
@@ -113,7 +113,7 @@ static av_cold int v410_decode_close(AVCodecContext *avctx) · 112 unmodified lines
113113 AVCodec ff_v410_decoder = {
114114 .name = "v410",
115115 .type = AVMEDIA_TYPE_VIDEO,
116− .id = CODEC_ID_V410,
116+ .id = AV_CODEC_ID_V410,
117117 .init = v410_decode_init,
118118 .decode = v410_decode_frame,
119119 .close = v410_decode_close,
libavcodec/v410enc.c+1−1
@@ -91,7 +91,7 @@ static av_cold int v410_encode_close(AVCodecContext *avctx) · 90 unmodified lines
9191 AVCodec ff_v410_encoder = {
9292 .name = "v410",
9393 .type = AVMEDIA_TYPE_VIDEO,
94− .id = CODEC_ID_V410,
94+ .id = AV_CODEC_ID_V410,
9595 .init = v410_encode_init,
9696 .encode2 = v410_encode_frame,
9797 .close = v410_encode_close,
libavcodec/vaapi_h264.c+1−1
@@ -339,7 +339,7 @@ static int decode_slice(AVCodecContext *avctx, · 338 unmodified lines
339339 AVHWAccel ff_h264_vaapi_hwaccel = {
340340 .name = "h264_vaapi",
341341 .type = AVMEDIA_TYPE_VIDEO,
342− .id = CODEC_ID_H264,
342+ .id = AV_CODEC_ID_H264,
343343 .pix_fmt = PIX_FMT_VAAPI_VLD,
344344 .start_frame = start_frame,
345345 .end_frame = end_frame,
libavcodec/vaapi_mpeg2.c+1−1
@@ -141,7 +141,7 @@ static int vaapi_mpeg2_decode_slice(AVCodecContext *avctx, const uint8_t *buffer · 140 unmodified lines
141141 AVHWAccel ff_mpeg2_vaapi_hwaccel = {
142142 .name = "mpeg2_vaapi",
143143 .type = AVMEDIA_TYPE_VIDEO,
144− .id = CODEC_ID_MPEG2VIDEO,
144+ .id = AV_CODEC_ID_MPEG2VIDEO,
145145 .pix_fmt = PIX_FMT_VAAPI_VLD,
146146 .start_frame = vaapi_mpeg2_start_frame,
147147 .end_frame = vaapi_mpeg2_end_frame,
libavcodec/vaapi_mpeg4.c+5−5
@@ -60,7 +60,7 @@ static int vaapi_mpeg4_start_frame(AVCodecContext *avctx, av_unused const uint8_ · 59 unmodified lines
6060 pic_param->forward_reference_picture = VA_INVALID_ID;
6161 pic_param->backward_reference_picture = VA_INVALID_ID;
6262 pic_param->vol_fields.value = 0; /* reset all bits */
63− pic_param->vol_fields.bits.short_video_header = avctx->codec->id == CODEC_ID_H263;
63+ pic_param->vol_fields.bits.short_video_header = avctx->codec->id == AV_CODEC_ID_H263;
6464 pic_param->vol_fields.bits.chroma_format = CHROMA_420;
6565 pic_param->vol_fields.bits.interlaced = !s->progressive_sequence;
6666 pic_param->vol_fields.bits.obmc_disable = 1;
@@ -132,7 +132,7 @@ static int vaapi_mpeg4_decode_slice(AVCodecContext *avctx, const uint8_t *buffer · 65 unmodified lines
132132 * a single slice param. So fake macroblock_number for Libav so
133133 * that we don't call vaapi_mpeg4_decode_slice() again
134134 */
135− if (avctx->codec->id == CODEC_ID_H263)
135+ if (avctx->codec->id == AV_CODEC_ID_H263)
136136 size = s->gb.buffer_end - buffer;
137137
138138 /* Fill in VASliceParameterBufferMPEG4 */
@@ -143,7 +143,7 @@ static int vaapi_mpeg4_decode_slice(AVCodecContext *avctx, const uint8_t *buffer · 4 unmodified lines
143143 slice_param->macroblock_number = s->mb_y * s->mb_width + s->mb_x;
144144 slice_param->quant_scale = s->qscale;
145145
146− if (avctx->codec->id == CODEC_ID_H263)
146+ if (avctx->codec->id == AV_CODEC_ID_H263)
147147 s->mb_y = s->mb_height;
148148
149149 return 0;
@@ -153,7 +153,7 @@ static int vaapi_mpeg4_decode_slice(AVCodecContext *avctx, const uint8_t *buffer · 3 unmodified lines
153153 AVHWAccel ff_mpeg4_vaapi_hwaccel = {
154154 .name = "mpeg4_vaapi",
155155 .type = AVMEDIA_TYPE_VIDEO,
156− .id = CODEC_ID_MPEG4,
156+ .id = AV_CODEC_ID_MPEG4,
157157 .pix_fmt = PIX_FMT_VAAPI_VLD,
158158 .start_frame = vaapi_mpeg4_start_frame,
159159 .end_frame = vaapi_mpeg4_end_frame,
@@ -165,7 +165,7 @@ AVHWAccel ff_mpeg4_vaapi_hwaccel = { · 5 unmodified lines
165165 AVHWAccel ff_h263_vaapi_hwaccel = {
166166 .name = "h263_vaapi",
167167 .type = AVMEDIA_TYPE_VIDEO,
168− .id = CODEC_ID_H263,
168+ .id = AV_CODEC_ID_H263,
169169 .pix_fmt = PIX_FMT_VAAPI_VLD,
170170 .start_frame = vaapi_mpeg4_start_frame,
171171 .end_frame = vaapi_mpeg4_end_frame,
libavcodec/vaapi_vc1.c+3−3
@@ -326,7 +326,7 @@ static int vaapi_vc1_decode_slice(AVCodecContext *avctx, const uint8_t *buffer, · 325 unmodified lines
326326 av_dlog(avctx, "vaapi_vc1_decode_slice(): buffer %p, size %d\n", buffer, size);
327327
328328 /* Current bit buffer is beyond any marker for VC-1, so skip it */
329− if (avctx->codec_id == CODEC_ID_VC1 && IS_MARKER(AV_RB32(buffer))) {
329+ if (avctx->codec_id == AV_CODEC_ID_VC1 && IS_MARKER(AV_RB32(buffer))) {
330330 buffer += 4;
331331 size -= 4;
332332 }
@@ -344,7 +344,7 @@ static int vaapi_vc1_decode_slice(AVCodecContext *avctx, const uint8_t *buffer, · 11 unmodified lines
344344 AVHWAccel ff_wmv3_vaapi_hwaccel = {
345345 .name = "wmv3_vaapi",
346346 .type = AVMEDIA_TYPE_VIDEO,
347− .id = CODEC_ID_WMV3,
347+ .id = AV_CODEC_ID_WMV3,
348348 .pix_fmt = PIX_FMT_VAAPI_VLD,
349349 .start_frame = vaapi_vc1_start_frame,
350350 .end_frame = vaapi_vc1_end_frame,
@@ -355,7 +355,7 @@ AVHWAccel ff_wmv3_vaapi_hwaccel = { · 4 unmodified lines
355355 AVHWAccel ff_vc1_vaapi_hwaccel = {
356356 .name = "vc1_vaapi",
357357 .type = AVMEDIA_TYPE_VIDEO,
358− .id = CODEC_ID_VC1,
358+ .id = AV_CODEC_ID_VC1,
359359 .pix_fmt = PIX_FMT_VAAPI_VLD,
360360 .start_frame = vaapi_vc1_start_frame,
361361 .end_frame = vaapi_vc1_end_frame,
libavcodec/vb.c+1−1
@@ -269,7 +269,7 @@ static av_cold int decode_end(AVCodecContext *avctx) · 268 unmodified lines
269269 AVCodec ff_vb_decoder = {
270270 .name = "vb",
271271 .type = AVMEDIA_TYPE_VIDEO,
272− .id = CODEC_ID_VB,
272+ .id = AV_CODEC_ID_VB,
273273 .priv_data_size = sizeof(VBDecContext),
274274 .init = decode_init,
275275 .close = decode_end,
libavcodec/vble.c+1−1
@@ -219,7 +219,7 @@ static av_cold int vble_decode_init(AVCodecContext *avctx) · 218 unmodified lines
219219 AVCodec ff_vble_decoder = {
220220 .name = "vble",
221221 .type = AVMEDIA_TYPE_VIDEO,
222− .id = CODEC_ID_VBLE,
222+ .id = AV_CODEC_ID_VBLE,
223223 .priv_data_size = sizeof(VBLEContext),
224224 .init = vble_decode_init,
225225 .close = vble_decode_close,
libavcodec/vc1_parser.c+1−1
@@ -192,7 +192,7 @@ static int vc1_parse_init(AVCodecParserContext *s) · 191 unmodified lines
192192 }
193193
194194 AVCodecParser ff_vc1_parser = {
195− .codec_ids = { CODEC_ID_VC1 },
195+ .codec_ids = { AV_CODEC_ID_VC1 },
196196 .priv_data_size = sizeof(VC1ParseContext),
197197 .parser_init = vc1_parse_init,
198198 .parser_parse = vc1_parse,
libavcodec/vc1dec.c+16−16
@@ -4890,7 +4890,7 @@ static void vc1_parse_sprites(VC1Context *v, GetBitContext* gb, SpriteData* sd) · 4889 unmodified lines
48904890 av_log(avctx, AV_LOG_DEBUG, "Effect flag set\n");
48914891
48924892 if (get_bits_count(gb) >= gb->size_in_bits +
4893− (avctx->codec_id == CODEC_ID_WMV3IMAGE ? 64 : 0))
4893+ (avctx->codec_id == AV_CODEC_ID_WMV3IMAGE ? 64 : 0))
48944894 av_log(avctx, AV_LOG_ERROR, "Buffer overrun\n");
48954895 if (get_bits_count(gb) < gb->size_in_bits - 8)
48964896 av_log(avctx, AV_LOG_WARNING, "Buffer not fully read\n");
@@ -5099,7 +5099,7 @@ static av_cold int vc1_decode_init_alloc_tables(VC1Context *v) · 202 unmodified lines
50995099
51005100 ff_intrax8_common_init(&v->x8,s);
51015101
5102− if (s->avctx->codec_id == CODEC_ID_WMV3IMAGE || s->avctx->codec_id == CODEC_ID_VC1IMAGE) {
5102+ if (s->avctx->codec_id == AV_CODEC_ID_WMV3IMAGE || s->avctx->codec_id == AV_CODEC_ID_VC1IMAGE) {
51035103 for (i = 0; i < 4; i++)
51045104 if (!(v->sr_rows[i >> 1][i & 1] = av_malloc(v->output_width))) return -1;
51055105 }
@@ -5146,7 +5146,7 @@ static av_cold int vc1_decode_init(AVCodecContext *avctx) · 40 unmodified lines
51465146 return -1;
51475147 ff_vc1dsp_init(&v->vc1dsp);
51485148
5149− if (avctx->codec_id == CODEC_ID_WMV3 || avctx->codec_id == CODEC_ID_WMV3IMAGE) {
5149+ if (avctx->codec_id == AV_CODEC_ID_WMV3 || avctx->codec_id == AV_CODEC_ID_WMV3IMAGE) {
51505150 int count = 0;
51515151
51525152 // looks like WMV3 has a sequence header stored in the extradata
@@ -5240,7 +5240,7 @@ static av_cold int vc1_decode_init(AVCodecContext *avctx) · 87 unmodified lines
52405240 v->top_blk_sh = 0;
52415241 }
52425242
5243− if (avctx->codec_id == CODEC_ID_WMV3IMAGE || avctx->codec_id == CODEC_ID_VC1IMAGE) {
5243+ if (avctx->codec_id == AV_CODEC_ID_WMV3IMAGE || avctx->codec_id == AV_CODEC_ID_VC1IMAGE) {
52445244 v->sprite_width = avctx->coded_width;
52455245 v->sprite_height = avctx->coded_height;
52465246
@@ -5264,7 +5264,7 @@ static av_cold int vc1_decode_end(AVCodecContext *avctx) · 17 unmodified lines
52645264 VC1Context *v = avctx->priv_data;
52655265 int i;
52665266
5267− if ((avctx->codec_id == CODEC_ID_WMV3IMAGE || avctx->codec_id == CODEC_ID_VC1IMAGE)
5267+ if ((avctx->codec_id == AV_CODEC_ID_WMV3IMAGE || avctx->codec_id == AV_CODEC_ID_VC1IMAGE)
52685268 && v->sprite_output_frame.data[0])
52695269 avctx->release_buffer(avctx, &v->sprite_output_frame);
52705270 for (i = 0; i < 4; i++)
@@ -5334,7 +5334,7 @@ static int vc1_decode_frame(AVCodecContext *avctx, void *data, · 63 unmodified lines
53345334 }
53355335
53365336 //for advanced profile we may need to parse and unescape data
5337− if (avctx->codec_id == CODEC_ID_VC1 || avctx->codec_id == CODEC_ID_VC1IMAGE) {
5337+ if (avctx->codec_id == AV_CODEC_ID_VC1 || avctx->codec_id == AV_CODEC_ID_VC1IMAGE) {
53385338 int buf_size2 = 0;
53395339 buf2 = av_mallocz(buf_size + FF_INPUT_BUFFER_PADDING_SIZE);
53405340
@@ -5430,11 +5430,11 @@ static int vc1_decode_frame(AVCodecContext *avctx, void *data, · 89 unmodified lines
54305430 if (v->res_sprite) {
54315431 v->new_sprite = !get_bits1(&s->gb);
54325432 v->two_sprites = get_bits1(&s->gb);
5433− /* res_sprite means a Windows Media Image stream, CODEC_ID_*IMAGE means
5433+ /* res_sprite means a Windows Media Image stream, AV_CODEC_ID_*IMAGE means
54345434 we're using the sprite compositor. These are intentionally kept separate
54355435 so you can get the raw sprites by using the wmv3 decoder for WMVP or
54365436 the vc1 one for WVP2 */
5437− if (avctx->codec_id == CODEC_ID_WMV3IMAGE || avctx->codec_id == CODEC_ID_VC1IMAGE) {
5437+ if (avctx->codec_id == AV_CODEC_ID_WMV3IMAGE || avctx->codec_id == AV_CODEC_ID_VC1IMAGE) {
54385438 if (v->new_sprite) {
54395439 // switch AVCodecContext parameters to those of the sprites
54405440 avctx->width = avctx->coded_width = v->sprite_width;
@@ -5484,7 +5484,7 @@ static int vc1_decode_frame(AVCodecContext *avctx, void *data, · 43 unmodified lines
54845484 }
54855485 }
54865486
5487− if ((avctx->codec_id == CODEC_ID_WMV3IMAGE || avctx->codec_id == CODEC_ID_VC1IMAGE)
5487+ if ((avctx->codec_id == AV_CODEC_ID_WMV3IMAGE || avctx->codec_id == AV_CODEC_ID_VC1IMAGE)
54885488 && s->pict_type != AV_PICTURE_TYPE_I) {
54895489 av_log(v->s.avctx, AV_LOG_ERROR, "Sprite decoder: expected I-frame\n");
54905490 goto err;
@@ -5621,7 +5621,7 @@ static int vc1_decode_frame(AVCodecContext *avctx, void *data, · 130 unmodified lines
56215621
56225622 ff_MPV_frame_end(s);
56235623
5624− if (avctx->codec_id == CODEC_ID_WMV3IMAGE || avctx->codec_id == CODEC_ID_VC1IMAGE) {
5624+ if (avctx->codec_id == AV_CODEC_ID_WMV3IMAGE || avctx->codec_id == AV_CODEC_ID_VC1IMAGE) {
56255625 image:
56265626 avctx->width = avctx->coded_width = v->output_width;
56275627 avctx->height = avctx->coded_height = v->output_height;
@@ -5672,7 +5672,7 @@ static const AVProfile profiles[] = { · 44 unmodified lines
56725672 AVCodec ff_vc1_decoder = {
56735673 .name = "vc1",
56745674 .type = AVMEDIA_TYPE_VIDEO,
5675− .id = CODEC_ID_VC1,
5675+ .id = AV_CODEC_ID_VC1,
56765676 .priv_data_size = sizeof(VC1Context),
56775677 .init = vc1_decode_init,
56785678 .close = vc1_decode_end,
@@ -5687,7 +5687,7 @@ AVCodec ff_vc1_decoder = { · 8 unmodified lines
56875687 AVCodec ff_wmv3_decoder = {
56885688 .name = "wmv3",
56895689 .type = AVMEDIA_TYPE_VIDEO,
5690− .id = CODEC_ID_WMV3,
5690+ .id = AV_CODEC_ID_WMV3,
56915691 .priv_data_size = sizeof(VC1Context),
56925692 .init = vc1_decode_init,
56935693 .close = vc1_decode_end,
@@ -5703,7 +5703,7 @@ AVCodec ff_wmv3_decoder = { · 9 unmodified lines
57035703 AVCodec ff_wmv3_vdpau_decoder = {
57045704 .name = "wmv3_vdpau",
57055705 .type = AVMEDIA_TYPE_VIDEO,
5706− .id = CODEC_ID_WMV3,
5706+ .id = AV_CODEC_ID_WMV3,
57075707 .priv_data_size = sizeof(VC1Context),
57085708 .init = vc1_decode_init,
57095709 .close = vc1_decode_end,
@@ -5719,7 +5719,7 @@ AVCodec ff_wmv3_vdpau_decoder = { · 9 unmodified lines
57195719 AVCodec ff_vc1_vdpau_decoder = {
57205720 .name = "vc1_vdpau",
57215721 .type = AVMEDIA_TYPE_VIDEO,
5722− .id = CODEC_ID_VC1,
5722+ .id = AV_CODEC_ID_VC1,
57235723 .priv_data_size = sizeof(VC1Context),
57245724 .init = vc1_decode_init,
57255725 .close = vc1_decode_end,
@@ -5735,7 +5735,7 @@ AVCodec ff_vc1_vdpau_decoder = { · 9 unmodified lines
57355735 AVCodec ff_wmv3image_decoder = {
57365736 .name = "wmv3image",
57375737 .type = AVMEDIA_TYPE_VIDEO,
5738− .id = CODEC_ID_WMV3IMAGE,
5738+ .id = AV_CODEC_ID_WMV3IMAGE,
57395739 .priv_data_size = sizeof(VC1Context),
57405740 .init = vc1_decode_init,
57415741 .close = vc1_decode_end,
@@ -5751,7 +5751,7 @@ AVCodec ff_wmv3image_decoder = { · 9 unmodified lines
57515751 AVCodec ff_vc1image_decoder = {
57525752 .name = "vc1image",
57535753 .type = AVMEDIA_TYPE_VIDEO,
5754− .id = CODEC_ID_VC1IMAGE,
5754+ .id = AV_CODEC_ID_VC1IMAGE,
57555755 .priv_data_size = sizeof(VC1Context),
57565756 .init = vc1_decode_init,
57575757 .close = vc1_decode_end,
libavcodec/vcr1.c+2−2
@@ -139,7 +139,7 @@ static int vcr1_decode_frame(AVCodecContext *avctx, void *data, · 138 unmodified lines
139139 AVCodec ff_vcr1_decoder = {
140140 .name = "vcr1",
141141 .type = AVMEDIA_TYPE_VIDEO,
142− .id = CODEC_ID_VCR1,
142+ .id = AV_CODEC_ID_VCR1,
143143 .priv_data_size = sizeof(VCR1Context),
144144 .init = vcr1_decode_init,
145145 .close = vcr1_decode_end,
@@ -179,7 +179,7 @@ static int vcr1_encode_frame(AVCodecContext *avctx, unsigned char *buf, · 33 unmodified lines
179179 AVCodec ff_vcr1_encoder = {
180180 .name = "vcr1",
181181 .type = AVMEDIA_TYPE_VIDEO,
182− .id = CODEC_ID_VCR1,
182+ .id = AV_CODEC_ID_VCR1,
183183 .priv_data_size = sizeof(VCR1Context),
184184 .init = vcr1_common_init,
185185 .encode = vcr1_encode_frame,
libavcodec/vda_h264.c+1−1
@@ -100,7 +100,7 @@ static int end_frame(AVCodecContext *avctx) · 99 unmodified lines
100100 AVHWAccel ff_h264_vda_hwaccel = {
101101 .name = "h264_vda",
102102 .type = AVMEDIA_TYPE_VIDEO,
103− .id = CODEC_ID_H264,
103+ .id = AV_CODEC_ID_H264,
104104 .pix_fmt = PIX_FMT_VDA_VLD,
105105 .start_frame = start_frame,
106106 .decode_slice = decode_slice,
libavcodec/vdpau.c+1−1
@@ -340,7 +340,7 @@ void ff_vdpau_mpeg4_decode_picture(MpegEncContext *s, const uint8_t *buf, · 339 unmodified lines
340340 render->info.mpeg4.interlaced = !s->progressive_sequence;
341341 render->info.mpeg4.quant_type = s->mpeg_quant;
342342 render->info.mpeg4.quarter_sample = s->quarter_sample;
343− render->info.mpeg4.short_video_header = s->avctx->codec->id == CODEC_ID_H263;
343+ render->info.mpeg4.short_video_header = s->avctx->codec->id == AV_CODEC_ID_H263;
344344 render->info.mpeg4.rounding_control = s->no_rounding;
345345 render->info.mpeg4.alternate_vertical_scan_flag = s->alternate_scan;
346346 render->info.mpeg4.top_field_first = s->top_field_first;
libavcodec/vmdav.c+2−2
@@ -652,7 +652,7 @@ static int vmdaudio_decode_frame(AVCodecContext *avctx, void *data, · 651 unmodified lines
652652 AVCodec ff_vmdvideo_decoder = {
653653 .name = "vmdvideo",
654654 .type = AVMEDIA_TYPE_VIDEO,
655− .id = CODEC_ID_VMDVIDEO,
655+ .id = AV_CODEC_ID_VMDVIDEO,
656656 .priv_data_size = sizeof(VmdVideoContext),
657657 .init = vmdvideo_decode_init,
658658 .close = vmdvideo_decode_end,
@@ -664,7 +664,7 @@ AVCodec ff_vmdvideo_decoder = { · 5 unmodified lines
664664 AVCodec ff_vmdaudio_decoder = {
665665 .name = "vmdaudio",
666666 .type = AVMEDIA_TYPE_AUDIO,
667− .id = CODEC_ID_VMDAUDIO,
667+ .id = AV_CODEC_ID_VMDAUDIO,
668668 .priv_data_size = sizeof(VmdAudioContext),
669669 .init = vmdaudio_decode_init,
670670 .decode = vmdaudio_decode_frame,
libavcodec/vmnc.c+1−1
@@ -512,7 +512,7 @@ static av_cold int decode_end(AVCodecContext *avctx) · 511 unmodified lines
512512 AVCodec ff_vmnc_decoder = {
513513 .name = "vmnc",
514514 .type = AVMEDIA_TYPE_VIDEO,
515− .id = CODEC_ID_VMNC,
515+ .id = AV_CODEC_ID_VMNC,
516516 .priv_data_size = sizeof(VmncContext),
517517 .init = decode_init,
518518 .close = decode_end,
libavcodec/vorbis_parser.c+1−1
@@ -263,7 +263,7 @@ end: · 262 unmodified lines
263263 }
264264
265265 AVCodecParser ff_vorbis_parser = {
266− .codec_ids = { CODEC_ID_VORBIS },
266+ .codec_ids = { AV_CODEC_ID_VORBIS },
267267 .priv_data_size = sizeof(VorbisParseContext),
268268 .parser_parse = vorbis_parse,
269269 };
libavcodec/vorbisdec.c+1−1
@@ -1730,7 +1730,7 @@ static av_cold void vorbis_decode_flush(AVCodecContext *avccontext) · 1729 unmodified lines
17301730 AVCodec ff_vorbis_decoder = {
17311731 .name = "vorbis",
17321732 .type = AVMEDIA_TYPE_AUDIO,
1733− .id = CODEC_ID_VORBIS,
1733+ .id = AV_CODEC_ID_VORBIS,
17341734 .priv_data_size = sizeof(vorbis_context),
17351735 .init = vorbis_decode_init,
17361736 .close = vorbis_decode_close,
libavcodec/vorbisenc.c+1−1
@@ -1209,7 +1209,7 @@ error: · 1208 unmodified lines
12091209 AVCodec ff_vorbis_encoder = {
12101210 .name = "vorbis",
12111211 .type = AVMEDIA_TYPE_AUDIO,
1212− .id = CODEC_ID_VORBIS,
1212+ .id = AV_CODEC_ID_VORBIS,
12131213 .priv_data_size = sizeof(vorbis_enc_context),
12141214 .init = vorbis_encode_init,
12151215 .encode2 = vorbis_encode_frame,
libavcodec/vp3.c+2−2
@@ -2377,7 +2377,7 @@ static av_cold int theora_decode_init(AVCodecContext *avctx) · 2376 unmodified lines
23772377 AVCodec ff_theora_decoder = {
23782378 .name = "theora",
23792379 .type = AVMEDIA_TYPE_VIDEO,
2380− .id = CODEC_ID_THEORA,
2380+ .id = AV_CODEC_ID_THEORA,
23812381 .priv_data_size = sizeof(Vp3DecodeContext),
23822382 .init = theora_decode_init,
23832383 .close = vp3_decode_end,
@@ -2394,7 +2394,7 @@ AVCodec ff_theora_decoder = { · 10 unmodified lines
23942394 AVCodec ff_vp3_decoder = {
23952395 .name = "vp3",
23962396 .type = AVMEDIA_TYPE_VIDEO,
2397− .id = CODEC_ID_VP3,
2397+ .id = AV_CODEC_ID_VP3,
23982398 .priv_data_size = sizeof(Vp3DecodeContext),
23992399 .init = vp3_decode_init,
24002400 .close = vp3_decode_end,
libavcodec/vp3_parser.c+3−3
@@ -25,7 +25,7 @@ static int parse(AVCodecParserContext *s, · 24 unmodified lines
2525 const uint8_t **poutbuf, int *poutbuf_size,
2626 const uint8_t *buf, int buf_size)
2727 {
28− if(avctx->codec_id == CODEC_ID_THEORA)
28+ if(avctx->codec_id == AV_CODEC_ID_THEORA)
2929 s->pict_type= (buf[0]&0x40) ? AV_PICTURE_TYPE_P : AV_PICTURE_TYPE_I;
3030 else
3131 s->pict_type= (buf[0]&0x80) ? AV_PICTURE_TYPE_P : AV_PICTURE_TYPE_I;
@@ -36,7 +36,7 @@ static int parse(AVCodecParserContext *s, · 4 unmodified lines
3636 }
3737
3838 AVCodecParser ff_vp3_parser = {
39− .codec_ids = { CODEC_ID_THEORA, CODEC_ID_VP3, CODEC_ID_VP6,
40− CODEC_ID_VP6F, CODEC_ID_VP6A },
39+ .codec_ids = { AV_CODEC_ID_THEORA, AV_CODEC_ID_VP3, AV_CODEC_ID_VP6,
40+ AV_CODEC_ID_VP6F, AV_CODEC_ID_VP6A },
4141 .parser_parse = parse,
4242 };
libavcodec/vp5.c+1−1
@@ -281,7 +281,7 @@ static av_cold int vp5_decode_init(AVCodecContext *avctx) · 280 unmodified lines
281281 AVCodec ff_vp5_decoder = {
282282 .name = "vp5",
283283 .type = AVMEDIA_TYPE_VIDEO,
284− .id = CODEC_ID_VP5,
284+ .id = AV_CODEC_ID_VP5,
285285 .priv_data_size = sizeof(VP56Context),
286286 .init = vp5_decode_init,
287287 .close = ff_vp56_free,
libavcodec/vp56.c+2−2
@@ -196,7 +196,7 @@ static void vp56_decode_4mv(VP56Context *s, int row, int col) · 195 unmodified lines
196196 s->macroblocks[row * s->mb_width + col].mv = s->mv[3];
197197
198198 /* chroma vectors are average luma vectors */
199− if (s->avctx->codec->id == CODEC_ID_VP5) {
199+ if (s->avctx->codec->id == AV_CODEC_ID_VP5) {
200200 s->mv[4].x = s->mv[5].x = RSHIFT(mv.x,2);
201201 s->mv[4].y = s->mv[5].y = RSHIFT(mv.y,2);
202202 } else {
@@ -281,7 +281,7 @@ static void vp56_add_predictors_dc(VP56Context *s, VP56Frame ref_frame) · 78 unmodified lines
281281 dc += ab->dc_coeff;
282282 count++;
283283 }
284− if (s->avctx->codec->id == CODEC_ID_VP5)
284+ if (s->avctx->codec->id == AV_CODEC_ID_VP5)
285285 for (i=0; i<2; i++)
286286 if (count < 2 && ref_frame == ab[-1+2*i].ref_frame) {
287287 dc += ab[-1+2*i].dc_coeff;
libavcodec/vp56dsp.c+2−2
@@ -74,9 +74,9 @@ VP56_EDGE_FILTER(vp5, ver, stride, 1) · 73 unmodified lines
7474 VP56_EDGE_FILTER(vp6, hor, 1, stride)
7575 VP56_EDGE_FILTER(vp6, ver, stride, 1)
7676
77−void ff_vp56dsp_init(VP56DSPContext *s, enum CodecID codec)
77+void ff_vp56dsp_init(VP56DSPContext *s, enum AVCodecID codec)
7878 {
79− if (codec == CODEC_ID_VP5) {
79+ if (codec == AV_CODEC_ID_VP5) {
8080 s->edge_filter_hor = vp5_edge_filter_hor;
8181 s->edge_filter_ver = vp5_edge_filter_ver;
8282 } else {
libavcodec/vp56dsp.h+3−3
@@ -35,8 +35,8 @@ typedef struct VP56DSPContext { · 34 unmodified lines
3535 void ff_vp6_filter_diag4_c(uint8_t *dst, uint8_t *src, int stride,
3636 const int16_t *h_weights, const int16_t *v_weights);
3737
38−void ff_vp56dsp_init(VP56DSPContext *s, enum CodecID codec);
39−void ff_vp56dsp_init_arm(VP56DSPContext *s, enum CodecID codec);
40−void ff_vp56dsp_init_x86(VP56DSPContext* c, enum CodecID codec);
38+void ff_vp56dsp_init(VP56DSPContext *s, enum AVCodecID codec);
39+void ff_vp56dsp_init_arm(VP56DSPContext *s, enum AVCodecID codec);
40+void ff_vp56dsp_init_x86(VP56DSPContext* c, enum AVCodecID codec);
4141
4242 #endif /* AVCODEC_VP56DSP_H */
libavcodec/vp6.c+5−5
@@ -594,8 +594,8 @@ static av_cold int vp6_decode_init(AVCodecContext *avctx) · 593 unmodified lines
594594 {
595595 VP56Context *s = avctx->priv_data;
596596
597− ff_vp56_init(avctx, avctx->codec->id == CODEC_ID_VP6,
598− avctx->codec->id == CODEC_ID_VP6A);
597+ ff_vp56_init(avctx, avctx->codec->id == AV_CODEC_ID_VP6,
598+ avctx->codec->id == AV_CODEC_ID_VP6A);
599599 s->vp56_coord_div = vp6_coord_div;
600600 s->parse_vector_adjustment = vp6_parse_vector_adjustment;
601601 s->filter = vp6_filter;
@@ -627,7 +627,7 @@ static av_cold int vp6_decode_free(AVCodecContext *avctx) · 25 unmodified lines
627627 AVCodec ff_vp6_decoder = {
628628 .name = "vp6",
629629 .type = AVMEDIA_TYPE_VIDEO,
630− .id = CODEC_ID_VP6,
630+ .id = AV_CODEC_ID_VP6,
631631 .priv_data_size = sizeof(VP56Context),
632632 .init = vp6_decode_init,
633633 .close = vp6_decode_free,
@@ -640,7 +640,7 @@ AVCodec ff_vp6_decoder = { · 6 unmodified lines
640640 AVCodec ff_vp6f_decoder = {
641641 .name = "vp6f",
642642 .type = AVMEDIA_TYPE_VIDEO,
643− .id = CODEC_ID_VP6F,
643+ .id = AV_CODEC_ID_VP6F,
644644 .priv_data_size = sizeof(VP56Context),
645645 .init = vp6_decode_init,
646646 .close = vp6_decode_free,
@@ -653,7 +653,7 @@ AVCodec ff_vp6f_decoder = { · 6 unmodified lines
653653 AVCodec ff_vp6a_decoder = {
654654 .name = "vp6a",
655655 .type = AVMEDIA_TYPE_VIDEO,
656− .id = CODEC_ID_VP6A,
656+ .id = AV_CODEC_ID_VP6A,
657657 .priv_data_size = sizeof(VP56Context),
658658 .init = vp6_decode_init,
659659 .close = vp6_decode_free,
libavcodec/vp8.c+2−2
@@ -2019,7 +2019,7 @@ static av_cold int vp8_decode_init(AVCodecContext *avctx) · 2018 unmodified lines
20192019 avctx->pix_fmt = PIX_FMT_YUV420P;
20202020
20212021 ff_dsputil_init(&s->dsp, avctx);
2022− ff_h264_pred_init(&s->hpc, CODEC_ID_VP8, 8, 1);
2022+ ff_h264_pred_init(&s->hpc, AV_CODEC_ID_VP8, 8, 1);
20232023 ff_vp8dsp_init(&s->vp8dsp);
20242024
20252025 return 0;
@@ -2073,7 +2073,7 @@ static int vp8_decode_update_thread_context(AVCodecContext *dst, const AVCodecCo · 47 unmodified lines
20732073 AVCodec ff_vp8_decoder = {
20742074 .name = "vp8",
20752075 .type = AVMEDIA_TYPE_VIDEO,
2076− .id = CODEC_ID_VP8,
2076+ .id = AV_CODEC_ID_VP8,
20772077 .priv_data_size = sizeof(VP8Context),
20782078 .init = vp8_decode_init,
20792079 .close = vp8_decode_free,
libavcodec/vp8_parser.c+1−1
@@ -33,6 +33,6 @@ static int parse(AVCodecParserContext *s, · 32 unmodified lines
3333 }
3434
3535 AVCodecParser ff_vp8_parser = {
36− .codec_ids = { CODEC_ID_VP8 },
36+ .codec_ids = { AV_CODEC_ID_VP8 },
3737 .parser_parse = parse,
3838 };
libavcodec/vqavideo.c+1−1
@@ -625,7 +625,7 @@ static av_cold int vqa_decode_end(AVCodecContext *avctx) · 624 unmodified lines
625625 AVCodec ff_vqa_decoder = {
626626 .name = "vqavideo",
627627 .type = AVMEDIA_TYPE_VIDEO,
628− .id = CODEC_ID_WS_VQA,
628+ .id = AV_CODEC_ID_WS_VQA,
629629 .priv_data_size = sizeof(VqaContext),
630630 .init = vqa_decode_init,
631631 .close = vqa_decode_end,
libavcodec/wavpack.c+1−1
@@ -1249,7 +1249,7 @@ static int wavpack_decode_frame(AVCodecContext *avctx, void *data, · 1248 unmodified lines
12491249 AVCodec ff_wavpack_decoder = {
12501250 .name = "wavpack",
12511251 .type = AVMEDIA_TYPE_AUDIO,
1252− .id = CODEC_ID_WAVPACK,
1252+ .id = AV_CODEC_ID_WAVPACK,
12531253 .priv_data_size = sizeof(WavpackContext),
12541254 .init = wavpack_decode_init,
12551255 .close = wavpack_decode_end,
libavcodec/wma.c+1−1
@@ -90,7 +90,7 @@ int ff_wma_init(AVCodecContext *avctx, int flags2) · 89 unmodified lines
9090 ff_dsputil_init(&s->dsp, avctx);
9191 ff_fmt_convert_init(&s->fmt_conv, avctx);
9292
93− if (avctx->codec->id == CODEC_ID_WMAV1) {
93+ if (avctx->codec->id == AV_CODEC_ID_WMAV1) {
9494 s->version = 1;
9595 } else {
9696 s->version = 2;
libavcodec/wmadec.c+4−4
@@ -90,9 +90,9 @@ static int wma_decode_init(AVCodecContext * avctx) · 89 unmodified lines
9090 /* extract flag infos */
9191 flags2 = 0;
9292 extradata = avctx->extradata;
93− if (avctx->codec->id == CODEC_ID_WMAV1 && avctx->extradata_size >= 4) {
93+ if (avctx->codec->id == AV_CODEC_ID_WMAV1 && avctx->extradata_size >= 4) {
9494 flags2 = AV_RL16(extradata+2);
95− } else if (avctx->codec->id == CODEC_ID_WMAV2 && avctx->extradata_size >= 6) {
95+ } else if (avctx->codec->id == AV_CODEC_ID_WMAV2 && avctx->extradata_size >= 6) {
9696 flags2 = AV_RL16(extradata+4);
9797 }
9898 // for(i=0; i<avctx->extradata_size; i++)
@@ -939,7 +939,7 @@ static av_cold void flush(AVCodecContext *avctx) · 840 unmodified lines
939939 AVCodec ff_wmav1_decoder = {
940940 .name = "wmav1",
941941 .type = AVMEDIA_TYPE_AUDIO,
942− .id = CODEC_ID_WMAV1,
942+ .id = AV_CODEC_ID_WMAV1,
943943 .priv_data_size = sizeof(WMACodecContext),
944944 .init = wma_decode_init,
945945 .close = ff_wma_end,
@@ -952,7 +952,7 @@ AVCodec ff_wmav1_decoder = { · 6 unmodified lines
952952 AVCodec ff_wmav2_decoder = {
953953 .name = "wmav2",
954954 .type = AVMEDIA_TYPE_AUDIO,
955− .id = CODEC_ID_WMAV2,
955+ .id = AV_CODEC_ID_WMAV2,
956956 .priv_data_size = sizeof(WMACodecContext),
957957 .init = wma_decode_init,
958958 .close = ff_wma_end,
libavcodec/wmaenc.c+4−4
@@ -55,12 +55,12 @@ static int encode_init(AVCodecContext * avctx){ · 54 unmodified lines
5555 /* extract flag infos */
5656 flags1 = 0;
5757 flags2 = 1;
58− if (avctx->codec->id == CODEC_ID_WMAV1) {
58+ if (avctx->codec->id == AV_CODEC_ID_WMAV1) {
5959 extradata= av_malloc(4);
6060 avctx->extradata_size= 4;
6161 AV_WL16(extradata, flags1);
6262 AV_WL16(extradata+2, flags2);
63− } else if (avctx->codec->id == CODEC_ID_WMAV2) {
63+ } else if (avctx->codec->id == AV_CODEC_ID_WMAV2) {
6464 extradata= av_mallocz(10);
6565 avctx->extradata_size= 10;
6666 AV_WL32(extradata, flags1);
@@ -422,7 +422,7 @@ static int encode_superframe(AVCodecContext *avctx, AVPacket *avpkt, · 355 unmodified lines
422422 AVCodec ff_wmav1_encoder = {
423423 .name = "wmav1",
424424 .type = AVMEDIA_TYPE_AUDIO,
425− .id = CODEC_ID_WMAV1,
425+ .id = AV_CODEC_ID_WMAV1,
426426 .priv_data_size = sizeof(WMACodecContext),
427427 .init = encode_init,
428428 .encode2 = encode_superframe,
@@ -435,7 +435,7 @@ AVCodec ff_wmav1_encoder = { · 6 unmodified lines
435435 AVCodec ff_wmav2_encoder = {
436436 .name = "wmav2",
437437 .type = AVMEDIA_TYPE_AUDIO,
438− .id = CODEC_ID_WMAV2,
438+ .id = AV_CODEC_ID_WMAV2,
439439 .priv_data_size = sizeof(WMACodecContext),
440440 .init = encode_init,
441441 .encode2 = encode_superframe,
libavcodec/wmalosslessdec.c+1−1
@@ -1283,7 +1283,7 @@ static void flush(AVCodecContext *avctx) · 1282 unmodified lines
12831283 AVCodec ff_wmalossless_decoder = {
12841284 .name = "wmalossless",
12851285 .type = AVMEDIA_TYPE_AUDIO,
1286− .id = CODEC_ID_WMALOSSLESS,
1286+ .id = AV_CODEC_ID_WMALOSSLESS,
12871287 .priv_data_size = sizeof(WmallDecodeCtx),
12881288 .init = decode_init,
12891289 .decode = decode_packet,
libavcodec/wmaprodec.c+1−1
@@ -1623,7 +1623,7 @@ static void flush(AVCodecContext *avctx) · 1622 unmodified lines
16231623 AVCodec ff_wmapro_decoder = {
16241624 .name = "wmapro",
16251625 .type = AVMEDIA_TYPE_AUDIO,
1626− .id = CODEC_ID_WMAPRO,
1626+ .id = AV_CODEC_ID_WMAPRO,
16271627 .priv_data_size = sizeof(WMAProDecodeCtx),
16281628 .init = decode_init,
16291629 .close = decode_end,
libavcodec/wmavoice.c+1−1
@@ -2046,7 +2046,7 @@ static av_cold void wmavoice_flush(AVCodecContext *ctx) · 2045 unmodified lines
20462046 AVCodec ff_wmavoice_decoder = {
20472047 .name = "wmavoice",
20482048 .type = AVMEDIA_TYPE_AUDIO,
2049− .id = CODEC_ID_WMAVOICE,
2049+ .id = AV_CODEC_ID_WMAVOICE,
20502050 .priv_data_size = sizeof(WMAVoiceContext),
20512051 .init = wmavoice_decode_init,
20522052 .close = wmavoice_decode_end,
libavcodec/wmv2dec.c+1−1
@@ -473,7 +473,7 @@ static av_cold int wmv2_decode_end(AVCodecContext *avctx) · 472 unmodified lines
473473 AVCodec ff_wmv2_decoder = {
474474 .name = "wmv2",
475475 .type = AVMEDIA_TYPE_VIDEO,
476− .id = CODEC_ID_WMV2,
476+ .id = AV_CODEC_ID_WMV2,
477477 .priv_data_size = sizeof(Wmv2Context),
478478 .init = wmv2_decode_init,
479479 .close = wmv2_decode_end,
libavcodec/wmv2enc.c+1−1
@@ -214,7 +214,7 @@ void ff_wmv2_encode_mb(MpegEncContext * s, · 213 unmodified lines
214214 AVCodec ff_wmv2_encoder = {
215215 .name = "wmv2",
216216 .type = AVMEDIA_TYPE_VIDEO,
217− .id = CODEC_ID_WMV2,
217+ .id = AV_CODEC_ID_WMV2,
218218 .priv_data_size = sizeof(Wmv2Context),
219219 .init = wmv2_encode_init,
220220 .encode2 = ff_MPV_encode_picture,
libavcodec/wnv1.c+1−1
@@ -159,7 +159,7 @@ static av_cold int decode_end(AVCodecContext *avctx){ · 158 unmodified lines
159159 AVCodec ff_wnv1_decoder = {
160160 .name = "wnv1",
161161 .type = AVMEDIA_TYPE_VIDEO,
162− .id = CODEC_ID_WNV1,
162+ .id = AV_CODEC_ID_WNV1,
163163 .priv_data_size = sizeof(WNV1Context),
164164 .init = decode_init,
165165 .close = decode_end,
libavcodec/ws-snd1.c+1−1
@@ -185,7 +185,7 @@ static int ws_snd_decode_frame(AVCodecContext *avctx, void *data, · 184 unmodified lines
185185 AVCodec ff_ws_snd1_decoder = {
186186 .name = "ws_snd1",
187187 .type = AVMEDIA_TYPE_AUDIO,
188− .id = CODEC_ID_WESTWOOD_SND1,
188+ .id = AV_CODEC_ID_WESTWOOD_SND1,
189189 .priv_data_size = sizeof(WSSndContext),
190190 .init = ws_snd_decode_init,
191191 .decode = ws_snd_decode_frame,
libavcodec/x86/dsputil_mmx.c+4−4
@@ -2656,8 +2656,8 @@ static void dsputil_init_mmx2(DSPContext *c, AVCodecContext *avctx, · 2655 unmodified lines
26562656 }
26572657 }
26582658
2659− if (CONFIG_VP3_DECODER && (avctx->codec_id == CODEC_ID_VP3 ||
2660− avctx->codec_id == CODEC_ID_THEORA)) {
2659+ if (CONFIG_VP3_DECODER && (avctx->codec_id == AV_CODEC_ID_VP3 ||
2660+ avctx->codec_id == AV_CODEC_ID_THEORA)) {
26612661 c->put_no_rnd_pixels_tab[1][1] = put_no_rnd_pixels8_x2_exact_mmx2;
26622662 c->put_no_rnd_pixels_tab[1][2] = put_no_rnd_pixels8_y2_exact_mmx2;
26632663 }
@@ -2764,8 +2764,8 @@ static void dsputil_init_3dnow(DSPContext *c, AVCodecContext *avctx, · 100 unmodified lines
27642764 }
27652765 }
27662766
2767− if (CONFIG_VP3_DECODER && (avctx->codec_id == CODEC_ID_VP3 ||
2768− avctx->codec_id == CODEC_ID_THEORA)) {
2767+ if (CONFIG_VP3_DECODER && (avctx->codec_id == AV_CODEC_ID_VP3 ||
2768+ avctx->codec_id == AV_CODEC_ID_THEORA)) {
27692769 c->put_no_rnd_pixels_tab[1][1] = put_no_rnd_pixels8_x2_exact_3dnow;
27702770 c->put_no_rnd_pixels_tab[1][2] = put_no_rnd_pixels8_y2_exact_3dnow;
27712771 }
libavcodec/x86/h264_intrapred_init.c+16−16
@@ -180,17 +180,17 @@ void ff_h264_pred_init_x86(H264PredContext *h, int codec_id, const int bit_depth · 179 unmodified lines
180180 h->pred8x8 [VERT_PRED8x8 ] = ff_pred8x8_vertical_mmx;
181181 h->pred8x8 [HOR_PRED8x8 ] = ff_pred8x8_horizontal_mmx;
182182 }
183− if (codec_id == CODEC_ID_VP8) {
183+ if (codec_id == AV_CODEC_ID_VP8) {
184184 h->pred16x16[PLANE_PRED8x8 ] = ff_pred16x16_tm_vp8_mmx;
185185 h->pred8x8 [PLANE_PRED8x8 ] = ff_pred8x8_tm_vp8_mmx;
186186 h->pred4x4 [TM_VP8_PRED ] = ff_pred4x4_tm_vp8_mmx;
187187 } else {
188188 if (chroma_format_idc == 1)
189189 h->pred8x8 [PLANE_PRED8x8] = ff_pred8x8_plane_mmx;
190− if (codec_id == CODEC_ID_SVQ3) {
190+ if (codec_id == AV_CODEC_ID_SVQ3) {
191191 if (mm_flags & AV_CPU_FLAG_CMOV)
192192 h->pred16x16[PLANE_PRED8x8] = ff_pred16x16_plane_svq3_mmx;
193− } else if (codec_id == CODEC_ID_RV40) {
193+ } else if (codec_id == AV_CODEC_ID_RV40) {
194194 h->pred16x16[PLANE_PRED8x8] = ff_pred16x16_plane_rv40_mmx;
195195 } else {
196196 h->pred16x16[PLANE_PRED8x8] = ff_pred16x16_plane_h264_mmx;
@@ -216,22 +216,22 @@ void ff_h264_pred_init_x86(H264PredContext *h, int codec_id, const int bit_depth · 19 unmodified lines
216216 h->pred4x4 [VERT_RIGHT_PRED ] = ff_pred4x4_vertical_right_mmxext;
217217 h->pred4x4 [HOR_DOWN_PRED ] = ff_pred4x4_horizontal_down_mmxext;
218218 h->pred4x4 [DC_PRED ] = ff_pred4x4_dc_mmxext;
219− if (codec_id == CODEC_ID_VP8 || codec_id == CODEC_ID_H264) {
219+ if (codec_id == AV_CODEC_ID_VP8 || codec_id == AV_CODEC_ID_H264) {
220220 h->pred4x4 [DIAG_DOWN_LEFT_PRED] = ff_pred4x4_down_left_mmxext;
221221 }
222− if (codec_id == CODEC_ID_SVQ3 || codec_id == CODEC_ID_H264) {
222+ if (codec_id == AV_CODEC_ID_SVQ3 || codec_id == AV_CODEC_ID_H264) {
223223 h->pred4x4 [VERT_LEFT_PRED ] = ff_pred4x4_vertical_left_mmxext;
224224 }
225− if (codec_id != CODEC_ID_RV40) {
225+ if (codec_id != AV_CODEC_ID_RV40) {
226226 h->pred4x4 [HOR_UP_PRED ] = ff_pred4x4_horizontal_up_mmxext;
227227 }
228− if (codec_id == CODEC_ID_SVQ3 || codec_id == CODEC_ID_H264) {
228+ if (codec_id == AV_CODEC_ID_SVQ3 || codec_id == AV_CODEC_ID_H264) {
229229 if (chroma_format_idc == 1) {
230230 h->pred8x8[TOP_DC_PRED8x8 ] = ff_pred8x8_top_dc_mmxext;
231231 h->pred8x8[DC_PRED8x8 ] = ff_pred8x8_dc_mmxext;
232232 }
233233 }
234− if (codec_id == CODEC_ID_VP8) {
234+ if (codec_id == AV_CODEC_ID_VP8) {
235235 h->pred16x16[PLANE_PRED8x8 ] = ff_pred16x16_tm_vp8_mmx2;
236236 h->pred8x8 [DC_PRED8x8 ] = ff_pred8x8_dc_rv40_mmxext;
237237 h->pred8x8 [PLANE_PRED8x8 ] = ff_pred8x8_tm_vp8_mmx2;
@@ -240,9 +240,9 @@ void ff_h264_pred_init_x86(H264PredContext *h, int codec_id, const int bit_depth · 2 unmodified lines
240240 } else {
241241 if (chroma_format_idc == 1)
242242 h->pred8x8 [PLANE_PRED8x8] = ff_pred8x8_plane_mmx2;
243− if (codec_id == CODEC_ID_SVQ3) {
243+ if (codec_id == AV_CODEC_ID_SVQ3) {
244244 h->pred16x16[PLANE_PRED8x8 ] = ff_pred16x16_plane_svq3_mmx2;
245− } else if (codec_id == CODEC_ID_RV40) {
245+ } else if (codec_id == AV_CODEC_ID_RV40) {
246246 h->pred16x16[PLANE_PRED8x8 ] = ff_pred16x16_plane_rv40_mmx2;
247247 } else {
248248 h->pred16x16[PLANE_PRED8x8 ] = ff_pred16x16_plane_h264_mmx2;
@@ -261,15 +261,15 @@ void ff_h264_pred_init_x86(H264PredContext *h, int codec_id, const int bit_depth · 12 unmodified lines
261261 h->pred8x8l [VERT_RIGHT_PRED ] = ff_pred8x8l_vertical_right_sse2;
262262 h->pred8x8l [VERT_LEFT_PRED ] = ff_pred8x8l_vertical_left_sse2;
263263 h->pred8x8l [HOR_DOWN_PRED ] = ff_pred8x8l_horizontal_down_sse2;
264− if (codec_id == CODEC_ID_VP8) {
264+ if (codec_id == AV_CODEC_ID_VP8) {
265265 h->pred16x16[PLANE_PRED8x8 ] = ff_pred16x16_tm_vp8_sse2;
266266 h->pred8x8 [PLANE_PRED8x8 ] = ff_pred8x8_tm_vp8_sse2;
267267 } else {
268268 if (chroma_format_idc == 1)
269269 h->pred8x8 [PLANE_PRED8x8] = ff_pred8x8_plane_sse2;
270− if (codec_id == CODEC_ID_SVQ3) {
270+ if (codec_id == AV_CODEC_ID_SVQ3) {
271271 h->pred16x16[PLANE_PRED8x8] = ff_pred16x16_plane_svq3_sse2;
272− } else if (codec_id == CODEC_ID_RV40) {
272+ } else if (codec_id == AV_CODEC_ID_RV40) {
273273 h->pred16x16[PLANE_PRED8x8] = ff_pred16x16_plane_rv40_sse2;
274274 } else {
275275 h->pred16x16[PLANE_PRED8x8] = ff_pred16x16_plane_h264_sse2;
@@ -292,15 +292,15 @@ void ff_h264_pred_init_x86(H264PredContext *h, int codec_id, const int bit_depth · 16 unmodified lines
292292 h->pred8x8l [VERT_LEFT_PRED ] = ff_pred8x8l_vertical_left_ssse3;
293293 h->pred8x8l [HOR_UP_PRED ] = ff_pred8x8l_horizontal_up_ssse3;
294294 h->pred8x8l [HOR_DOWN_PRED ] = ff_pred8x8l_horizontal_down_ssse3;
295− if (codec_id == CODEC_ID_VP8) {
295+ if (codec_id == AV_CODEC_ID_VP8) {
296296 h->pred8x8 [PLANE_PRED8x8 ] = ff_pred8x8_tm_vp8_ssse3;
297297 h->pred4x4 [TM_VP8_PRED ] = ff_pred4x4_tm_vp8_ssse3;
298298 } else {
299299 if (chroma_format_idc == 1)
300300 h->pred8x8 [PLANE_PRED8x8] = ff_pred8x8_plane_ssse3;
301− if (codec_id == CODEC_ID_SVQ3) {
301+ if (codec_id == AV_CODEC_ID_SVQ3) {
302302 h->pred16x16[PLANE_PRED8x8] = ff_pred16x16_plane_svq3_ssse3;
303− } else if (codec_id == CODEC_ID_RV40) {
303+ } else if (codec_id == AV_CODEC_ID_RV40) {
304304 h->pred16x16[PLANE_PRED8x8] = ff_pred16x16_plane_rv40_ssse3;
305305 } else {
306306 h->pred16x16[PLANE_PRED8x8] = ff_pred16x16_plane_h264_ssse3;
libavcodec/x86/motion_est_mmx.c+1−1
@@ -460,7 +460,7 @@ void ff_dsputil_init_pix_mmx(DSPContext* c, AVCodecContext *avctx) · 459 unmodified lines
460460 c->pix_abs[1][3] = sad8_xy2_mmx2;
461461 }
462462 }
463− if ((mm_flags & AV_CPU_FLAG_SSE2) && !(mm_flags & AV_CPU_FLAG_3DNOW) && avctx->codec_id != CODEC_ID_SNOW) {
463+ if ((mm_flags & AV_CPU_FLAG_SSE2) && !(mm_flags & AV_CPU_FLAG_3DNOW) && avctx->codec_id != AV_CODEC_ID_SNOW) {
464464 c->sad[0]= sad16_sse2;
465465 }
466466 #endif /* HAVE_INLINE_ASM */
libavcodec/x86/vp56dsp_init.c+2−2
@@ -30,12 +30,12 @@ void ff_vp6_filter_diag4_mmx(uint8_t *dst, uint8_t *src, int stride, · 29 unmodified lines
3030 void ff_vp6_filter_diag4_sse2(uint8_t *dst, uint8_t *src, int stride,
3131 const int16_t *h_weights,const int16_t *v_weights);
3232
33−av_cold void ff_vp56dsp_init_x86(VP56DSPContext* c, enum CodecID codec)
33+av_cold void ff_vp56dsp_init_x86(VP56DSPContext* c, enum AVCodecID codec)
3434 {
3535 #if HAVE_YASM
3636 int mm_flags = av_get_cpu_flags();
3737
38− if (CONFIG_VP6_DECODER && codec == CODEC_ID_VP6) {
38+ if (CONFIG_VP6_DECODER && codec == AV_CODEC_ID_VP6) {
3939 #if ARCH_X86_32
4040 if (mm_flags & AV_CPU_FLAG_MMX) {
4141 c->vp6_filter_diag4 = ff_vp6_filter_diag4_mmx;
libavcodec/xan.c+2−2
@@ -500,7 +500,7 @@ static int xan_decode_frame(AVCodecContext *avctx, · 499 unmodified lines
500500 int ret, buf_size = avpkt->size;
501501 XanContext *s = avctx->priv_data;
502502
503− if (avctx->codec->id == CODEC_ID_XAN_WC3) {
503+ if (avctx->codec->id == AV_CODEC_ID_XAN_WC3) {
504504 const uint8_t *buf_end = buf + buf_size;
505505 int tag = 0;
506506 while (buf_end - buf > 8 && tag != VGA__TAG) {
@@ -612,7 +612,7 @@ static av_cold int xan_decode_end(AVCodecContext *avctx) · 105 unmodified lines
612612 AVCodec ff_xan_wc3_decoder = {
613613 .name = "xan_wc3",
614614 .type = AVMEDIA_TYPE_VIDEO,
615− .id = CODEC_ID_XAN_WC3,
615+ .id = AV_CODEC_ID_XAN_WC3,
616616 .priv_data_size = sizeof(XanContext),
617617 .init = xan_decode_init,
618618 .close = xan_decode_end,
libavcodec/xbmenc.c+1−1
@@ -76,7 +76,7 @@ static av_cold int xbm_encode_close(AVCodecContext *avctx) · 75 unmodified lines
7676 AVCodec ff_xbm_encoder = {
7777 .name = "xbm",
7878 .type = AVMEDIA_TYPE_VIDEO,
79− .id = CODEC_ID_XBM,
79+ .id = AV_CODEC_ID_XBM,
8080 .init = xbm_encode_init,
8181 .encode2 = xbm_encode_frame,
8282 .close = xbm_encode_close,
libavcodec/xl.c+1−1
@@ -147,7 +147,7 @@ static av_cold int decode_end(AVCodecContext *avctx){ · 146 unmodified lines
147147 AVCodec ff_xl_decoder = {
148148 .name = "xl",
149149 .type = AVMEDIA_TYPE_VIDEO,
150− .id = CODEC_ID_VIXL,
150+ .id = AV_CODEC_ID_VIXL,
151151 .priv_data_size = sizeof(VideoXLContext),
152152 .init = decode_init,
153153 .close = decode_end,
libavcodec/xsubdec.c+1−1
@@ -136,7 +136,7 @@ static int decode_frame(AVCodecContext *avctx, void *data, int *data_size, · 135 unmodified lines
136136 AVCodec ff_xsub_decoder = {
137137 .name = "xsub",
138138 .type = AVMEDIA_TYPE_SUBTITLE,
139− .id = CODEC_ID_XSUB,
139+ .id = AV_CODEC_ID_XSUB,
140140 .init = decode_init,
141141 .decode = decode_frame,
142142 .long_name = NULL_IF_CONFIG_SMALL("XSUB"),
libavcodec/xsubenc.c+1−1
@@ -213,7 +213,7 @@ static av_cold int xsub_encoder_init(AVCodecContext *avctx) · 212 unmodified lines
213213 AVCodec ff_xsub_encoder = {
214214 .name = "xsub",
215215 .type = AVMEDIA_TYPE_SUBTITLE,
216− .id = CODEC_ID_XSUB,
216+ .id = AV_CODEC_ID_XSUB,
217217 .init = xsub_encoder_init,
218218 .encode = xsub_encode,
219219 .long_name = NULL_IF_CONFIG_SMALL("DivX subtitles (XSUB)"),
libavcodec/xwddec.c+1−1
@@ -260,7 +260,7 @@ static av_cold int xwd_decode_close(AVCodecContext *avctx) · 259 unmodified lines
260260 AVCodec ff_xwd_decoder = {
261261 .name = "xwd",
262262 .type = AVMEDIA_TYPE_VIDEO,
263− .id = CODEC_ID_XWD,
263+ .id = AV_CODEC_ID_XWD,
264264 .init = xwd_decode_init,
265265 .close = xwd_decode_close,
266266 .decode = xwd_decode_frame,
libavcodec/xwdenc.c+1−1
@@ -222,7 +222,7 @@ static av_cold int xwd_encode_close(AVCodecContext *avctx) · 221 unmodified lines
222222 AVCodec ff_xwd_encoder = {
223223 .name = "xwd",
224224 .type = AVMEDIA_TYPE_VIDEO,
225− .id = CODEC_ID_XWD,
225+ .id = AV_CODEC_ID_XWD,
226226 .init = xwd_encode_init,
227227 .encode2 = xwd_encode_frame,
228228 .close = xwd_encode_close,
libavcodec/xxan.c+1−1
@@ -412,7 +412,7 @@ static av_cold int xan_decode_end(AVCodecContext *avctx) · 411 unmodified lines
412412 AVCodec ff_xan_wc4_decoder = {
413413 .name = "xan_wc4",
414414 .type = AVMEDIA_TYPE_VIDEO,
415− .id = CODEC_ID_XAN_WC4,
415+ .id = AV_CODEC_ID_XAN_WC4,
416416 .priv_data_size = sizeof(XanContext),
417417 .init = xan_decode_init,
418418 .close = xan_decode_end,
libavcodec/yop.c+1−1
@@ -250,7 +250,7 @@ static int yop_decode_frame(AVCodecContext *avctx, void *data, int *data_size, · 249 unmodified lines
250250 AVCodec ff_yop_decoder = {
251251 .name = "yop",
252252 .type = AVMEDIA_TYPE_VIDEO,
253− .id = CODEC_ID_YOP,
253+ .id = AV_CODEC_ID_YOP,
254254 .priv_data_size = sizeof(YopDecContext),
255255 .init = yop_decode_init,
256256 .close = yop_decode_close,
libavcodec/zerocodec.c+1−1
@@ -157,7 +157,7 @@ static av_cold int zerocodec_decode_init(AVCodecContext *avctx) · 156 unmodified lines
157157 AVCodec ff_zerocodec_decoder = {
158158 .type = AVMEDIA_TYPE_VIDEO,
159159 .name = "zerocodec",
160− .id = CODEC_ID_ZEROCODEC,
160+ .id = AV_CODEC_ID_ZEROCODEC,
161161 .priv_data_size = sizeof(ZeroCodecContext),
162162 .init = zerocodec_decode_init,
163163 .decode = zerocodec_decode_frame,
libavcodec/zmbv.c+1−1
@@ -675,7 +675,7 @@ static av_cold int decode_end(AVCodecContext *avctx) · 674 unmodified lines
675675 AVCodec ff_zmbv_decoder = {
676676 .name = "zmbv",
677677 .type = AVMEDIA_TYPE_VIDEO,
678− .id = CODEC_ID_ZMBV,
678+ .id = AV_CODEC_ID_ZMBV,
679679 .priv_data_size = sizeof(ZmbvContext),
680680 .init = decode_init,
681681 .close = decode_end,
libavcodec/zmbvenc.c+1−1
@@ -339,7 +339,7 @@ static av_cold int encode_end(AVCodecContext *avctx) · 338 unmodified lines
339339 AVCodec ff_zmbv_encoder = {
340340 .name = "zmbv",
341341 .type = AVMEDIA_TYPE_VIDEO,
342− .id = CODEC_ID_ZMBV,
342+ .id = AV_CODEC_ID_ZMBV,
343343 .priv_data_size = sizeof(ZmbvEncContext),
344344 .init = encode_init,
345345 .encode2 = encode_frame,
libavdevice/alsa-audio-common.c+36−36
@@ -38,26 +38,26 @@ · 37 unmodified lines
3838 static av_cold snd_pcm_format_t codec_id_to_pcm_format(int codec_id)
3939 {
4040 switch(codec_id) {
41− case CODEC_ID_PCM_F64LE: return SND_PCM_FORMAT_FLOAT64_LE;
42− case CODEC_ID_PCM_F64BE: return SND_PCM_FORMAT_FLOAT64_BE;
43− case CODEC_ID_PCM_F32LE: return SND_PCM_FORMAT_FLOAT_LE;
44− case CODEC_ID_PCM_F32BE: return SND_PCM_FORMAT_FLOAT_BE;
45− case CODEC_ID_PCM_S32LE: return SND_PCM_FORMAT_S32_LE;
46− case CODEC_ID_PCM_S32BE: return SND_PCM_FORMAT_S32_BE;
47− case CODEC_ID_PCM_U32LE: return SND_PCM_FORMAT_U32_LE;
48− case CODEC_ID_PCM_U32BE: return SND_PCM_FORMAT_U32_BE;
49− case CODEC_ID_PCM_S24LE: return SND_PCM_FORMAT_S24_3LE;
50− case CODEC_ID_PCM_S24BE: return SND_PCM_FORMAT_S24_3BE;
51− case CODEC_ID_PCM_U24LE: return SND_PCM_FORMAT_U24_3LE;
52− case CODEC_ID_PCM_U24BE: return SND_PCM_FORMAT_U24_3BE;
53− case CODEC_ID_PCM_S16LE: return SND_PCM_FORMAT_S16_LE;
54− case CODEC_ID_PCM_S16BE: return SND_PCM_FORMAT_S16_BE;
55− case CODEC_ID_PCM_U16LE: return SND_PCM_FORMAT_U16_LE;
56− case CODEC_ID_PCM_U16BE: return SND_PCM_FORMAT_U16_BE;
57− case CODEC_ID_PCM_S8: return SND_PCM_FORMAT_S8;
58− case CODEC_ID_PCM_U8: return SND_PCM_FORMAT_U8;
59− case CODEC_ID_PCM_MULAW: return SND_PCM_FORMAT_MU_LAW;
60− case CODEC_ID_PCM_ALAW: return SND_PCM_FORMAT_A_LAW;
41+ case AV_CODEC_ID_PCM_F64LE: return SND_PCM_FORMAT_FLOAT64_LE;
42+ case AV_CODEC_ID_PCM_F64BE: return SND_PCM_FORMAT_FLOAT64_BE;
43+ case AV_CODEC_ID_PCM_F32LE: return SND_PCM_FORMAT_FLOAT_LE;
44+ case AV_CODEC_ID_PCM_F32BE: return SND_PCM_FORMAT_FLOAT_BE;
45+ case AV_CODEC_ID_PCM_S32LE: return SND_PCM_FORMAT_S32_LE;
46+ case AV_CODEC_ID_PCM_S32BE: return SND_PCM_FORMAT_S32_BE;
47+ case AV_CODEC_ID_PCM_U32LE: return SND_PCM_FORMAT_U32_LE;
48+ case AV_CODEC_ID_PCM_U32BE: return SND_PCM_FORMAT_U32_BE;
49+ case AV_CODEC_ID_PCM_S24LE: return SND_PCM_FORMAT_S24_3LE;
50+ case AV_CODEC_ID_PCM_S24BE: return SND_PCM_FORMAT_S24_3BE;
51+ case AV_CODEC_ID_PCM_U24LE: return SND_PCM_FORMAT_U24_3LE;
52+ case AV_CODEC_ID_PCM_U24BE: return SND_PCM_FORMAT_U24_3BE;
53+ case AV_CODEC_ID_PCM_S16LE: return SND_PCM_FORMAT_S16_LE;
54+ case AV_CODEC_ID_PCM_S16BE: return SND_PCM_FORMAT_S16_BE;
55+ case AV_CODEC_ID_PCM_U16LE: return SND_PCM_FORMAT_U16_LE;
56+ case AV_CODEC_ID_PCM_U16BE: return SND_PCM_FORMAT_U16_BE;
57+ case AV_CODEC_ID_PCM_S8: return SND_PCM_FORMAT_S8;
58+ case AV_CODEC_ID_PCM_U8: return SND_PCM_FORMAT_U8;
59+ case AV_CODEC_ID_PCM_MULAW: return SND_PCM_FORMAT_MU_LAW;
60+ case AV_CODEC_ID_PCM_ALAW: return SND_PCM_FORMAT_A_LAW;
6161 default: return SND_PCM_FORMAT_UNKNOWN;
6262 }
6363 }
@@ -156,20 +156,20 @@ static av_cold int find_reorder_func(AlsaData *s, int codec_id, uint64_t layout, · 92 unmodified lines
156156 return 0;
157157
158158 switch (codec_id) {
159− case CODEC_ID_PCM_S8:
160− case CODEC_ID_PCM_U8:
161− case CODEC_ID_PCM_ALAW:
162− case CODEC_ID_PCM_MULAW: format = FORMAT_I8; break;
163− case CODEC_ID_PCM_S16LE:
164− case CODEC_ID_PCM_S16BE:
165− case CODEC_ID_PCM_U16LE:
166− case CODEC_ID_PCM_U16BE: format = FORMAT_I16; break;
167− case CODEC_ID_PCM_S32LE:
168− case CODEC_ID_PCM_S32BE:
169− case CODEC_ID_PCM_U32LE:
170− case CODEC_ID_PCM_U32BE: format = FORMAT_I32; break;
171− case CODEC_ID_PCM_F32LE:
172− case CODEC_ID_PCM_F32BE: format = FORMAT_F32; break;
159+ case AV_CODEC_ID_PCM_S8:
160+ case AV_CODEC_ID_PCM_U8:
161+ case AV_CODEC_ID_PCM_ALAW:
162+ case AV_CODEC_ID_PCM_MULAW: format = FORMAT_I8; break;
163+ case AV_CODEC_ID_PCM_S16LE:
164+ case AV_CODEC_ID_PCM_S16BE:
165+ case AV_CODEC_ID_PCM_U16LE:
166+ case AV_CODEC_ID_PCM_U16BE: format = FORMAT_I16; break;
167+ case AV_CODEC_ID_PCM_S32LE:
168+ case AV_CODEC_ID_PCM_S32BE:
169+ case AV_CODEC_ID_PCM_U32LE:
170+ case AV_CODEC_ID_PCM_U32BE: format = FORMAT_I32; break;
171+ case AV_CODEC_ID_PCM_F32LE:
172+ case AV_CODEC_ID_PCM_F32BE: format = FORMAT_F32; break;
173173 default: return AVERROR(ENOSYS);
174174 }
175175
@@ -185,7 +185,7 @@ static av_cold int find_reorder_func(AlsaData *s, int codec_id, uint64_t layout, · 9 unmodified lines
185185
186186 av_cold int ff_alsa_open(AVFormatContext *ctx, snd_pcm_stream_t mode,
187187 unsigned int *sample_rate,
188− int channels, enum CodecID *codec_id)
188+ int channels, enum AVCodecID *codec_id)
189189 {
190190 AlsaData *s = ctx->priv_data;
191191 const char *audio_device;
@@ -199,7 +199,7 @@ av_cold int ff_alsa_open(AVFormatContext *ctx, snd_pcm_stream_t mode, · 7 unmodified lines
199199 if (ctx->filename[0] == 0) audio_device = "default";
200200 else audio_device = ctx->filename;
201201
202− if (*codec_id == CODEC_ID_NONE)
202+ if (*codec_id == AV_CODEC_ID_NONE)
203203 *codec_id = DEFAULT_CODEC_ID;
204204 format = codec_id_to_pcm_format(*codec_id);
205205 if (format == SND_PCM_FORMAT_UNKNOWN) {
libavdevice/alsa-audio-dec.c+1−1
@@ -57,7 +57,7 @@ static av_cold int audio_read_header(AVFormatContext *s1) · 56 unmodified lines
5757 AlsaData *s = s1->priv_data;
5858 AVStream *st;
5959 int ret;
60− enum CodecID codec_id;
60+ enum AVCodecID codec_id;
6161 snd_pcm_sw_params_t *sw_params;
6262
6363 st = avformat_new_stream(s1, NULL);
libavdevice/alsa-audio-enc.c+2−2
@@ -47,7 +47,7 @@ static av_cold int audio_write_header(AVFormatContext *s1) · 46 unmodified lines
4747 AlsaData *s = s1->priv_data;
4848 AVStream *st;
4949 unsigned int sample_rate;
50− enum CodecID codec_id;
50+ enum AVCodecID codec_id;
5151 int res;
5252
5353 st = s1->streams[0];
@@ -106,7 +106,7 @@ AVOutputFormat ff_alsa_muxer = { · 52 unmodified lines
106106 .long_name = NULL_IF_CONFIG_SMALL("ALSA audio output"),
107107 .priv_data_size = sizeof(AlsaData),
108108 .audio_codec = DEFAULT_CODEC_ID,
109− .video_codec = CODEC_ID_NONE,
109+ .video_codec = AV_CODEC_ID_NONE,
110110 .write_header = audio_write_header,
111111 .write_packet = audio_write_packet,
112112 .write_trailer = ff_alsa_close,
libavdevice/alsa-audio.h+5−5
@@ -38,7 +38,7 @@ · 37 unmodified lines
3838 /* XXX: we make the assumption that the soundcard accepts this format */
3939 /* XXX: find better solution with "preinit" method, needed also in
4040 other formats */
41−#define DEFAULT_CODEC_ID AV_NE(CODEC_ID_PCM_S16BE, CODEC_ID_PCM_S16LE)
41+#define DEFAULT_CODEC_ID AV_NE(AV_CODEC_ID_PCM_S16BE, AV_CODEC_ID_PCM_S16LE)
4242
4343 #define ALSA_BUFFER_SIZE_MAX 32768
4444
@@ -62,15 +62,15 @@ typedef struct { · 17 unmodified lines
6262 * @param sample_rate in: requested sample rate;
6363 * out: actually selected sample rate
6464 * @param channels number of channels
65− * @param codec_id in: requested CodecID or CODEC_ID_NONE;
66− * out: actually selected CodecID, changed only if
67− * CODEC_ID_NONE was requested
65+ * @param codec_id in: requested AVCodecID or AV_CODEC_ID_NONE;
66+ * out: actually selected AVCodecID, changed only if
67+ * AV_CODEC_ID_NONE was requested
6868 *
6969 * @return 0 if OK, AVERROR_xxx on error
7070 */
7171 int ff_alsa_open(AVFormatContext *s, snd_pcm_stream_t mode,
7272 unsigned int *sample_rate,
73− int channels, enum CodecID *codec_id);
73+ int channels, enum AVCodecID *codec_id);
7474
7575 /**
7676 * Close the ALSA PCM.
libavdevice/bktr.c+1−1
@@ -283,7 +283,7 @@ static int grab_read_header(AVFormatContext *s1) · 282 unmodified lines
283283
284284 st->codec->codec_type = AVMEDIA_TYPE_VIDEO;
285285 st->codec->pix_fmt = PIX_FMT_YUV420P;
286− st->codec->codec_id = CODEC_ID_RAWVIDEO;
286+ st->codec->codec_id = AV_CODEC_ID_RAWVIDEO;
287287 st->codec->width = width;
288288 st->codec->height = height;
289289 st->codec->time_base.den = framerate.num;
libavdevice/fbdev.c+1−1
@@ -160,7 +160,7 @@ static av_cold int fbdev_read_header(AVFormatContext *avctx) · 159 unmodified lines
160160 }
161161
162162 st->codec->codec_type = AVMEDIA_TYPE_VIDEO;
163− st->codec->codec_id = CODEC_ID_RAWVIDEO;
163+ st->codec->codec_id = AV_CODEC_ID_RAWVIDEO;
164164 st->codec->width = fbdev->width;
165165 st->codec->height = fbdev->height;
166166 st->codec->pix_fmt = pix_fmt;
libavdevice/jack_audio.c+2−2
@@ -245,9 +245,9 @@ static int audio_read_header(AVFormatContext *context) · 244 unmodified lines
245245
246246 stream->codec->codec_type = AVMEDIA_TYPE_AUDIO;
247247 #if HAVE_BIGENDIAN
248− stream->codec->codec_id = CODEC_ID_PCM_F32BE;
248+ stream->codec->codec_id = AV_CODEC_ID_PCM_F32BE;
249249 #else
250− stream->codec->codec_id = CODEC_ID_PCM_F32LE;
250+ stream->codec->codec_id = AV_CODEC_ID_PCM_F32LE;
251251 #endif
252252 stream->codec->sample_rate = self->sample_rate;
253253 stream->codec->channels = self->nports;
libavdevice/libcdio.c+2−2
@@ -83,9 +83,9 @@ static av_cold int read_header(AVFormatContext *ctx) · 82 unmodified lines
8383
8484 st->codec->codec_type = AVMEDIA_TYPE_AUDIO;
8585 if (s->drive->bigendianp)
86− st->codec->codec_id = CODEC_ID_PCM_S16BE;
86+ st->codec->codec_id = AV_CODEC_ID_PCM_S16BE;
8787 else
88− st->codec->codec_id = CODEC_ID_PCM_S16LE;
88+ st->codec->codec_id = AV_CODEC_ID_PCM_S16LE;
8989 st->codec->sample_rate = 44100;
9090 st->codec->channels = 2;
9191 if (s->drive->audio_last_sector != CDIO_INVALID_LSN &&
libavdevice/libdc1394.c+1−1
@@ -168,7 +168,7 @@ static inline int dc1394_read_common(AVFormatContext *c, · 167 unmodified lines
168168 }
169169 avpriv_set_pts_info(vst, 64, 1, 1000);
170170 vst->codec->codec_type = AVMEDIA_TYPE_VIDEO;
171− vst->codec->codec_id = CODEC_ID_RAWVIDEO;
171+ vst->codec->codec_id = AV_CODEC_ID_RAWVIDEO;
172172 vst->codec->time_base.den = framerate.num;
173173 vst->codec->time_base.num = framerate.den;
174174 vst->codec->width = fmt->width;
libavdevice/oss_audio.c+5−5
@@ -49,7 +49,7 @@ typedef struct { · 48 unmodified lines
4949 int sample_rate;
5050 int channels;
5151 int frame_size; /* in bytes ! */
52− enum CodecID codec_id;
52+ enum AVCodecID codec_id;
5353 unsigned int flip_left : 1;
5454 uint8_t buffer[AUDIO_BLOCK_SIZE];
5555 int buffer_ptr;
@@ -104,10 +104,10 @@ static int audio_open(AVFormatContext *s1, int is_output, const char *audio_devi · 48 unmodified lines
104104
105105 switch(tmp) {
106106 case AFMT_S16_LE:
107− s->codec_id = CODEC_ID_PCM_S16LE;
107+ s->codec_id = AV_CODEC_ID_PCM_S16LE;
108108 break;
109109 case AFMT_S16_BE:
110− s->codec_id = CODEC_ID_PCM_S16BE;
110+ s->codec_id = AV_CODEC_ID_PCM_S16BE;
111111 break;
112112 default:
113113 av_log(s1, AV_LOG_ERROR, "Soundcard does not support 16 bit sample format\n");
@@ -314,8 +314,8 @@ AVOutputFormat ff_oss_muxer = { · 200 unmodified lines
314314 /* XXX: we make the assumption that the soundcard accepts this format */
315315 /* XXX: find better solution with "preinit" method, needed also in
316316 other formats */
317− .audio_codec = AV_NE(CODEC_ID_PCM_S16BE, CODEC_ID_PCM_S16LE),
318− .video_codec = CODEC_ID_NONE,
317+ .audio_codec = AV_NE(AV_CODEC_ID_PCM_S16BE, AV_CODEC_ID_PCM_S16LE),
318+ .video_codec = AV_CODEC_ID_NONE,
319319 .write_header = audio_write_header,
320320 .write_packet = audio_write_packet,
321321 .write_trailer = audio_write_trailer,
libavdevice/pulse.c+14−14
@@ -33,7 +33,7 @@ · 32 unmodified lines
3333 #include "libavformat/internal.h"
3434 #include "libavutil/opt.h"
3535
36−#define DEFAULT_CODEC_ID AV_NE(CODEC_ID_PCM_S16BE, CODEC_ID_PCM_S16LE)
36+#define DEFAULT_CODEC_ID AV_NE(AV_CODEC_ID_PCM_S16BE, AV_CODEC_ID_PCM_S16LE)
3737
3838 typedef struct PulseData {
3939 AVClass *class;
@@ -51,17 +51,17 @@ typedef struct PulseData { · 11 unmodified lines
5151
5252 static pa_sample_format_t codec_id_to_pulse_format(int codec_id) {
5353 switch (codec_id) {
54− case CODEC_ID_PCM_U8: return PA_SAMPLE_U8;
55− case CODEC_ID_PCM_ALAW: return PA_SAMPLE_ALAW;
56− case CODEC_ID_PCM_MULAW: return PA_SAMPLE_ULAW;
57− case CODEC_ID_PCM_S16LE: return PA_SAMPLE_S16LE;
58− case CODEC_ID_PCM_S16BE: return PA_SAMPLE_S16BE;
59− case CODEC_ID_PCM_F32LE: return PA_SAMPLE_FLOAT32LE;
60− case CODEC_ID_PCM_F32BE: return PA_SAMPLE_FLOAT32BE;
61− case CODEC_ID_PCM_S32LE: return PA_SAMPLE_S32LE;
62− case CODEC_ID_PCM_S32BE: return PA_SAMPLE_S32BE;
63− case CODEC_ID_PCM_S24LE: return PA_SAMPLE_S24LE;
64− case CODEC_ID_PCM_S24BE: return PA_SAMPLE_S24BE;
54+ case AV_CODEC_ID_PCM_U8: return PA_SAMPLE_U8;
55+ case AV_CODEC_ID_PCM_ALAW: return PA_SAMPLE_ALAW;
56+ case AV_CODEC_ID_PCM_MULAW: return PA_SAMPLE_ULAW;
57+ case AV_CODEC_ID_PCM_S16LE: return PA_SAMPLE_S16LE;
58+ case AV_CODEC_ID_PCM_S16BE: return PA_SAMPLE_S16BE;
59+ case AV_CODEC_ID_PCM_F32LE: return PA_SAMPLE_FLOAT32LE;
60+ case AV_CODEC_ID_PCM_F32BE: return PA_SAMPLE_FLOAT32BE;
61+ case AV_CODEC_ID_PCM_S32LE: return PA_SAMPLE_S32LE;
62+ case AV_CODEC_ID_PCM_S32BE: return PA_SAMPLE_S32BE;
63+ case AV_CODEC_ID_PCM_S24LE: return PA_SAMPLE_S24LE;
64+ case AV_CODEC_ID_PCM_S24BE: return PA_SAMPLE_S24BE;
6565 default: return PA_SAMPLE_INVALID;
6666 }
6767 }
@@ -72,8 +72,8 @@ static av_cold int pulse_read_header(AVFormatContext *s) · 4 unmodified lines
7272 AVStream *st;
7373 char *device = NULL;
7474 int ret;
75− enum CodecID codec_id =
76− s->audio_codec_id == CODEC_ID_NONE ? DEFAULT_CODEC_ID : s->audio_codec_id;
75+ enum AVCodecID codec_id =
76+ s->audio_codec_id == AV_CODEC_ID_NONE ? DEFAULT_CODEC_ID : s->audio_codec_id;
7777 const pa_sample_spec ss = { codec_id_to_pulse_format(codec_id),
7878 pd->sample_rate,
7979 pd->channels };
libavdevice/sndio_common.c+1−1
@@ -84,7 +84,7 @@ av_cold int ff_sndio_open(AVFormatContext *s1, int is_output, · 83 unmodified lines
8484 }
8585 }
8686
87− s->codec_id = par.le ? CODEC_ID_PCM_S16LE : CODEC_ID_PCM_S16BE;
87+ s->codec_id = par.le ? AV_CODEC_ID_PCM_S16LE : AV_CODEC_ID_PCM_S16BE;
8888 s->channels = is_output ? par.pchan : par.rchan;
8989 s->sample_rate = par.rate;
9090 s->bps = par.bps;
libavdevice/sndio_common.h+1−1
@@ -31,7 +31,7 @@ · 30 unmodified lines
3131 typedef struct {
3232 AVClass *class;
3333 struct sio_hdl *hdl;
34− enum CodecID codec_id;
34+ enum AVCodecID codec_id;
3535 int64_t hwpos;
3636 int64_t softpos;
3737 uint8_t *buffer;
libavdevice/sndio_enc.c+2−2
@@ -84,8 +84,8 @@ AVOutputFormat ff_sndio_muxer = { · 83 unmodified lines
8484 /* XXX: we make the assumption that the soundcard accepts this format */
8585 /* XXX: find better solution with "preinit" method, needed also in
8686 other formats */
87− .audio_codec = AV_NE(CODEC_ID_PCM_S16BE, CODEC_ID_PCM_S16LE),
88− .video_codec = CODEC_ID_NONE,
87+ .audio_codec = AV_NE(AV_CODEC_ID_PCM_S16BE, AV_CODEC_ID_PCM_S16LE),
88+ .video_codec = AV_CODEC_ID_NONE,
8989 .write_header = audio_write_header,
9090 .write_packet = audio_write_packet,
9191 .write_trailer = audio_write_trailer,
libavdevice/v4l2.c+27−27
@@ -85,27 +85,27 @@ struct buff_data { · 84 unmodified lines
8585
8686 struct fmt_map {
8787 enum PixelFormat ff_fmt;
88− enum CodecID codec_id;
88+ enum AVCodecID codec_id;
8989 uint32_t v4l2_fmt;
9090 };
9191
9292 static struct fmt_map fmt_conversion_table[] = {
9393 //ff_fmt codec_id v4l2_fmt
94− { PIX_FMT_YUV420P, CODEC_ID_RAWVIDEO, V4L2_PIX_FMT_YUV420 },
95− { PIX_FMT_YUV422P, CODEC_ID_RAWVIDEO, V4L2_PIX_FMT_YUV422P },
96− { PIX_FMT_YUYV422, CODEC_ID_RAWVIDEO, V4L2_PIX_FMT_YUYV },
97− { PIX_FMT_UYVY422, CODEC_ID_RAWVIDEO, V4L2_PIX_FMT_UYVY },
98− { PIX_FMT_YUV411P, CODEC_ID_RAWVIDEO, V4L2_PIX_FMT_YUV411P },
99− { PIX_FMT_YUV410P, CODEC_ID_RAWVIDEO, V4L2_PIX_FMT_YUV410 },
100− { PIX_FMT_RGB555, CODEC_ID_RAWVIDEO, V4L2_PIX_FMT_RGB555 },
101− { PIX_FMT_RGB565, CODEC_ID_RAWVIDEO, V4L2_PIX_FMT_RGB565 },
102− { PIX_FMT_BGR24, CODEC_ID_RAWVIDEO, V4L2_PIX_FMT_BGR24 },
103− { PIX_FMT_RGB24, CODEC_ID_RAWVIDEO, V4L2_PIX_FMT_RGB24 },
104− { PIX_FMT_BGRA, CODEC_ID_RAWVIDEO, V4L2_PIX_FMT_BGR32 },
105− { PIX_FMT_GRAY8, CODEC_ID_RAWVIDEO, V4L2_PIX_FMT_GREY },
106− { PIX_FMT_NV12, CODEC_ID_RAWVIDEO, V4L2_PIX_FMT_NV12 },
107− { PIX_FMT_NONE, CODEC_ID_MJPEG, V4L2_PIX_FMT_MJPEG },
108− { PIX_FMT_NONE, CODEC_ID_MJPEG, V4L2_PIX_FMT_JPEG },
94+ { PIX_FMT_YUV420P, AV_CODEC_ID_RAWVIDEO, V4L2_PIX_FMT_YUV420 },
95+ { PIX_FMT_YUV422P, AV_CODEC_ID_RAWVIDEO, V4L2_PIX_FMT_YUV422P },
96+ { PIX_FMT_YUYV422, AV_CODEC_ID_RAWVIDEO, V4L2_PIX_FMT_YUYV },
97+ { PIX_FMT_UYVY422, AV_CODEC_ID_RAWVIDEO, V4L2_PIX_FMT_UYVY },
98+ { PIX_FMT_YUV411P, AV_CODEC_ID_RAWVIDEO, V4L2_PIX_FMT_YUV411P },
99+ { PIX_FMT_YUV410P, AV_CODEC_ID_RAWVIDEO, V4L2_PIX_FMT_YUV410 },
100+ { PIX_FMT_RGB555, AV_CODEC_ID_RAWVIDEO, V4L2_PIX_FMT_RGB555 },
101+ { PIX_FMT_RGB565, AV_CODEC_ID_RAWVIDEO, V4L2_PIX_FMT_RGB565 },
102+ { PIX_FMT_BGR24, AV_CODEC_ID_RAWVIDEO, V4L2_PIX_FMT_BGR24 },
103+ { PIX_FMT_RGB24, AV_CODEC_ID_RAWVIDEO, V4L2_PIX_FMT_RGB24 },
104+ { PIX_FMT_BGRA, AV_CODEC_ID_RAWVIDEO, V4L2_PIX_FMT_BGR32 },
105+ { PIX_FMT_GRAY8, AV_CODEC_ID_RAWVIDEO, V4L2_PIX_FMT_GREY },
106+ { PIX_FMT_NV12, AV_CODEC_ID_RAWVIDEO, V4L2_PIX_FMT_NV12 },
107+ { PIX_FMT_NONE, AV_CODEC_ID_MJPEG, V4L2_PIX_FMT_MJPEG },
108+ { PIX_FMT_NONE, AV_CODEC_ID_MJPEG, V4L2_PIX_FMT_JPEG },
109109 };
110110
111111 static int device_open(AVFormatContext *ctx)
@@ -220,12 +220,12 @@ static int first_field(int fd) · 108 unmodified lines
220220 return 1;
221221 }
222222
223−static uint32_t fmt_ff2v4l(enum PixelFormat pix_fmt, enum CodecID codec_id)
223+static uint32_t fmt_ff2v4l(enum PixelFormat pix_fmt, enum AVCodecID codec_id)
224224 {
225225 int i;
226226
227227 for (i = 0; i < FF_ARRAY_ELEMS(fmt_conversion_table); i++) {
228− if ((codec_id == CODEC_ID_NONE ||
228+ if ((codec_id == AV_CODEC_ID_NONE ||
229229 fmt_conversion_table[i].codec_id == codec_id) &&
230230 (pix_fmt == PIX_FMT_NONE ||
231231 fmt_conversion_table[i].ff_fmt == pix_fmt)) {
@@ -236,7 +236,7 @@ static uint32_t fmt_ff2v4l(enum PixelFormat pix_fmt, enum CodecID codec_id) · 4 unmodified lines
236236 return 0;
237237 }
238238
239−static enum PixelFormat fmt_v4l2ff(uint32_t v4l2_fmt, enum CodecID codec_id)
239+static enum PixelFormat fmt_v4l2ff(uint32_t v4l2_fmt, enum AVCodecID codec_id)
240240 {
241241 int i;
242242
@@ -250,7 +250,7 @@ static enum PixelFormat fmt_v4l2ff(uint32_t v4l2_fmt, enum CodecID codec_id) · 7 unmodified lines
250250 return PIX_FMT_NONE;
251251 }
252252
253−static enum CodecID fmt_v4l2codec(uint32_t v4l2_fmt)
253+static enum AVCodecID fmt_v4l2codec(uint32_t v4l2_fmt)
254254 {
255255 int i;
256256
@@ -260,7 +260,7 @@ static enum CodecID fmt_v4l2codec(uint32_t v4l2_fmt) · 3 unmodified lines
260260 }
261261 }
262262
263− return CODEC_ID_NONE;
263+ return AV_CODEC_ID_NONE;
264264 }
265265
266266 #if HAVE_STRUCT_V4L2_FRMIVALENUM_DISCRETE
@@ -294,7 +294,7 @@ static void list_formats(AVFormatContext *ctx, int fd, int type) · 27 unmodified lines
294294 struct v4l2_fmtdesc vfd = { .type = V4L2_BUF_TYPE_VIDEO_CAPTURE };
295295
296296 while(!ioctl(fd, VIDIOC_ENUM_FMT, &vfd)) {
297− enum CodecID codec_id = fmt_v4l2codec(vfd.pixelformat);
297+ enum AVCodecID codec_id = fmt_v4l2codec(vfd.pixelformat);
298298 enum PixelFormat pix_fmt = fmt_v4l2ff(vfd.pixelformat, codec_id);
299299
300300 vfd.index++;
@@ -648,7 +648,7 @@ static uint32_t device_try_init(AVFormatContext *s1, · 347 unmodified lines
648648 enum PixelFormat pix_fmt,
649649 int *width,
650650 int *height,
651− enum CodecID *codec_id)
651+ enum AVCodecID *codec_id)
652652 {
653653 uint32_t desired_format = fmt_ff2v4l(pix_fmt, s1->video_codec_id);
654654
@@ -658,7 +658,7 @@ static uint32_t device_try_init(AVFormatContext *s1, · 3 unmodified lines
658658
659659 desired_format = 0;
660660 for (i = 0; i<FF_ARRAY_ELEMS(fmt_conversion_table); i++) {
661− if (s1->video_codec_id == CODEC_ID_NONE ||
661+ if (s1->video_codec_id == AV_CODEC_ID_NONE ||
662662 fmt_conversion_table[i].codec_id == s1->video_codec_id) {
663663 desired_format = fmt_conversion_table[i].v4l2_fmt;
664664 if (device_init(s1, width, height, desired_format) >= 0) {
@@ -671,7 +671,7 @@ static uint32_t device_try_init(AVFormatContext *s1, · 6 unmodified lines
671671
672672 if (desired_format != 0) {
673673 *codec_id = fmt_v4l2codec(desired_format);
674− assert(*codec_id != CODEC_ID_NONE);
674+ assert(*codec_id != AV_CODEC_ID_NONE);
675675 }
676676
677677 return desired_format;
@@ -683,7 +683,7 @@ static int v4l2_read_header(AVFormatContext *s1) · 5 unmodified lines
683683 AVStream *st;
684684 int res = 0;
685685 uint32_t desired_format;
686− enum CodecID codec_id;
686+ enum AVCodecID codec_id;
687687 enum PixelFormat pix_fmt = PIX_FMT_NONE;
688688
689689 st = avformat_new_stream(s1, NULL);
@@ -782,7 +782,7 @@ static int v4l2_read_header(AVFormatContext *s1) · 92 unmodified lines
782782
783783 st->codec->codec_type = AVMEDIA_TYPE_VIDEO;
784784 st->codec->codec_id = codec_id;
785− if (codec_id == CODEC_ID_RAWVIDEO)
785+ if (codec_id == AV_CODEC_ID_RAWVIDEO)
786786 st->codec->codec_tag =
787787 avcodec_pix_fmt_to_codec_tag(st->codec->pix_fmt);
788788 st->codec->width = s->width;
libavdevice/vfwcap.c+6−6
@@ -75,16 +75,16 @@ static enum PixelFormat vfw_pixfmt(DWORD biCompression, WORD biBitCount) · 74 unmodified lines
7575 return PIX_FMT_NONE;
7676 }
7777
78−static enum CodecID vfw_codecid(DWORD biCompression)
78+static enum AVCodecID vfw_codecid(DWORD biCompression)
7979 {
8080 switch(biCompression) {
8181 case MKTAG('d', 'v', 's', 'd'):
82− return CODEC_ID_DVVIDEO;
82+ return AV_CODEC_ID_DVVIDEO;
8383 case MKTAG('M', 'J', 'P', 'G'):
8484 case MKTAG('m', 'j', 'p', 'g'):
85− return CODEC_ID_MJPEG;
85+ return AV_CODEC_ID_MJPEG;
8686 }
87− return CODEC_ID_NONE;
87+ return AV_CODEC_ID_NONE;
8888 }
8989
9090 #define dstruct(pctx, sname, var, type) \
@@ -378,7 +378,7 @@ static int vfw_read_header(AVFormatContext *s) · 287 unmodified lines
378378 codec->pix_fmt = vfw_pixfmt(biCompression, biBitCount);
379379 if(codec->pix_fmt == PIX_FMT_NONE) {
380380 codec->codec_id = vfw_codecid(biCompression);
381− if(codec->codec_id == CODEC_ID_NONE) {
381+ if(codec->codec_id == AV_CODEC_ID_NONE) {
382382 av_log(s, AV_LOG_ERROR, "Unknown compression type. "
383383 "Please report verbose (-v 9) debug information.\n");
384384 vfw_read_close(s);
@@ -386,7 +386,7 @@ static int vfw_read_header(AVFormatContext *s) · 1 unmodified line
386386 }
387387 codec->bits_per_coded_sample = biBitCount;
388388 } else {
389− codec->codec_id = CODEC_ID_RAWVIDEO;
389+ codec->codec_id = AV_CODEC_ID_RAWVIDEO;
390390 if(biCompression == BI_RGB) {
391391 codec->bits_per_coded_sample = biBitCount;
392392 codec->extradata = av_malloc(9 + FF_INPUT_BUFFER_PADDING_SIZE);
libavdevice/x11grab.c+1−1
@@ -314,7 +314,7 @@ x11grab_read_header(AVFormatContext *s1) · 313 unmodified lines
314314 x11grab->use_shm = use_shm;
315315
316316 st->codec->codec_type = AVMEDIA_TYPE_VIDEO;
317− st->codec->codec_id = CODEC_ID_RAWVIDEO;
317+ st->codec->codec_id = AV_CODEC_ID_RAWVIDEO;
318318 st->codec->width = x11grab->width;
319319 st->codec->height = x11grab->height;
320320 st->codec->pix_fmt = input_pixfmt;
libavformat/4xm.c+4−4
@@ -151,7 +151,7 @@ static int fourxm_read_header(AVFormatContext *s) · 150 unmodified lines
151151 fourxm->video_stream_index = st->index;
152152
153153 st->codec->codec_type = AVMEDIA_TYPE_VIDEO;
154− st->codec->codec_id = CODEC_ID_4XM;
154+ st->codec->codec_id = AV_CODEC_ID_4XM;
155155 st->codec->extradata_size = 4;
156156 st->codec->extradata = av_malloc(4);
157157 AV_WL32(st->codec->extradata, AV_RL32(&header[i + 16]));
@@ -218,11 +218,11 @@ static int fourxm_read_header(AVFormatContext *s) · 60 unmodified lines
218218 st->codec->bits_per_coded_sample;
219219 st->codec->block_align = st->codec->channels * st->codec->bits_per_coded_sample;
220220 if (fourxm->tracks[current_track].adpcm){
221− st->codec->codec_id = CODEC_ID_ADPCM_4XM;
221+ st->codec->codec_id = AV_CODEC_ID_ADPCM_4XM;
222222 }else if (st->codec->bits_per_coded_sample == 8){
223− st->codec->codec_id = CODEC_ID_PCM_U8;
223+ st->codec->codec_id = AV_CODEC_ID_PCM_U8;
224224 }else
225− st->codec->codec_id = CODEC_ID_PCM_S16LE;
225+ st->codec->codec_id = AV_CODEC_ID_PCM_S16LE;
226226 }
227227 }
228228
libavformat/a64.c+5−5
@@ -43,12 +43,12 @@ static int a64_write_header(struct AVFormatContext *s) · 42 unmodified lines
4343 };
4444 c->interleaved = 0;
4545 switch (avctx->codec->id) {
46− case CODEC_ID_A64_MULTI:
46+ case AV_CODEC_ID_A64_MULTI:
4747 header[2] = 0x00;
4848 header[3] = AV_RB32(avctx->extradata+0);
4949 header[4] = 2;
5050 break;
51− case CODEC_ID_A64_MULTI5:
51+ case AV_CODEC_ID_A64_MULTI5:
5252 header[2] = 0x01;
5353 header[3] = AV_RB32(avctx->extradata+0);
5454 header[4] = 3;
@@ -76,8 +76,8 @@ static int a64_write_packet(struct AVFormatContext *s, AVPacket *pkt) · 21 unmodified lines
7676
7777 /* fetch values from extradata */
7878 switch (avctx->codec->id) {
79− case CODEC_ID_A64_MULTI:
80− case CODEC_ID_A64_MULTI5:
79+ case AV_CODEC_ID_A64_MULTI:
80+ case AV_CODEC_ID_A64_MULTI5:
8181 if(c->interleaved) {
8282 /* Write interleaved, means we insert chunks of the future charset before each current frame.
8383 * Reason: if we load 1 charset + corresponding frames in one block on c64, we need to store
@@ -168,7 +168,7 @@ AVOutputFormat ff_a64_muxer = { · 84 unmodified lines
168168 .long_name = NULL_IF_CONFIG_SMALL("a64 - video for Commodore 64"),
169169 .extensions = "a64, A64",
170170 .priv_data_size = sizeof (A64Context),
171− .video_codec = CODEC_ID_A64_MULTI,
171+ .video_codec = AV_CODEC_ID_A64_MULTI,
172172 .write_header = a64_write_header,
173173 .write_packet = a64_write_packet,
174174 .write_trailer = a64_write_trailer,
libavformat/aacdec.c+1−1
@@ -89,5 +89,5 @@ AVInputFormat ff_aac_demuxer = { · 88 unmodified lines
8989 .read_packet = ff_raw_read_partial_packet,
9090 .flags = AVFMT_GENERIC_INDEX,
9191 .extensions = "aac",
92− .raw_codec_id = CODEC_ID_AAC,
92+ .raw_codec_id = AV_CODEC_ID_AAC,
9393 };
libavformat/ac3dec.c+7−7
@@ -24,13 +24,13 @@ · 23 unmodified lines
2424 #include "avformat.h"
2525 #include "rawdec.h"
2626
27−static int ac3_eac3_probe(AVProbeData *p, enum CodecID expected_codec_id)
27+static int ac3_eac3_probe(AVProbeData *p, enum AVCodecID expected_codec_id)
2828 {
2929 int max_frames, first_frames = 0, frames;
3030 uint8_t *buf, *buf2, *end;
3131 AC3HeaderInfo hdr;
3232 GetBitContext gbc;
33− enum CodecID codec_id = CODEC_ID_AC3;
33+ enum AVCodecID codec_id = AV_CODEC_ID_AC3;
3434
3535 max_frames = 0;
3636 buf = p->buf;
@@ -47,7 +47,7 @@ static int ac3_eac3_probe(AVProbeData *p, enum CodecID expected_codec_id) · 10 unmodified lines
4747 av_crc(av_crc_get_table(AV_CRC_16_ANSI), 0, buf2 + 2, hdr.frame_size - 2))
4848 break;
4949 if (hdr.bitstream_id > 10)
50− codec_id = CODEC_ID_EAC3;
50+ codec_id = AV_CODEC_ID_EAC3;
5151 buf2 += hdr.frame_size;
5252 }
5353 max_frames = FFMAX(max_frames, frames);
@@ -87,7 +87,7 @@ static int ac3_eac3_probe(AVProbeData *p, enum CodecID expected_codec_id) · 33 unmodified lines
8787 #if CONFIG_AC3_DEMUXER
8888 static int ac3_probe(AVProbeData *p)
8989 {
90− return ac3_eac3_probe(p, CODEC_ID_AC3);
90+ return ac3_eac3_probe(p, AV_CODEC_ID_AC3);
9191 }
9292
9393 AVInputFormat ff_ac3_demuxer = {
@@ -98,14 +98,14 @@ AVInputFormat ff_ac3_demuxer = { · 4 unmodified lines
9898 .read_packet = ff_raw_read_partial_packet,
9999 .flags= AVFMT_GENERIC_INDEX,
100100 .extensions = "ac3",
101− .raw_codec_id = CODEC_ID_AC3,
101+ .raw_codec_id = AV_CODEC_ID_AC3,
102102 };
103103 #endif
104104
105105 #if CONFIG_EAC3_DEMUXER
106106 static int eac3_probe(AVProbeData *p)
107107 {
108− return ac3_eac3_probe(p, CODEC_ID_EAC3);
108+ return ac3_eac3_probe(p, AV_CODEC_ID_EAC3);
109109 }
110110
111111 AVInputFormat ff_eac3_demuxer = {
@@ -116,6 +116,6 @@ AVInputFormat ff_eac3_demuxer = { · 4 unmodified lines
116116 .read_packet = ff_raw_read_partial_packet,
117117 .flags = AVFMT_GENERIC_INDEX,
118118 .extensions = "eac3",
119− .raw_codec_id = CODEC_ID_EAC3,
119+ .raw_codec_id = AV_CODEC_ID_EAC3,
120120 };
121121 #endif
libavformat/adtsenc.c+2−2
@@ -169,8 +169,8 @@ AVOutputFormat ff_adts_muxer = { · 168 unmodified lines
169169 .mime_type = "audio/aac",
170170 .extensions = "aac,adts",
171171 .priv_data_size = sizeof(ADTSContext),
172− .audio_codec = CODEC_ID_AAC,
173− .video_codec = CODEC_ID_NONE,
172+ .audio_codec = AV_CODEC_ID_AAC,
173+ .video_codec = AV_CODEC_ID_NONE,
174174 .write_header = adts_write_header,
175175 .write_packet = adts_write_packet,
176176 };
libavformat/adxdec.c+1−1
@@ -108,6 +108,6 @@ AVInputFormat ff_adx_demuxer = { · 107 unmodified lines
108108 .read_header = adx_read_header,
109109 .read_packet = adx_read_packet,
110110 .extensions = "adx",
111− .raw_codec_id = CODEC_ID_ADPCM_ADX,
111+ .raw_codec_id = AV_CODEC_ID_ADPCM_ADX,
112112 .flags = AVFMT_GENERIC_INDEX,
113113 };
libavformat/aea.c+1−1
@@ -67,7 +67,7 @@ static int aea_read_header(AVFormatContext *s) · 66 unmodified lines
6767
6868
6969 st->codec->codec_type = AVMEDIA_TYPE_AUDIO;
70− st->codec->codec_id = CODEC_ID_ATRAC1;
70+ st->codec->codec_id = AV_CODEC_ID_ATRAC1;
7171 st->codec->sample_rate = 44100;
7272 st->codec->bit_rate = 292000;
7373
libavformat/aiff.h+18−18
@@ -31,24 +31,24 @@ · 30 unmodified lines
3131 #include "riff.h"
3232
3333 static const AVCodecTag ff_codec_aiff_tags[] = {
34− { CODEC_ID_PCM_S16BE, MKTAG('N','O','N','E') },
35− { CODEC_ID_PCM_S8, MKTAG('N','O','N','E') },
36− { CODEC_ID_PCM_S24BE, MKTAG('N','O','N','E') },
37− { CODEC_ID_PCM_S32BE, MKTAG('N','O','N','E') },
38− { CODEC_ID_PCM_F32BE, MKTAG('f','l','3','2') },
39− { CODEC_ID_PCM_F64BE, MKTAG('f','l','6','4') },
40− { CODEC_ID_PCM_ALAW, MKTAG('a','l','a','w') },
41− { CODEC_ID_PCM_MULAW, MKTAG('u','l','a','w') },
42− { CODEC_ID_MACE3, MKTAG('M','A','C','3') },
43− { CODEC_ID_MACE6, MKTAG('M','A','C','6') },
44− { CODEC_ID_GSM, MKTAG('G','S','M',' ') },
45− { CODEC_ID_ADPCM_G726, MKTAG('G','7','2','6') },
46− { CODEC_ID_PCM_S16BE, MKTAG('t','w','o','s') },
47− { CODEC_ID_PCM_S16LE, MKTAG('s','o','w','t') },
48− { CODEC_ID_ADPCM_IMA_QT, MKTAG('i','m','a','4') },
49− { CODEC_ID_QDM2, MKTAG('Q','D','M','2') },
50− { CODEC_ID_QCELP, MKTAG('Q','c','l','p') },
51− { CODEC_ID_NONE, 0 },
34+ { AV_CODEC_ID_PCM_S16BE, MKTAG('N','O','N','E') },
35+ { AV_CODEC_ID_PCM_S8, MKTAG('N','O','N','E') },
36+ { AV_CODEC_ID_PCM_S24BE, MKTAG('N','O','N','E') },
37+ { AV_CODEC_ID_PCM_S32BE, MKTAG('N','O','N','E') },
38+ { AV_CODEC_ID_PCM_F32BE, MKTAG('f','l','3','2') },
39+ { AV_CODEC_ID_PCM_F64BE, MKTAG('f','l','6','4') },
40+ { AV_CODEC_ID_PCM_ALAW, MKTAG('a','l','a','w') },
41+ { AV_CODEC_ID_PCM_MULAW, MKTAG('u','l','a','w') },
42+ { AV_CODEC_ID_MACE3, MKTAG('M','A','C','3') },
43+ { AV_CODEC_ID_MACE6, MKTAG('M','A','C','6') },
44+ { AV_CODEC_ID_GSM, MKTAG('G','S','M',' ') },
45+ { AV_CODEC_ID_ADPCM_G726, MKTAG('G','7','2','6') },
46+ { AV_CODEC_ID_PCM_S16BE, MKTAG('t','w','o','s') },
47+ { AV_CODEC_ID_PCM_S16LE, MKTAG('s','o','w','t') },
48+ { AV_CODEC_ID_ADPCM_IMA_QT, MKTAG('i','m','a','4') },
49+ { AV_CODEC_ID_QDM2, MKTAG('Q','D','M','2') },
50+ { AV_CODEC_ID_QCELP, MKTAG('Q','c','l','p') },
51+ { AV_CODEC_ID_NONE, 0 },
5252 };
5353
5454 #endif /* AVFORMAT_AIFF_H */
libavformat/aiffdec.c+17−17
@@ -34,19 +34,19 @@ typedef struct { · 33 unmodified lines
3434 int block_duration;
3535 } AIFFInputContext;
3636
37−static enum CodecID aiff_codec_get_id(int bps)
37+static enum AVCodecID aiff_codec_get_id(int bps)
3838 {
3939 if (bps <= 8)
40− return CODEC_ID_PCM_S8;
40+ return AV_CODEC_ID_PCM_S8;
4141 if (bps <= 16)
42− return CODEC_ID_PCM_S16BE;
42+ return AV_CODEC_ID_PCM_S16BE;
4343 if (bps <= 24)
44− return CODEC_ID_PCM_S24BE;
44+ return AV_CODEC_ID_PCM_S24BE;
4545 if (bps <= 32)
46− return CODEC_ID_PCM_S32BE;
46+ return AV_CODEC_ID_PCM_S32BE;
4747
4848 /* bigger than 32 isn't allowed */
49− return CODEC_ID_NONE;
49+ return AV_CODEC_ID_NONE;
5050 }
5151
5252 /* returns the size of the found tag */
@@ -117,32 +117,32 @@ static unsigned int get_aiff_header(AVFormatContext *s, int size, · 64 unmodified lines
117117 size -= 4;
118118 }
119119
120− if (version != AIFF_C_VERSION1 || codec->codec_id == CODEC_ID_PCM_S16BE) {
120+ if (version != AIFF_C_VERSION1 || codec->codec_id == AV_CODEC_ID_PCM_S16BE) {
121121 codec->codec_id = aiff_codec_get_id(codec->bits_per_coded_sample);
122122 codec->bits_per_coded_sample = av_get_bits_per_sample(codec->codec_id);
123123 aiff->block_duration = 1;
124124 } else {
125125 switch (codec->codec_id) {
126− case CODEC_ID_PCM_F32BE:
127− case CODEC_ID_PCM_F64BE:
128− case CODEC_ID_PCM_S16LE:
129− case CODEC_ID_PCM_ALAW:
130− case CODEC_ID_PCM_MULAW:
126+ case AV_CODEC_ID_PCM_F32BE:
127+ case AV_CODEC_ID_PCM_F64BE:
128+ case AV_CODEC_ID_PCM_S16LE:
129+ case AV_CODEC_ID_PCM_ALAW:
130+ case AV_CODEC_ID_PCM_MULAW:
131131 aiff->block_duration = 1;
132132 break;
133− case CODEC_ID_ADPCM_IMA_QT:
133+ case AV_CODEC_ID_ADPCM_IMA_QT:
134134 codec->block_align = 34*codec->channels;
135135 break;
136− case CODEC_ID_MACE3:
136+ case AV_CODEC_ID_MACE3:
137137 codec->block_align = 2*codec->channels;
138138 break;
139− case CODEC_ID_MACE6:
139+ case AV_CODEC_ID_MACE6:
140140 codec->block_align = 1*codec->channels;
141141 break;
142− case CODEC_ID_GSM:
142+ case AV_CODEC_ID_GSM:
143143 codec->block_align = 33;
144144 break;
145− case CODEC_ID_QCELP:
145+ case AV_CODEC_ID_QCELP:
146146 codec->block_align = 35;
147147 break;
148148 default:
libavformat/aiffenc.c+2−2
@@ -155,8 +155,8 @@ AVOutputFormat ff_aiff_muxer = { · 154 unmodified lines
155155 .mime_type = "audio/aiff",
156156 .extensions = "aif,aiff,afc,aifc",
157157 .priv_data_size = sizeof(AIFFOutputContext),
158− .audio_codec = CODEC_ID_PCM_S16BE,
159− .video_codec = CODEC_ID_NONE,
158+ .audio_codec = AV_CODEC_ID_PCM_S16BE,
159+ .video_codec = AV_CODEC_ID_NONE,
160160 .write_header = aiff_write_header,
161161 .write_packet = aiff_write_packet,
162162 .write_trailer = aiff_write_trailer,
libavformat/amr.c+9−9
@@ -39,9 +39,9 @@ static int amr_write_header(AVFormatContext *s) · 38 unmodified lines
3939
4040 s->priv_data = NULL;
4141
42− if (enc->codec_id == CODEC_ID_AMR_NB) {
42+ if (enc->codec_id == AV_CODEC_ID_AMR_NB) {
4343 avio_write(pb, AMR_header, sizeof(AMR_header) - 1); /* magic number */
44− } else if (enc->codec_id == CODEC_ID_AMR_WB) {
44+ } else if (enc->codec_id == AV_CODEC_ID_AMR_WB) {
4545 avio_write(pb, AMRWB_header, sizeof(AMRWB_header) - 1); /* magic number */
4646 } else {
4747 return -1;
@@ -89,11 +89,11 @@ static int amr_read_header(AVFormatContext *s) · 41 unmodified lines
8989 }
9090
9191 st->codec->codec_tag = MKTAG('s', 'a', 'w', 'b');
92− st->codec->codec_id = CODEC_ID_AMR_WB;
92+ st->codec->codec_id = AV_CODEC_ID_AMR_WB;
9393 st->codec->sample_rate = 16000;
9494 } else {
9595 st->codec->codec_tag = MKTAG('s', 'a', 'm', 'r');
96− st->codec->codec_id = CODEC_ID_AMR_NB;
96+ st->codec->codec_id = AV_CODEC_ID_AMR_NB;
9797 st->codec->sample_rate = 8000;
9898 }
9999 st->codec->channels = 1;
@@ -117,13 +117,13 @@ static int amr_read_packet(AVFormatContext *s, AVPacket *pkt) · 17 unmodified lines
117117 toc = avio_r8(s->pb);
118118 mode = (toc >> 3) & 0x0F;
119119
120− if (enc->codec_id == CODEC_ID_AMR_NB) {
120+ if (enc->codec_id == AV_CODEC_ID_AMR_NB) {
121121 static const uint8_t packed_size[16] = {
122122 12, 13, 15, 17, 19, 20, 26, 31, 5, 0, 0, 0, 0, 0, 0, 0
123123 };
124124
125125 size = packed_size[mode] + 1;
126− } else if (enc->codec_id == CODEC_ID_AMR_WB) {
126+ } else if (enc->codec_id == AV_CODEC_ID_AMR_WB) {
127127 static const uint8_t packed_size[16] = {
128128 18, 24, 33, 37, 41, 47, 51, 59, 61, 6, 6, 0, 0, 0, 1, 1
129129 };
@@ -142,7 +142,7 @@ static int amr_read_packet(AVFormatContext *s, AVPacket *pkt) · 12 unmodified lines
142142 pkt->stream_index = 0;
143143 pkt->pos = pos;
144144 pkt->data[0] = toc;
145− pkt->duration = enc->codec_id == CODEC_ID_AMR_NB ? 160 : 320;
145+ pkt->duration = enc->codec_id == AV_CODEC_ID_AMR_NB ? 160 : 320;
146146 read = avio_read(s->pb, pkt->data + 1, size - 1);
147147
148148 if (read != size - 1) {
@@ -170,8 +170,8 @@ AVOutputFormat ff_amr_muxer = { · 21 unmodified lines
170170 .long_name = NULL_IF_CONFIG_SMALL("3GPP AMR"),
171171 .mime_type = "audio/amr",
172172 .extensions = "amr",
173− .audio_codec = CODEC_ID_AMR_NB,
174− .video_codec = CODEC_ID_NONE,
173+ .audio_codec = AV_CODEC_ID_AMR_NB,
174+ .video_codec = AV_CODEC_ID_NONE,
175175 .write_header = amr_write_header,
176176 .write_packet = amr_write_packet,
177177 };
libavformat/anm.c+1−1
@@ -101,7 +101,7 @@ static int read_header(AVFormatContext *s) · 100 unmodified lines
101101 if (!st)
102102 return AVERROR(ENOMEM);
103103 st->codec->codec_type = AVMEDIA_TYPE_VIDEO;
104− st->codec->codec_id = CODEC_ID_ANM;
104+ st->codec->codec_id = AV_CODEC_ID_ANM;
105105 st->codec->codec_tag = 0; /* no fourcc */
106106 st->codec->width = avio_rl16(pb);
107107 st->codec->height = avio_rl16(pb);
libavformat/apc.c+1−1
@@ -44,7 +44,7 @@ static int apc_read_header(AVFormatContext *s) · 43 unmodified lines
4444 return AVERROR(ENOMEM);
4545
4646 st->codec->codec_type = AVMEDIA_TYPE_AUDIO;
47− st->codec->codec_id = CODEC_ID_ADPCM_IMA_APC;
47+ st->codec->codec_id = AV_CODEC_ID_ADPCM_IMA_APC;
4848
4949 avio_rl32(pb); /* number of samples */
5050 st->codec->sample_rate = avio_rl32(pb);
libavformat/ape.c+1−1
@@ -324,7 +324,7 @@ static int ape_read_header(AVFormatContext * s) · 323 unmodified lines
324324 total_blocks = (ape->totalframes == 0) ? 0 : ((ape->totalframes - 1) * ape->blocksperframe) + ape->finalframeblocks;
325325
326326 st->codec->codec_type = AVMEDIA_TYPE_AUDIO;
327− st->codec->codec_id = CODEC_ID_APE;
327+ st->codec->codec_id = AV_CODEC_ID_APE;
328328 st->codec->codec_tag = MKTAG('A', 'P', 'E', ' ');
329329 st->codec->channels = ape->channels;
330330 st->codec->sample_rate = ape->samplerate;
libavformat/apetag.c+2−2
@@ -57,7 +57,7 @@ static int ape_tag_read_field(AVFormatContext *s) · 56 unmodified lines
5757 return -1;
5858 if (flags & APE_TAG_FLAG_IS_BINARY) {
5959 uint8_t filename[1024];
60− enum CodecID id;
60+ enum AVCodecID id;
6161 AVStream *st = avformat_new_stream(s, NULL);
6262 if (!st)
6363 return AVERROR(ENOMEM);
@@ -70,7 +70,7 @@ static int ape_tag_read_field(AVFormatContext *s) · 6 unmodified lines
7070
7171 av_dict_set(&st->metadata, key, filename, 0);
7272
73− if ((id = ff_guess_image2_codec(filename)) != CODEC_ID_NONE) {
73+ if ((id = ff_guess_image2_codec(filename)) != AV_CODEC_ID_NONE) {
7474 AVPacket pkt;
7575 int ret;
7676
libavformat/asfdec.c+8−8
@@ -180,7 +180,7 @@ static int asf_read_picture(AVFormatContext *s, int len) · 179 unmodified lines
180180 {
181181 AVPacket pkt = { 0 };
182182 const CodecMime *mime = ff_id3v2_mime_tags;
183− enum CodecID id = CODEC_ID_NONE;
183+ enum AVCodecID id = AV_CODEC_ID_NONE;
184184 char mimetype[64];
185185 uint8_t *desc = NULL;
186186 ASFStream *ast = NULL;
@@ -207,14 +207,14 @@ static int asf_read_picture(AVFormatContext *s, int len) · 20 unmodified lines
207207
208208 /* picture MIME type */
209209 len -= avio_get_str16le(s->pb, len, mimetype, sizeof(mimetype));
210− while (mime->id != CODEC_ID_NONE) {
210+ while (mime->id != AV_CODEC_ID_NONE) {
211211 if (!strncmp(mime->str, mimetype, sizeof(mimetype))) {
212212 id = mime->id;
213213 break;
214214 }
215215 mime++;
216216 }
217− if (id == CODEC_ID_NONE) {
217+ if (id == AV_CODEC_ID_NONE) {
218218 av_log(s, AV_LOG_ERROR, "Unknown attached picture mimetype: %s.\n",
219219 mimetype);
220220 return 0;
@@ -370,7 +370,7 @@ static int asf_read_stream_properties(AVFormatContext *s, int64_t size) · 149 unmodified lines
370370 type = AVMEDIA_TYPE_VIDEO;
371371 } else if (!ff_guidcmp(&g, &ff_asf_jfif_media)) {
372372 type = AVMEDIA_TYPE_VIDEO;
373− st->codec->codec_id = CODEC_ID_MJPEG;
373+ st->codec->codec_id = AV_CODEC_ID_MJPEG;
374374 } else if (!ff_guidcmp(&g, &ff_asf_command_stream)) {
375375 type = AVMEDIA_TYPE_DATA;
376376 } else if (!ff_guidcmp(&g, &ff_asf_ext_stream_embed_stream_header)) {
@@ -411,10 +411,10 @@ static int asf_read_stream_properties(AVFormatContext *s, int64_t size) · 34 unmodified lines
411411 if (is_dvr_ms_audio) {
412412 // codec_id and codec_tag are unreliable in dvr_ms
413413 // files. Set them later by probing stream.
414− st->codec->codec_id = CODEC_ID_PROBE;
414+ st->codec->codec_id = AV_CODEC_ID_PROBE;
415415 st->codec->codec_tag = 0;
416416 }
417− if (st->codec->codec_id == CODEC_ID_AAC) {
417+ if (st->codec->codec_id == AV_CODEC_ID_AAC) {
418418 st->need_parsing = AVSTREAM_PARSE_NONE;
419419 } else {
420420 st->need_parsing = AVSTREAM_PARSE_FULL;
@@ -483,7 +483,7 @@ static int asf_read_stream_properties(AVFormatContext *s, int64_t size) · 62 unmodified lines
483483 av_freep(&st->codec->extradata);
484484 st->codec->extradata_size=0;
485485 }
486− if(st->codec->codec_id == CODEC_ID_H264)
486+ if(st->codec->codec_id == AV_CODEC_ID_H264)
487487 st->need_parsing = AVSTREAM_PARSE_FULL_ONCE;
488488 }
489489 pos2 = avio_tell(pb);
@@ -1143,7 +1143,7 @@ static int ff_asf_parse_packet(AVFormatContext *s, AVIOContext *pb, AVPacket *pk · 653 unmodified lines
11431143 /* test if whole packet is read */
11441144 if (asf_st->frag_offset == asf_st->pkt.size) {
11451145 //workaround for macroshit radio DVR-MS files
1146− if( s->streams[asf->stream_index]->codec->codec_id == CODEC_ID_MPEG2VIDEO
1146+ if( s->streams[asf->stream_index]->codec->codec_id == AV_CODEC_ID_MPEG2VIDEO
11471147 && asf_st->pkt.size > 100){
11481148 int i;
11491149 for(i=0; i<asf_st->pkt.size && !asf_st->pkt.data[i]; i++);
libavformat/asfenc.c+10−10
@@ -216,10 +216,10 @@ typedef struct { · 215 unmodified lines
216216 } ASFContext;
217217
218218 static const AVCodecTag codec_asf_bmp_tags[] = {
219− { CODEC_ID_MPEG4, MKTAG('M', 'P', '4', 'S') },
220− { CODEC_ID_MPEG4, MKTAG('M', '4', 'S', '2') },
221− { CODEC_ID_MSMPEG4V3, MKTAG('M', 'P', '4', '3') },
222− { CODEC_ID_NONE, 0 },
219+ { AV_CODEC_ID_MPEG4, MKTAG('M', 'P', '4', 'S') },
220+ { AV_CODEC_ID_MPEG4, MKTAG('M', '4', 'S', '2') },
221+ { AV_CODEC_ID_MSMPEG4V3, MKTAG('M', 'P', '4', '3') },
222+ { AV_CODEC_ID_NONE, 0 },
223223 };
224224
225225 #define PREROLL_TIME 3100
@@ -446,7 +446,7 @@ static int asf_write_header1(AVFormatContext *s, int64_t file_size, int64_t data · 220 unmodified lines
446446 }
447447 /* ERROR Correction */
448448 avio_w8(pb, 0x01);
449− if(enc->codec_id == CODEC_ID_ADPCM_G726 || !enc->block_align){
449+ if(enc->codec_id == AV_CODEC_ID_ADPCM_G726 || !enc->block_align){
450450 avio_wl16(pb, 0x0190);
451451 avio_wl16(pb, 0x0190);
452452 }else{
@@ -489,7 +489,7 @@ static int asf_write_header1(AVFormatContext *s, int64_t file_size, int64_t data · 36 unmodified lines
489489 else
490490 avio_wl16(pb, -1);
491491
492− if(enc->codec_id == CODEC_ID_WMAV2)
492+ if(enc->codec_id == AV_CODEC_ID_WMAV2)
493493 desc = "Windows Media Audio V8";
494494 else
495495 desc = p ? p->name : enc->codec_name;
@@ -884,8 +884,8 @@ AVOutputFormat ff_asf_muxer = { · 388 unmodified lines
884884 .mime_type = "video/x-ms-asf",
885885 .extensions = "asf,wmv,wma",
886886 .priv_data_size = sizeof(ASFContext),
887− .audio_codec = CONFIG_LIBMP3LAME ? CODEC_ID_MP3 : CODEC_ID_MP2,
888− .video_codec = CODEC_ID_MSMPEG4V3,
887+ .audio_codec = CONFIG_LIBMP3LAME ? AV_CODEC_ID_MP3 : AV_CODEC_ID_MP2,
888+ .video_codec = AV_CODEC_ID_MSMPEG4V3,
889889 .write_header = asf_write_header,
890890 .write_packet = asf_write_packet,
891891 .write_trailer = asf_write_trailer,
@@ -903,8 +903,8 @@ AVOutputFormat ff_asf_stream_muxer = { · 11 unmodified lines
903903 .mime_type = "video/x-ms-asf",
904904 .extensions = "asf,wmv,wma",
905905 .priv_data_size = sizeof(ASFContext),
906− .audio_codec = CONFIG_LIBMP3LAME ? CODEC_ID_MP3 : CODEC_ID_MP2,
907− .video_codec = CODEC_ID_MSMPEG4V3,
906+ .audio_codec = CONFIG_LIBMP3LAME ? AV_CODEC_ID_MP3 : AV_CODEC_ID_MP2,
907+ .video_codec = AV_CODEC_ID_MSMPEG4V3,
908908 .write_header = asf_write_stream_header,
909909 .write_packet = asf_write_packet,
910910 .write_trailer = asf_write_trailer,
libavformat/assdec.c+1−1
@@ -88,7 +88,7 @@ static int read_header(AVFormatContext *s) · 87 unmodified lines
8888 return -1;
8989 avpriv_set_pts_info(st, 64, 1, 100);
9090 st->codec->codec_type = AVMEDIA_TYPE_SUBTITLE;
91− st->codec->codec_id= CODEC_ID_SSA;
91+ st->codec->codec_id= AV_CODEC_ID_SSA;
9292
9393 header_remaining= INT_MAX;
9494 dst[0] = &st->codec->extradata;
libavformat/assenc.c+2−2
@@ -31,7 +31,7 @@ static int write_header(AVFormatContext *s) · 30 unmodified lines
3131 AVCodecContext *avctx= s->streams[0]->codec;
3232 uint8_t *last= NULL;
3333
34− if(s->nb_streams != 1 || avctx->codec_id != CODEC_ID_SSA){
34+ if(s->nb_streams != 1 || avctx->codec_id != AV_CODEC_ID_SSA){
3535 av_log(s, AV_LOG_ERROR, "Exactly one ASS/SSA stream is needed.\n");
3636 return -1;
3737 }
@@ -83,7 +83,7 @@ AVOutputFormat ff_ass_muxer = { · 45 unmodified lines
8383 .mime_type = "text/x-ssa",
8484 .extensions = "ass,ssa",
8585 .priv_data_size = sizeof(ASSContext),
86− .subtitle_codec = CODEC_ID_SSA,
86+ .subtitle_codec = AV_CODEC_ID_SSA,
8787 .write_header = write_header,
8888 .write_packet = write_packet,
8989 .write_trailer = write_trailer,
libavformat/au.c+12−12
@@ -38,15 +38,15 @@ · 37 unmodified lines
3838
3939 /* The libavcodec codecs we support, and the IDs they have in the file */
4040 static const AVCodecTag codec_au_tags[] = {
41− { CODEC_ID_PCM_MULAW, 1 },
42− { CODEC_ID_PCM_S8, 2 },
43− { CODEC_ID_PCM_S16BE, 3 },
44− { CODEC_ID_PCM_S24BE, 4 },
45− { CODEC_ID_PCM_S32BE, 5 },
46− { CODEC_ID_PCM_F32BE, 6 },
47− { CODEC_ID_PCM_F64BE, 7 },
48− { CODEC_ID_PCM_ALAW, 27 },
49− { CODEC_ID_NONE, 0 },
41+ { AV_CODEC_ID_PCM_MULAW, 1 },
42+ { AV_CODEC_ID_PCM_S8, 2 },
43+ { AV_CODEC_ID_PCM_S16BE, 3 },
44+ { AV_CODEC_ID_PCM_S24BE, 4 },
45+ { AV_CODEC_ID_PCM_S32BE, 5 },
46+ { AV_CODEC_ID_PCM_F32BE, 6 },
47+ { AV_CODEC_ID_PCM_F64BE, 7 },
48+ { AV_CODEC_ID_PCM_ALAW, 27 },
49+ { AV_CODEC_ID_NONE, 0 },
5050 };
5151
5252 #if CONFIG_AU_MUXER
@@ -124,7 +124,7 @@ static int au_read_header(AVFormatContext *s) · 71 unmodified lines
124124 unsigned int tag;
125125 AVIOContext *pb = s->pb;
126126 unsigned int id, channels, rate;
127− enum CodecID codec;
127+ enum AVCodecID codec;
128128 AVStream *st;
129129
130130 /* check ".snd" header */
@@ -206,8 +206,8 @@ AVOutputFormat ff_au_muxer = { · 75 unmodified lines
206206 .long_name = NULL_IF_CONFIG_SMALL("Sun AU"),
207207 .mime_type = "audio/basic",
208208 .extensions = "au",
209− .audio_codec = CODEC_ID_PCM_S16BE,
210− .video_codec = CODEC_ID_NONE,
209+ .audio_codec = AV_CODEC_ID_PCM_S16BE,
210+ .video_codec = AV_CODEC_ID_NONE,
211211 .write_header = au_write_header,
212212 .write_packet = au_write_packet,
213213 .write_trailer = au_write_trailer,
libavformat/avformat.h+18−18
@@ -374,9 +374,9 @@ typedef struct AVOutputFormat { · 373 unmodified lines
374374 const char *mime_type;
375375 const char *extensions; /**< comma-separated filename extensions */
376376 /* output support */
377− enum CodecID audio_codec; /**< default audio codec */
378− enum CodecID video_codec; /**< default video codec */
379− enum CodecID subtitle_codec; /**< default subtitle codec */
377+ enum AVCodecID audio_codec; /**< default audio codec */
378+ enum AVCodecID video_codec; /**< default video codec */
379+ enum AVCodecID subtitle_codec; /**< default subtitle codec */
380380 /**
381381 * can use flags: AVFMT_NOFILE, AVFMT_NEEDNUMBER, AVFMT_RAWPICTURE,
382382 * AVFMT_GLOBALHEADER, AVFMT_NOTIMESTAMPS, AVFMT_VARIABLE_FPS,
@@ -387,7 +387,7 @@ typedef struct AVOutputFormat { · 4 unmodified lines
387387
388388 /**
389389 * List of supported codec_id-codec_tag pairs, ordered by "better
390− * choice first". The arrays are all terminated by CODEC_ID_NONE.
390+ * choice first". The arrays are all terminated by AV_CODEC_ID_NONE.
391391 */
392392 const struct AVCodecTag * const *codec_tag;
393393
@@ -428,7 +428,7 @@ typedef struct AVOutputFormat { · 34 unmodified lines
428428 * @return 1 if the codec is supported, 0 if it is not.
429429 * A negative number if unknown.
430430 */
431− int (*query_codec)(enum CodecID id, int std_compliance);
431+ int (*query_codec)(enum AVCodecID id, int std_compliance);
432432 } AVOutputFormat;
433433 /**
434434 * @}
@@ -924,19 +924,19 @@ typedef struct AVFormatContext { · 489 unmodified lines
924924 * Forced video codec_id.
925925 * Demuxing: Set by user.
926926 */
927− enum CodecID video_codec_id;
927+ enum AVCodecID video_codec_id;
928928
929929 /**
930930 * Forced audio codec_id.
931931 * Demuxing: Set by user.
932932 */
933− enum CodecID audio_codec_id;
933+ enum AVCodecID audio_codec_id;
934934
935935 /**
936936 * Forced subtitle codec_id.
937937 * Demuxing: Set by user.
938938 */
939− enum CodecID subtitle_codec_id;
939+ enum AVCodecID subtitle_codec_id;
940940
941941 /**
942942 * Maximum amount of memory in bytes to use for the index of each stream.
@@ -1512,7 +1512,7 @@ AVOutputFormat *av_guess_format(const char *short_name, · 569 unmodified lines
15121512 /**
15131513 * Guess the codec ID based upon muxer and filename.
15141514 */
1515−enum CodecID av_guess_codec(AVOutputFormat *fmt, const char *short_name,
1515+enum AVCodecID av_guess_codec(AVOutputFormat *fmt, const char *short_name,
15161516 const char *filename, const char *mime_type,
15171517 enum AVMediaType type);
15181518
@@ -1581,13 +1581,13 @@ void av_pkt_dump_log2(void *avcl, int level, AVPacket *pkt, int dump_payload, · 62 unmodified lines
15811581 AVStream *st);
15821582
15831583 /**
1584− * Get the CodecID for the given codec tag tag.
1585− * If no codec id is found returns CODEC_ID_NONE.
1584+ * Get the AVCodecID for the given codec tag tag.
1585+ * If no codec id is found returns AV_CODEC_ID_NONE.
15861586 *
15871587 * @param tags list of supported codec_id-codec_tag pairs, as stored
15881588 * in AVInputFormat.codec_tag and AVOutputFormat.codec_tag
15891589 */
1590−enum CodecID av_codec_get_id(const struct AVCodecTag * const *tags, unsigned int tag);
1590+enum AVCodecID av_codec_get_id(const struct AVCodecTag * const *tags, unsigned int tag);
15911591
15921592 /**
15931593 * Get the codec tag for the given codec id id.
@@ -1596,7 +1596,7 @@ enum CodecID av_codec_get_id(const struct AVCodecTag * const *tags, unsigned int · 2 unmodified lines
15961596 * @param tags list of supported codec_id-codec_tag pairs, as stored
15971597 * in AVInputFormat.codec_tag and AVOutputFormat.codec_tag
15981598 */
1599−unsigned int av_codec_get_tag(const struct AVCodecTag * const *tags, enum CodecID id);
1599+unsigned int av_codec_get_tag(const struct AVCodecTag * const *tags, enum AVCodecID id);
16001600
16011601 int av_find_default_stream_index(AVFormatContext *s);
16021602
@@ -1707,26 +1707,26 @@ int av_match_ext(const char *filename, const char *extensions); · 104 unmodified lines
17071707 * @return 1 if codec with ID codec_id can be stored in ofmt, 0 if it cannot.
17081708 * A negative number if this information is not available.
17091709 */
1710−int avformat_query_codec(AVOutputFormat *ofmt, enum CodecID codec_id, int std_compliance);
1710+int avformat_query_codec(AVOutputFormat *ofmt, enum AVCodecID codec_id, int std_compliance);
17111711
17121712 /**
17131713 * @defgroup riff_fourcc RIFF FourCCs
17141714 * @{
1715− * Get the tables mapping RIFF FourCCs to libavcodec CodecIDs. The tables are
1715+ * Get the tables mapping RIFF FourCCs to libavcodec AVCodecIDs. The tables are
17161716 * meant to be passed to av_codec_get_id()/av_codec_get_tag() as in the
17171717 * following code:
17181718 * @code
17191719 * uint32_t tag = MKTAG('H', '2', '6', '4');
17201720 * const struct AVCodecTag *table[] = { avformat_get_riff_video_tags(), 0 };
1721− * enum CodecID id = av_codec_get_id(table, tag);
1721+ * enum AVCodecID id = av_codec_get_id(table, tag);
17221722 * @endcode
17231723 */
17241724 /**
1725− * @return the table mapping RIFF FourCCs for video to libavcodec CodecID.
1725+ * @return the table mapping RIFF FourCCs for video to libavcodec AVCodecID.
17261726 */
17271727 const struct AVCodecTag *avformat_get_riff_video_tags(void);
17281728 /**
1729− * @return the table mapping RIFF FourCCs for audio to CodecID.
1729+ * @return the table mapping RIFF FourCCs for audio to AVCodecID.
17301730 */
17311731 const struct AVCodecTag *avformat_get_riff_audio_tags(void);
17321732 /**
libavformat/avidec.c+8−8
@@ -554,7 +554,7 @@ static int avi_read_header(AVFormatContext *s) · 553 unmodified lines
554554 st->codec->width=avih_width;
555555 st->codec->height=avih_height;
556556 st->codec->codec_type = AVMEDIA_TYPE_VIDEO;
557− st->codec->codec_id = CODEC_ID_AMV;
557+ st->codec->codec_id = AV_CODEC_ID_AMV;
558558 avio_skip(pb, size);
559559 break;
560560 }
@@ -563,7 +563,7 @@ static int avi_read_header(AVFormatContext *s) · 2 unmodified lines
563563 if (tag1 == MKTAG('D', 'X', 'S', 'B') || tag1 == MKTAG('D','X','S','A')) {
564564 st->codec->codec_type = AVMEDIA_TYPE_SUBTITLE;
565565 st->codec->codec_tag = tag1;
566− st->codec->codec_id = CODEC_ID_XSUB;
566+ st->codec->codec_id = AV_CODEC_ID_XSUB;
567567 break;
568568 }
569569
@@ -608,7 +608,7 @@ static int avi_read_header(AVFormatContext *s) · 38 unmodified lines
608608 if(tag1 == MKTAG('A', 'V', 'R', 'n') &&
609609 st->codec->extradata_size >= 31 &&
610610 !memcmp(&st->codec->extradata[28], "1:1", 3))
611− st->codec->codec_id = CODEC_ID_RAWVIDEO;
611+ st->codec->codec_id = AV_CODEC_ID_RAWVIDEO;
612612
613613 if(st->codec->codec_tag==0 && st->codec->height > 0 && st->codec->extradata_size < 1U<<30){
614614 st->codec->extradata_size+= 9;
@@ -637,26 +637,26 @@ static int avi_read_header(AVFormatContext *s) · 22 unmodified lines
637637 /* ADTS header is in extradata, AAC without header must be
638638 * stored as exact frames. Parser not needed and it will
639639 * fail. */
640− if (st->codec->codec_id == CODEC_ID_AAC && st->codec->extradata_size)
640+ if (st->codec->codec_id == AV_CODEC_ID_AAC && st->codec->extradata_size)
641641 st->need_parsing = AVSTREAM_PARSE_NONE;
642642 /* AVI files with Xan DPCM audio (wrongly) declare PCM
643643 * audio in the header but have Axan as stream_code_tag. */
644644 if (st->codec->stream_codec_tag == AV_RL32("Axan")){
645− st->codec->codec_id = CODEC_ID_XAN_DPCM;
645+ st->codec->codec_id = AV_CODEC_ID_XAN_DPCM;
646646 st->codec->codec_tag = 0;
647647 }
648648 if (amv_file_format){
649− st->codec->codec_id = CODEC_ID_ADPCM_IMA_AMV;
649+ st->codec->codec_id = AV_CODEC_ID_ADPCM_IMA_AMV;
650650 ast->dshow_block_align = 0;
651651 }
652652 break;
653653 case AVMEDIA_TYPE_SUBTITLE:
654654 st->codec->codec_type = AVMEDIA_TYPE_SUBTITLE;
655− st->codec->codec_id = CODEC_ID_PROBE;
655+ st->codec->codec_id = AV_CODEC_ID_PROBE;
656656 break;
657657 default:
658658 st->codec->codec_type = AVMEDIA_TYPE_DATA;
659− st->codec->codec_id= CODEC_ID_NONE;
659+ st->codec->codec_id= AV_CODEC_ID_NONE;
660660 st->codec->codec_tag= 0;
661661 avio_skip(pb, size);
662662 break;
libavformat/avienc.c+6−6
@@ -234,7 +234,7 @@ static int avi_write_header(AVFormatContext *s) · 233 unmodified lines
234234 case AVMEDIA_TYPE_SUBTITLE:
235235 // XSUB subtitles behave like video tracks, other subtitles
236236 // are not (yet) supported.
237− if (stream->codec_id != CODEC_ID_XSUB) {
237+ if (stream->codec_id != AV_CODEC_ID_XSUB) {
238238 av_log(s, AV_LOG_ERROR, "Subtitle streams other than DivX XSUB are not supported by the AVI muxer.\n");
239239 return AVERROR_PATCHWELCOME;
240240 }
@@ -244,7 +244,7 @@ static int avi_write_header(AVFormatContext *s) · 3 unmodified lines
244244 case AVMEDIA_TYPE_DATA : ffio_wfourcc(pb, "dats"); break;
245245 }
246246 if(stream->codec_type == AVMEDIA_TYPE_VIDEO ||
247− stream->codec_id == CODEC_ID_XSUB)
247+ stream->codec_id == AV_CODEC_ID_XSUB)
248248 avio_wl32(pb, stream->codec_tag);
249249 else
250250 avio_wl32(pb, 1);
@@ -286,7 +286,7 @@ static int avi_write_header(AVFormatContext *s) · 35 unmodified lines
286286 case AVMEDIA_TYPE_SUBTITLE:
287287 // XSUB subtitles behave like video tracks, other subtitles
288288 // are not (yet) supported.
289− if (stream->codec_id != CODEC_ID_XSUB) break;
289+ if (stream->codec_id != AV_CODEC_ID_XSUB) break;
290290 case AVMEDIA_TYPE_VIDEO:
291291 ff_put_bmp_header(pb, stream, ff_codec_bmp_tags, 0);
292292 break;
@@ -615,7 +615,7 @@ static int avi_write_trailer(AVFormatContext *s) · 322 unmodified lines
615615 if (nb_frames < avist->packet_count)
616616 nb_frames = avist->packet_count;
617617 } else {
618− if (stream->codec_id == CODEC_ID_MP2 || stream->codec_id == CODEC_ID_MP3) {
618+ if (stream->codec_id == AV_CODEC_ID_MP2 || stream->codec_id == AV_CODEC_ID_MP3) {
619619 nb_frames += avist->packet_count;
620620 }
621621 }
@@ -645,8 +645,8 @@ AVOutputFormat ff_avi_muxer = { · 23 unmodified lines
645645 .mime_type = "video/x-msvideo",
646646 .extensions = "avi",
647647 .priv_data_size = sizeof(AVIContext),
648− .audio_codec = CONFIG_LIBMP3LAME ? CODEC_ID_MP3 : CODEC_ID_AC3,
649− .video_codec = CODEC_ID_MPEG4,
648+ .audio_codec = CONFIG_LIBMP3LAME ? AV_CODEC_ID_MP3 : AV_CODEC_ID_AC3,
649+ .video_codec = AV_CODEC_ID_MPEG4,
650650 .write_header = avi_write_header,
651651 .write_packet = avi_write_packet,
652652 .write_trailer = avi_write_trailer,
libavformat/avs.c+1−1
@@ -183,7 +183,7 @@ static int avs_read_packet(AVFormatContext * s, AVPacket * pkt) · 182 unmodified lines
183183 if (avs->st_video == NULL)
184184 return AVERROR(ENOMEM);
185185 avs->st_video->codec->codec_type = AVMEDIA_TYPE_VIDEO;
186− avs->st_video->codec->codec_id = CODEC_ID_AVS;
186+ avs->st_video->codec->codec_id = AV_CODEC_ID_AVS;
187187 avs->st_video->codec->width = avs->width;
188188 avs->st_video->codec->height = avs->height;
189189 avs->st_video->codec->bits_per_coded_sample=avs->bits_per_sample;
libavformat/bethsoftvid.c+2−2
@@ -112,7 +112,7 @@ static int read_frame(BVID_DemuxContext *vid, AVIOContext *pb, AVPacket *pkt, · 111 unmodified lines
112112 }
113113 avpriv_set_pts_info(st, 64, 185, vid->sample_rate);
114114 st->codec->codec_type = AVMEDIA_TYPE_VIDEO;
115− st->codec->codec_id = CODEC_ID_BETHSOFTVID;
115+ st->codec->codec_id = AV_CODEC_ID_BETHSOFTVID;
116116 st->codec->width = vid->width;
117117 st->codec->height = vid->height;
118118 }
@@ -237,7 +237,7 @@ static int vid_read_packet(AVFormatContext *s, · 118 unmodified lines
237237 return AVERROR(ENOMEM);
238238 vid->audio_index = st->index;
239239 st->codec->codec_type = AVMEDIA_TYPE_AUDIO;
240− st->codec->codec_id = CODEC_ID_PCM_U8;
240+ st->codec->codec_id = AV_CODEC_ID_PCM_U8;
241241 st->codec->channels = 1;
242242 st->codec->bits_per_coded_sample = 8;
243243 st->codec->sample_rate = vid->sample_rate;
libavformat/bfi.c+2−2
@@ -89,12 +89,12 @@ static int bfi_read_header(AVFormatContext * s) · 88 unmodified lines
8989 /* Set up the video codec... */
9090 avpriv_set_pts_info(vstream, 32, 1, fps);
9191 vstream->codec->codec_type = AVMEDIA_TYPE_VIDEO;
92− vstream->codec->codec_id = CODEC_ID_BFI;
92+ vstream->codec->codec_id = AV_CODEC_ID_BFI;
9393 vstream->codec->pix_fmt = PIX_FMT_PAL8;
9494
9595 /* Set up the audio codec now... */
9696 astream->codec->codec_type = AVMEDIA_TYPE_AUDIO;
97− astream->codec->codec_id = CODEC_ID_PCM_U8;
97+ astream->codec->codec_id = AV_CODEC_ID_PCM_U8;
9898 astream->codec->channels = 1;
9999 astream->codec->bits_per_coded_sample = 8;
100100 astream->codec->bit_rate =
libavformat/bink.c+2−2
@@ -113,7 +113,7 @@ static int read_header(AVFormatContext *s) · 112 unmodified lines
113113 avpriv_set_pts_info(vst, 64, fps_den, fps_num);
114114
115115 vst->codec->codec_type = AVMEDIA_TYPE_VIDEO;
116− vst->codec->codec_id = CODEC_ID_BINKVIDEO;
116+ vst->codec->codec_id = AV_CODEC_ID_BINKVIDEO;
117117 vst->codec->extradata = av_mallocz(4 + FF_INPUT_BUFFER_PADDING_SIZE);
118118 vst->codec->extradata_size = 4;
119119 avio_read(pb, vst->codec->extradata, 4);
@@ -140,7 +140,7 @@ static int read_header(AVFormatContext *s) · 20 unmodified lines
140140 avpriv_set_pts_info(ast, 64, 1, ast->codec->sample_rate);
141141 flags = avio_rl16(pb);
142142 ast->codec->codec_id = flags & BINK_AUD_USEDCT ?
143− CODEC_ID_BINKAUDIO_DCT : CODEC_ID_BINKAUDIO_RDFT;
143+ AV_CODEC_ID_BINKAUDIO_DCT : AV_CODEC_ID_BINKAUDIO_RDFT;
144144 ast->codec->channels = flags & BINK_AUD_STEREO ? 2 : 1;
145145 ast->codec->extradata = av_mallocz(4 + FF_INPUT_BUFFER_PADDING_SIZE);
146146 if (!ast->codec->extradata)
libavformat/bmv.c+2−2
@@ -47,7 +47,7 @@ static int bmv_read_header(AVFormatContext *s) · 46 unmodified lines
4747 if (!st)
4848 return AVERROR(ENOMEM);
4949 st->codec->codec_type = AVMEDIA_TYPE_VIDEO;
50− st->codec->codec_id = CODEC_ID_BMV_VIDEO;
50+ st->codec->codec_id = AV_CODEC_ID_BMV_VIDEO;
5151 st->codec->width = 640;
5252 st->codec->height = 429;
5353 st->codec->pix_fmt = PIX_FMT_PAL8;
@@ -56,7 +56,7 @@ static int bmv_read_header(AVFormatContext *s) · 2 unmodified lines
5656 if (!ast)
5757 return AVERROR(ENOMEM);
5858 ast->codec->codec_type = AVMEDIA_TYPE_AUDIO;
59− ast->codec->codec_id = CODEC_ID_BMV_AUDIO;
59+ ast->codec->codec_id = AV_CODEC_ID_BMV_AUDIO;
6060 ast->codec->channels = 2;
6161 ast->codec->sample_rate = 22050;
6262 avpriv_set_pts_info(ast, 16, 1, 22050);
libavformat/c93.c+1−1
@@ -84,7 +84,7 @@ static int read_header(AVFormatContext *s) · 83 unmodified lines
8484 return AVERROR(ENOMEM);
8585
8686 video->codec->codec_type = AVMEDIA_TYPE_VIDEO;
87− video->codec->codec_id = CODEC_ID_C93;
87+ video->codec->codec_id = AV_CODEC_ID_C93;
8888 video->codec->width = 320;
8989 video->codec->height = 192;
9090 /* 4:3 320x200 with 8 empty lines */
libavformat/caf.c+17−17
@@ -32,27 +32,27 @@ · 31 unmodified lines
3232 * Known codec tags for CAF
3333 */
3434 const AVCodecTag ff_codec_caf_tags[] = {
35− { CODEC_ID_AAC, MKBETAG('a','a','c',' ') },
36− { CODEC_ID_AC3, MKBETAG('a','c','-','3') },
37− { CODEC_ID_ALAC, MKBETAG('a','l','a','c') },
35+ { AV_CODEC_ID_AAC, MKBETAG('a','a','c',' ') },
36+ { AV_CODEC_ID_AC3, MKBETAG('a','c','-','3') },
37+ { AV_CODEC_ID_ALAC, MKBETAG('a','l','a','c') },
3838 /* FIXME: use DV demuxer, as done in MOV */
39− /*{ CODEC_ID_DVAUDIO, MKBETAG('v','d','v','a') },*/
40− /*{ CODEC_ID_DVAUDIO, MKBETAG('d','v','c','a') },*/
41− { CODEC_ID_ADPCM_IMA_QT, MKBETAG('i','m','a','4') },
42− { CODEC_ID_MACE3, MKBETAG('M','A','C','3') },
43− { CODEC_ID_MACE6, MKBETAG('M','A','C','6') },
44− { CODEC_ID_MP3, MKBETAG('.','m','p','3') },
45− { CODEC_ID_MP2, MKBETAG('.','m','p','2') },
46− { CODEC_ID_MP1, MKBETAG('.','m','p','1') },
47− { CODEC_ID_PCM_ALAW, MKBETAG('a','l','a','w') },
48− { CODEC_ID_PCM_MULAW, MKBETAG('u','l','a','w') },
49− { CODEC_ID_QCELP, MKBETAG('Q','c','l','p') },
50− { CODEC_ID_QDM2, MKBETAG('Q','D','M','2') },
51− { CODEC_ID_QDM2, MKBETAG('Q','D','M','C') },
39+ /*{ AV_CODEC_ID_DVAUDIO, MKBETAG('v','d','v','a') },*/
40+ /*{ AV_CODEC_ID_DVAUDIO, MKBETAG('d','v','c','a') },*/
41+ { AV_CODEC_ID_ADPCM_IMA_QT, MKBETAG('i','m','a','4') },
42+ { AV_CODEC_ID_MACE3, MKBETAG('M','A','C','3') },
43+ { AV_CODEC_ID_MACE6, MKBETAG('M','A','C','6') },
44+ { AV_CODEC_ID_MP3, MKBETAG('.','m','p','3') },
45+ { AV_CODEC_ID_MP2, MKBETAG('.','m','p','2') },
46+ { AV_CODEC_ID_MP1, MKBETAG('.','m','p','1') },
47+ { AV_CODEC_ID_PCM_ALAW, MKBETAG('a','l','a','w') },
48+ { AV_CODEC_ID_PCM_MULAW, MKBETAG('u','l','a','w') },
49+ { AV_CODEC_ID_QCELP, MKBETAG('Q','c','l','p') },
50+ { AV_CODEC_ID_QDM2, MKBETAG('Q','D','M','2') },
51+ { AV_CODEC_ID_QDM2, MKBETAG('Q','D','M','C') },
5252 /* currently unsupported codecs */
5353 /*{ AC-3 over S/PDIF MKBETAG('c','a','c','3') },*/
5454 /*{ MPEG4CELP MKBETAG('c','e','l','p') },*/
5555 /*{ MPEG4HVXC MKBETAG('h','v','x','c') },*/
5656 /*{ MPEG4TwinVQ MKBETAG('t','w','v','q') },*/
57− { CODEC_ID_NONE, 0 },
57+ { AV_CODEC_ID_NONE, 0 },
5858 };
libavformat/cafdec.c+3−3
@@ -103,7 +103,7 @@ static int read_kuki_chunk(AVFormatContext *s, int64_t size) · 102 unmodified lines
103103 if (size < 0 || size > INT_MAX - FF_INPUT_BUFFER_PADDING_SIZE)
104104 return -1;
105105
106− if (st->codec->codec_id == CODEC_ID_AAC) {
106+ if (st->codec->codec_id == AV_CODEC_ID_AAC) {
107107 /* The magic cookie format for AAC is an mp4 esds atom.
108108 The lavc AAC decoder requires the data from the codec specific
109109 description as extradata input. */
@@ -114,12 +114,12 @@ static int read_kuki_chunk(AVFormatContext *s, int64_t size) · 4 unmodified lines
114114 ff_mov_read_esds(s, pb, atom);
115115 skip = size - (avio_tell(pb) - strt);
116116 if (skip < 0 || !st->codec->extradata ||
117− st->codec->codec_id != CODEC_ID_AAC) {
117+ st->codec->codec_id != AV_CODEC_ID_AAC) {
118118 av_log(s, AV_LOG_ERROR, "invalid AAC magic cookie\n");
119119 return AVERROR_INVALIDDATA;
120120 }
121121 avio_skip(pb, skip);
122− } else if (st->codec->codec_id == CODEC_ID_ALAC) {
122+ } else if (st->codec->codec_id == AV_CODEC_ID_ALAC) {
123123 #define ALAC_PREAMBLE 12
124124 #define ALAC_HEADER 36
125125 #define ALAC_NEW_KUKI 24
libavformat/cavsvideodec.c+1−1
@@ -65,4 +65,4 @@ static int cavsvideo_probe(AVProbeData *p) · 64 unmodified lines
6565 return 0;
6666 }
6767
68−FF_DEF_RAWVIDEO_DEMUXER(cavsvideo, "raw Chinese AVS (Audio Video Standard)", cavsvideo_probe, NULL, CODEC_ID_CAVS)
68+FF_DEF_RAWVIDEO_DEMUXER(cavsvideo, "raw Chinese AVS (Audio Video Standard)", cavsvideo_probe, NULL, AV_CODEC_ID_CAVS)
libavformat/cdg.c+1−1
@@ -36,7 +36,7 @@ static int read_header(AVFormatContext *s) · 35 unmodified lines
3636 return AVERROR(ENOMEM);
3737
3838 vst->codec->codec_type = AVMEDIA_TYPE_VIDEO;
39− vst->codec->codec_id = CODEC_ID_CDGRAPHICS;
39+ vst->codec->codec_id = AV_CODEC_ID_CDGRAPHICS;
4040
4141 /// 75 sectors/sec * 4 packets/sector = 300 packets/sec
4242 avpriv_set_pts_info(vst, 32, 1, 300);
libavformat/cdxl.c+2−2
@@ -100,7 +100,7 @@ static int cdxl_read_packet(AVFormatContext *s, AVPacket *pkt) · 99 unmodified lines
100100
101101 st->codec->codec_type = AVMEDIA_TYPE_AUDIO;
102102 st->codec->codec_tag = 0;
103− st->codec->codec_id = CODEC_ID_PCM_S8;
103+ st->codec->codec_id = AV_CODEC_ID_PCM_S8;
104104 st->codec->channels = cdxl->header[1] & 0x10 ? 2 : 1;
105105 st->codec->sample_rate = cdxl->sample_rate;
106106 st->start_time = 0;
@@ -123,7 +123,7 @@ static int cdxl_read_packet(AVFormatContext *s, AVPacket *pkt) · 16 unmodified lines
123123
124124 st->codec->codec_type = AVMEDIA_TYPE_VIDEO;
125125 st->codec->codec_tag = 0;
126− st->codec->codec_id = CODEC_ID_CDXL;
126+ st->codec->codec_id = AV_CODEC_ID_CDXL;
127127 st->codec->width = width;
128128 st->codec->height = height;
129129 st->start_time = 0;
libavformat/crcenc.c+2−2
@@ -59,8 +59,8 @@ AVOutputFormat ff_crc_muxer = { · 58 unmodified lines
5959 .long_name = NULL_IF_CONFIG_SMALL("CRC testing"),
6060 .extensions = "",
6161 .priv_data_size = sizeof(CRCState),
62− .audio_codec = CODEC_ID_PCM_S16LE,
63− .video_codec = CODEC_ID_RAWVIDEO,
62+ .audio_codec = AV_CODEC_ID_PCM_S16LE,
63+ .video_codec = AV_CODEC_ID_RAWVIDEO,
6464 .write_header = crc_write_header,
6565 .write_packet = crc_write_packet,
6666 .write_trailer = crc_write_trailer,
libavformat/daud.c+3−3
@@ -25,7 +25,7 @@ static int daud_header(AVFormatContext *s) { · 24 unmodified lines
2525 if (!st)
2626 return AVERROR(ENOMEM);
2727 st->codec->codec_type = AVMEDIA_TYPE_AUDIO;
28− st->codec->codec_id = CODEC_ID_PCM_S24DAUD;
28+ st->codec->codec_id = AV_CODEC_ID_PCM_S24DAUD;
2929 st->codec->codec_tag = MKTAG('d', 'a', 'u', 'd');
3030 st->codec->channels = 6;
3131 st->codec->sample_rate = 96000;
@@ -84,8 +84,8 @@ AVOutputFormat ff_daud_muxer = { · 52 unmodified lines
8484 .name = "daud",
8585 .long_name = NULL_IF_CONFIG_SMALL("D-Cinema audio"),
8686 .extensions = "302",
87− .audio_codec = CODEC_ID_PCM_S24DAUD,
88− .video_codec = CODEC_ID_NONE,
87+ .audio_codec = AV_CODEC_ID_PCM_S24DAUD,
88+ .video_codec = AV_CODEC_ID_NONE,
8989 .write_header = daud_write_header,
9090 .write_packet = daud_write_packet,
9191 .flags = AVFMT_NOTIMESTAMPS,
libavformat/dfa.c+1−1
@@ -50,7 +50,7 @@ static int dfa_read_header(AVFormatContext *s) · 49 unmodified lines
5050 return AVERROR(ENOMEM);
5151
5252 st->codec->codec_type = AVMEDIA_TYPE_VIDEO;
53− st->codec->codec_id = CODEC_ID_DFA;
53+ st->codec->codec_id = AV_CODEC_ID_DFA;
5454 st->codec->width = avio_rl16(pb);
5555 st->codec->height = avio_rl16(pb);
5656 mspf = avio_rl32(pb);
libavformat/diracdec.c+1−1
@@ -31,4 +31,4 @@ static int dirac_probe(AVProbeData *p) · 30 unmodified lines
3131 return 0;
3232 }
3333
34−FF_DEF_RAWVIDEO_DEMUXER(dirac, "raw Dirac", dirac_probe, NULL, CODEC_ID_DIRAC)
34+FF_DEF_RAWVIDEO_DEMUXER(dirac, "raw Dirac", dirac_probe, NULL, AV_CODEC_ID_DIRAC)
libavformat/dnxhddec.c+1−1
@@ -42,4 +42,4 @@ static int dnxhd_probe(AVProbeData *p) · 41 unmodified lines
4242 return AVPROBE_SCORE_MAX;
4343 }
4444
45−FF_DEF_RAWVIDEO_DEMUXER(dnxhd, "raw DNxHD (SMPTE VC-3)", dnxhd_probe, NULL, CODEC_ID_DNXHD)
45+FF_DEF_RAWVIDEO_DEMUXER(dnxhd, "raw DNxHD (SMPTE VC-3)", dnxhd_probe, NULL, AV_CODEC_ID_DNXHD)
libavformat/dsicin.c+2−2
@@ -115,7 +115,7 @@ static int cin_read_header(AVFormatContext *s) · 114 unmodified lines
115115 avpriv_set_pts_info(st, 32, 1, 12);
116116 cin->video_stream_index = st->index;
117117 st->codec->codec_type = AVMEDIA_TYPE_VIDEO;
118− st->codec->codec_id = CODEC_ID_DSICINVIDEO;
118+ st->codec->codec_id = AV_CODEC_ID_DSICINVIDEO;
119119 st->codec->codec_tag = 0; /* no fourcc */
120120 st->codec->width = hdr->video_frame_width;
121121 st->codec->height = hdr->video_frame_height;
@@ -128,7 +128,7 @@ static int cin_read_header(AVFormatContext *s) · 6 unmodified lines
128128 avpriv_set_pts_info(st, 32, 1, 22050);
129129 cin->audio_stream_index = st->index;
130130 st->codec->codec_type = AVMEDIA_TYPE_AUDIO;
131− st->codec->codec_id = CODEC_ID_DSICINAUDIO;
131+ st->codec->codec_id = AV_CODEC_ID_DSICINAUDIO;
132132 st->codec->codec_tag = 0; /* no tag */
133133 st->codec->channels = 1;
134134 st->codec->sample_rate = 22050;
libavformat/dtsdec.c+1−1
@@ -73,5 +73,5 @@ AVInputFormat ff_dts_demuxer = { · 72 unmodified lines
7373 .read_packet = ff_raw_read_partial_packet,
7474 .flags = AVFMT_GENERIC_INDEX,
7575 .extensions = "dts",
76− .raw_codec_id = CODEC_ID_DTS,
76+ .raw_codec_id = AV_CODEC_ID_DTS,
7777 };
libavformat/dv.c+2−2
@@ -236,7 +236,7 @@ static int dv_extract_audio_info(DVDemuxContext* c, uint8_t* frame) · 235 unmodified lines
236236 break;
237237 avpriv_set_pts_info(c->ast[i], 64, 1, 30000);
238238 c->ast[i]->codec->codec_type = AVMEDIA_TYPE_AUDIO;
239− c->ast[i]->codec->codec_id = CODEC_ID_PCM_S16LE;
239+ c->ast[i]->codec->codec_id = AV_CODEC_ID_PCM_S16LE;
240240
241241 av_init_packet(&c->audio_pkt[i]);
242242 c->audio_pkt[i].size = 0;
@@ -306,7 +306,7 @@ DVDemuxContext* avpriv_dv_init_demux(AVFormatContext *s) · 63 unmodified lines
306306
307307 c->fctx = s;
308308 c->vst->codec->codec_type = AVMEDIA_TYPE_VIDEO;
309− c->vst->codec->codec_id = CODEC_ID_DVVIDEO;
309+ c->vst->codec->codec_id = AV_CODEC_ID_DVVIDEO;
310310 c->vst->codec->bit_rate = 25000000;
311311 c->vst->start_time = 0;
312312
libavformat/dvenc.c+4−4
@@ -318,10 +318,10 @@ static DVMuxContext* dv_init_mux(AVFormatContext* s) · 317 unmodified lines
318318 }
319319
320320 /* Some checks -- DV format is very picky about its incoming streams */
321− if (!vst || vst->codec->codec_id != CODEC_ID_DVVIDEO)
321+ if (!vst || vst->codec->codec_id != AV_CODEC_ID_DVVIDEO)
322322 goto bail_out;
323323 for (i=0; i<c->n_ast; i++) {
324− if (c->ast[i] && (c->ast[i]->codec->codec_id != CODEC_ID_PCM_S16LE ||
324+ if (c->ast[i] && (c->ast[i]->codec->codec_id != AV_CODEC_ID_PCM_S16LE ||
325325 c->ast[i]->codec->sample_rate != 48000 ||
326326 c->ast[i]->codec->channels != 2))
327327 goto bail_out;
@@ -408,8 +408,8 @@ AVOutputFormat ff_dv_muxer = { · 80 unmodified lines
408408 .long_name = NULL_IF_CONFIG_SMALL("DV (Digital Video)"),
409409 .extensions = "dv",
410410 .priv_data_size = sizeof(DVMuxContext),
411− .audio_codec = CODEC_ID_PCM_S16LE,
412− .video_codec = CODEC_ID_DVVIDEO,
411+ .audio_codec = AV_CODEC_ID_PCM_S16LE,
412+ .video_codec = AV_CODEC_ID_DVVIDEO,
413413 .write_header = dv_write_header,
414414 .write_packet = dv_write_packet,
415415 .write_trailer = dv_write_trailer,
libavformat/dxa.c+1−1
@@ -126,7 +126,7 @@ static int dxa_read_header(AVFormatContext *s) · 125 unmodified lines
126126
127127 /* now we are ready: build format streams */
128128 st->codec->codec_type = AVMEDIA_TYPE_VIDEO;
129− st->codec->codec_id = CODEC_ID_DXA;
129+ st->codec->codec_id = AV_CODEC_ID_DXA;
130130 st->codec->width = w;
131131 st->codec->height = h;
132132 av_reduce(&den, &num, den, num, (1UL<<31)-1);
libavformat/eacdata.c+1−1
@@ -70,7 +70,7 @@ static int cdata_read_header(AVFormatContext *s) · 69 unmodified lines
7070 return AVERROR(ENOMEM);
7171 st->codec->codec_type = AVMEDIA_TYPE_AUDIO;
7272 st->codec->codec_tag = 0; /* no fourcc */
73− st->codec->codec_id = CODEC_ID_ADPCM_EA_XAS;
73+ st->codec->codec_id = AV_CODEC_ID_ADPCM_EA_XAS;
7474 st->codec->channels = cdata->channels;
7575 st->codec->sample_rate = sample_rate;
7676 avpriv_set_pts_info(st, 64, 1, sample_rate);
libavformat/electronicarts.c+35−35
@@ -63,12 +63,12 @@ · 62 unmodified lines
6363 typedef struct EaDemuxContext {
6464 int big_endian;
6565
66− enum CodecID video_codec;
66+ enum AVCodecID video_codec;
6767 AVRational time_base;
6868 int width, height;
6969 int video_stream_index;
7070
71− enum CodecID audio_codec;
71+ enum AVCodecID audio_codec;
7272 int audio_stream_index;
7373
7474 int bytes;
@@ -174,25 +174,25 @@ static int process_audio_header_elements(AVFormatContext *s) · 99 unmodified lines
174174 }
175175
176176 switch (compression_type) {
177− case 0: ea->audio_codec = CODEC_ID_PCM_S16LE; break;
178− case 7: ea->audio_codec = CODEC_ID_ADPCM_EA; break;
177+ case 0: ea->audio_codec = AV_CODEC_ID_PCM_S16LE; break;
178+ case 7: ea->audio_codec = AV_CODEC_ID_ADPCM_EA; break;
179179 case -1:
180180 switch (revision) {
181− case 1: ea->audio_codec = CODEC_ID_ADPCM_EA_R1; break;
182− case 2: ea->audio_codec = CODEC_ID_ADPCM_EA_R2; break;
183− case 3: ea->audio_codec = CODEC_ID_ADPCM_EA_R3; break;
181+ case 1: ea->audio_codec = AV_CODEC_ID_ADPCM_EA_R1; break;
182+ case 2: ea->audio_codec = AV_CODEC_ID_ADPCM_EA_R2; break;
183+ case 3: ea->audio_codec = AV_CODEC_ID_ADPCM_EA_R3; break;
184184 case -1: break;
185185 default:
186186 av_log(s, AV_LOG_ERROR, "unsupported stream type; revision=%i\n", revision);
187187 return 0;
188188 }
189189 switch (revision2) {
190− case 8: ea->audio_codec = CODEC_ID_PCM_S16LE_PLANAR; break;
191− case 10: ea->audio_codec = CODEC_ID_ADPCM_EA_R2; break;
192− case 16: ea->audio_codec = CODEC_ID_MP3; break;
190+ case 8: ea->audio_codec = AV_CODEC_ID_PCM_S16LE_PLANAR; break;
191+ case 10: ea->audio_codec = AV_CODEC_ID_ADPCM_EA_R2; break;
192+ case 16: ea->audio_codec = AV_CODEC_ID_MP3; break;
193193 case -1: break;
194194 default:
195− ea->audio_codec = CODEC_ID_NONE;
195+ ea->audio_codec = AV_CODEC_ID_NONE;
196196 av_log(s, AV_LOG_ERROR, "unsupported stream type; revision2=%i\n", revision2);
197197 return 0;
198198 }
@@ -227,12 +227,12 @@ static int process_audio_header_eacs(AVFormatContext *s) · 28 unmodified lines
227227 switch (compression_type) {
228228 case 0:
229229 switch (ea->bytes) {
230− case 1: ea->audio_codec = CODEC_ID_PCM_S8; break;
231− case 2: ea->audio_codec = CODEC_ID_PCM_S16LE; break;
230+ case 1: ea->audio_codec = AV_CODEC_ID_PCM_S8; break;
231+ case 2: ea->audio_codec = AV_CODEC_ID_PCM_S16LE; break;
232232 }
233233 break;
234− case 1: ea->audio_codec = CODEC_ID_PCM_MULAW; ea->bytes = 1; break;
235− case 2: ea->audio_codec = CODEC_ID_ADPCM_IMA_EA_EACS; break;
234+ case 1: ea->audio_codec = AV_CODEC_ID_PCM_MULAW; ea->bytes = 1; break;
235+ case 2: ea->audio_codec = AV_CODEC_ID_ADPCM_IMA_EA_EACS; break;
236236 default:
237237 av_log (s, AV_LOG_ERROR, "unsupported stream type; audio compression_type=%i\n", compression_type);
238238 }
@@ -252,7 +252,7 @@ static int process_audio_header_sead(AVFormatContext *s) · 13 unmodified lines
252252 ea->sample_rate = avio_rl32(pb);
253253 ea->bytes = avio_rl32(pb); /* 1=8-bit, 2=16-bit */
254254 ea->num_channels = avio_rl32(pb);
255− ea->audio_codec = CODEC_ID_ADPCM_IMA_EA_SEAD;
255+ ea->audio_codec = AV_CODEC_ID_ADPCM_IMA_EA_SEAD;
256256
257257 return 1;
258258 }
@@ -265,7 +265,7 @@ static int process_video_header_mdec(AVFormatContext *s) · 6 unmodified lines
265265 ea->width = avio_rl16(pb);
266266 ea->height = avio_rl16(pb);
267267 ea->time_base = (AVRational){1,15};
268− ea->video_codec = CODEC_ID_MDEC;
268+ ea->video_codec = AV_CODEC_ID_MDEC;
269269 return 1;
270270 }
271271
@@ -277,7 +277,7 @@ static int process_video_header_vp6(AVFormatContext *s) · 5 unmodified lines
277277 avio_skip(pb, 16);
278278 ea->time_base.den = avio_rl32(pb);
279279 ea->time_base.num = avio_rl32(pb);
280− ea->video_codec = CODEC_ID_VP6;
280+ ea->video_codec = AV_CODEC_ID_VP6;
281281
282282 return 1;
283283 }
@@ -291,7 +291,7 @@ static int process_video_header_cmv(AVFormatContext *s) · 7 unmodified lines
291291 fps = avio_rl16(s->pb);
292292 if (fps)
293293 ea->time_base = (AVRational){1, fps};
294− ea->video_codec = CODEC_ID_CMV;
294+ ea->video_codec = AV_CODEC_ID_CMV;
295295
296296 return 0;
297297 }
@@ -347,7 +347,7 @@ static int process_ea_header(AVFormatContext *s) { · 49 unmodified lines
347347 break;
348348
349349 case kVGT_TAG:
350− ea->video_codec = CODEC_ID_TGV;
350+ ea->video_codec = AV_CODEC_ID_TGV;
351351 ea->time_base = (AVRational){1, 15};
352352 break;
353353
@@ -356,20 +356,20 @@ static int process_ea_header(AVFormatContext *s) { · 2 unmodified lines
356356 break;
357357
358358 case MPCh_TAG:
359− ea->video_codec = CODEC_ID_MPEG2VIDEO;
359+ ea->video_codec = AV_CODEC_ID_MPEG2VIDEO;
360360 break;
361361
362362 case pQGT_TAG:
363363 case TGQs_TAG:
364− ea->video_codec = CODEC_ID_TGQ;
364+ ea->video_codec = AV_CODEC_ID_TGQ;
365365 break;
366366
367367 case pIQT_TAG:
368− ea->video_codec = CODEC_ID_TQI;
368+ ea->video_codec = AV_CODEC_ID_TQI;
369369 break;
370370
371371 case MADk_TAG :
372− ea->video_codec = CODEC_ID_MAD;
372+ ea->video_codec = AV_CODEC_ID_MAD;
373373 break;
374374
375375 case MVhd_TAG :
@@ -451,7 +451,7 @@ static int ea_read_header(AVFormatContext *s) · 75 unmodified lines
451451 }
452452 if (ea->bytes <= 0) {
453453 av_log(s, AV_LOG_ERROR, "Invalid number of bytes per sample: %d\n", ea->bytes);
454− ea->audio_codec = CODEC_ID_NONE;
454+ ea->audio_codec = AV_CODEC_ID_NONE;
455455 return 1;
456456 }
457457
@@ -509,8 +509,8 @@ static int ea_read_packet(AVFormatContext *s, · 51 unmodified lines
509509 if (!ea->audio_codec) {
510510 avio_skip(pb, chunk_size);
511511 break;
512− } else if (ea->audio_codec == CODEC_ID_PCM_S16LE_PLANAR ||
513− ea->audio_codec == CODEC_ID_MP3) {
512+ } else if (ea->audio_codec == AV_CODEC_ID_PCM_S16LE_PLANAR ||
513+ ea->audio_codec == AV_CODEC_ID_MP3) {
514514 num_samples = avio_rl32(pb);
515515 avio_skip(pb, 8);
516516 chunk_size -= 12;
@@ -521,20 +521,20 @@ static int ea_read_packet(AVFormatContext *s, · 4 unmodified lines
521521 pkt->stream_index = ea->audio_stream_index;
522522
523523 switch (ea->audio_codec) {
524− case CODEC_ID_ADPCM_EA:
525− case CODEC_ID_ADPCM_EA_R1:
526− case CODEC_ID_ADPCM_EA_R2:
527− case CODEC_ID_ADPCM_IMA_EA_EACS:
524+ case AV_CODEC_ID_ADPCM_EA:
525+ case AV_CODEC_ID_ADPCM_EA_R1:
526+ case AV_CODEC_ID_ADPCM_EA_R2:
527+ case AV_CODEC_ID_ADPCM_IMA_EA_EACS:
528528 pkt->duration = AV_RL32(pkt->data);
529529 break;
530− case CODEC_ID_ADPCM_EA_R3:
530+ case AV_CODEC_ID_ADPCM_EA_R3:
531531 pkt->duration = AV_RB32(pkt->data);
532532 break;
533− case CODEC_ID_ADPCM_IMA_EA_SEAD:
533+ case AV_CODEC_ID_ADPCM_IMA_EA_SEAD:
534534 pkt->duration = ret * 2 / ea->num_channels;
535535 break;
536− case CODEC_ID_PCM_S16LE_PLANAR:
537− case CODEC_ID_MP3:
536+ case AV_CODEC_ID_PCM_S16LE_PLANAR:
537+ case AV_CODEC_ID_MP3:
538538 pkt->duration = num_samples;
539539 break;
540540 default:
libavformat/ffmenc.c+2−2
@@ -243,8 +243,8 @@ AVOutputFormat ff_ffm_muxer = { · 242 unmodified lines
243243 .mime_type = "",
244244 .extensions = "ffm",
245245 .priv_data_size = sizeof(FFMContext),
246− .audio_codec = CODEC_ID_MP2,
247− .video_codec = CODEC_ID_MPEG1VIDEO,
246+ .audio_codec = AV_CODEC_ID_MP2,
247+ .video_codec = AV_CODEC_ID_MPEG1VIDEO,
248248 .write_header = ffm_write_header,
249249 .write_packet = ffm_write_packet,
250250 .write_trailer = ffm_write_trailer,
libavformat/ffmetadec.c+1−1
@@ -138,7 +138,7 @@ static int read_header(AVFormatContext *s) · 137 unmodified lines
138138 return -1;
139139
140140 st->codec->codec_type = AVMEDIA_TYPE_DATA;
141− st->codec->codec_id = CODEC_ID_FFMETADATA;
141+ st->codec->codec_id = AV_CODEC_ID_FFMETADATA;
142142
143143 m = &st->metadata;
144144 } else if (!memcmp(line, ID_CHAPTER, strlen(ID_CHAPTER))) {
libavformat/filmstripdec.c+1−1
@@ -61,7 +61,7 @@ static int read_header(AVFormatContext *s) · 60 unmodified lines
6161
6262 avio_skip(pb, 2);
6363 st->codec->codec_type = AVMEDIA_TYPE_VIDEO;
64− st->codec->codec_id = CODEC_ID_RAWVIDEO;
64+ st->codec->codec_id = AV_CODEC_ID_RAWVIDEO;
6565 st->codec->pix_fmt = PIX_FMT_RGBA;
6666 st->codec->codec_tag = 0; /* no fourcc */
6767 st->codec->width = avio_rb16(pb);
libavformat/filmstripenc.c+2−2
@@ -76,8 +76,8 @@ AVOutputFormat ff_filmstrip_muxer = { · 75 unmodified lines
7676 .long_name = NULL_IF_CONFIG_SMALL("Adobe Filmstrip"),
7777 .extensions = "flm",
7878 .priv_data_size = sizeof(FilmstripMuxContext),
79− .audio_codec = CODEC_ID_NONE,
80− .video_codec = CODEC_ID_RAWVIDEO,
79+ .audio_codec = AV_CODEC_ID_NONE,
80+ .video_codec = AV_CODEC_ID_RAWVIDEO,
8181 .write_header = write_header,
8282 .write_packet = write_packet,
8383 .write_trailer = write_trailer,
libavformat/flacdec.c+5−5
@@ -31,7 +31,7 @@ · 30 unmodified lines
3131 static int parse_picture(AVFormatContext *s, uint8_t *buf, int buf_size)
3232 {
3333 const CodecMime *mime = ff_id3v2_mime_tags;
34− enum CodecID id = CODEC_ID_NONE;
34+ enum AVCodecID id = AV_CODEC_ID_NONE;
3535 uint8_t mimetype[64], *desc = NULL, *data = NULL;
3636 AVIOContext *pb = NULL;
3737 AVStream *st;
@@ -65,14 +65,14 @@ static int parse_picture(AVFormatContext *s, uint8_t *buf, int buf_size) · 27 unmodified lines
6565 }
6666 mimetype[len] = 0;
6767
68− while (mime->id != CODEC_ID_NONE) {
68+ while (mime->id != AV_CODEC_ID_NONE) {
6969 if (!strncmp(mime->str, mimetype, sizeof(mimetype))) {
7070 id = mime->id;
7171 break;
7272 }
7373 mime++;
7474 }
75− if (id == CODEC_ID_NONE) {
75+ if (id == AV_CODEC_ID_NONE) {
7676 av_log(s, AV_LOG_ERROR, "Unknown attached picture mimetype: %s.\n",
7777 mimetype);
7878 if (s->error_recognition & AV_EF_EXPLODE)
@@ -164,7 +164,7 @@ static int flac_read_header(AVFormatContext *s) · 85 unmodified lines
164164 if (!st)
165165 return AVERROR(ENOMEM);
166166 st->codec->codec_type = AVMEDIA_TYPE_AUDIO;
167− st->codec->codec_id = CODEC_ID_FLAC;
167+ st->codec->codec_id = AV_CODEC_ID_FLAC;
168168 st->need_parsing = AVSTREAM_PARSE_FULL;
169169 /* the parameters will be extracted from the compressed bitstream */
170170
@@ -293,5 +293,5 @@ AVInputFormat ff_flac_demuxer = { · 122 unmodified lines
293293 .read_packet = ff_raw_read_partial_packet,
294294 .flags = AVFMT_GENERIC_INDEX,
295295 .extensions = "flac",
296− .raw_codec_id = CODEC_ID_FLAC,
296+ .raw_codec_id = AV_CODEC_ID_FLAC,
297297 };
libavformat/flacenc.c+2−2
@@ -122,8 +122,8 @@ AVOutputFormat ff_flac_muxer = { · 121 unmodified lines
122122 .long_name = NULL_IF_CONFIG_SMALL("raw FLAC"),
123123 .mime_type = "audio/x-flac",
124124 .extensions = "flac",
125− .audio_codec = CODEC_ID_FLAC,
126− .video_codec = CODEC_ID_NONE,
125+ .audio_codec = AV_CODEC_ID_FLAC,
126+ .video_codec = AV_CODEC_ID_NONE,
127127 .write_header = flac_write_header,
128128 .write_packet = flac_write_packet,
129129 .write_trailer = flac_write_trailer,
libavformat/flic.c+2−2
@@ -110,7 +110,7 @@ static int flic_read_header(AVFormatContext *s) · 109 unmodified lines
110110 return AVERROR(ENOMEM);
111111 flic->video_stream_index = st->index;
112112 st->codec->codec_type = AVMEDIA_TYPE_VIDEO;
113− st->codec->codec_id = CODEC_ID_FLIC;
113+ st->codec->codec_id = AV_CODEC_ID_FLIC;
114114 st->codec->codec_tag = 0; /* no fourcc */
115115 st->codec->width = AV_RL16(&header[0x08]);
116116 st->codec->height = AV_RL16(&header[0x0A]);
@@ -154,7 +154,7 @@ static int flic_read_header(AVFormatContext *s) · 37 unmodified lines
154154 /* all audio frames are the same size, so use the size of the first chunk for block_align */
155155 ast->codec->block_align = AV_RL32(&preamble[0]);
156156 ast->codec->codec_type = AVMEDIA_TYPE_AUDIO;
157− ast->codec->codec_id = CODEC_ID_PCM_U8;
157+ ast->codec->codec_id = AV_CODEC_ID_PCM_U8;
158158 ast->codec->codec_tag = 0;
159159 ast->codec->sample_rate = FLIC_TFTD_SAMPLE_RATE;
160160 ast->codec->channels = 1;
libavformat/flvdec.c+42−42
@@ -93,34 +93,34 @@ static int flv_same_audio_codec(AVCodecContext *acodec, int flags) · 92 unmodified lines
9393 switch(flv_codecid) {
9494 //no distinction between S16 and S8 PCM codec flags
9595 case FLV_CODECID_PCM:
96− codec_id = bits_per_coded_sample == 8 ? CODEC_ID_PCM_U8 :
96+ codec_id = bits_per_coded_sample == 8 ? AV_CODEC_ID_PCM_U8 :
9797 #if HAVE_BIGENDIAN
98− CODEC_ID_PCM_S16BE;
98+ AV_CODEC_ID_PCM_S16BE;
9999 #else
100− CODEC_ID_PCM_S16LE;
100+ AV_CODEC_ID_PCM_S16LE;
101101 #endif
102102 return codec_id == acodec->codec_id;
103103 case FLV_CODECID_PCM_LE:
104− codec_id = bits_per_coded_sample == 8 ? CODEC_ID_PCM_U8 : CODEC_ID_PCM_S16LE;
104+ codec_id = bits_per_coded_sample == 8 ? AV_CODEC_ID_PCM_U8 : AV_CODEC_ID_PCM_S16LE;
105105 return codec_id == acodec->codec_id;
106106 case FLV_CODECID_AAC:
107− return acodec->codec_id == CODEC_ID_AAC;
107+ return acodec->codec_id == AV_CODEC_ID_AAC;
108108 case FLV_CODECID_ADPCM:
109− return acodec->codec_id == CODEC_ID_ADPCM_SWF;
109+ return acodec->codec_id == AV_CODEC_ID_ADPCM_SWF;
110110 case FLV_CODECID_SPEEX:
111− return acodec->codec_id == CODEC_ID_SPEEX;
111+ return acodec->codec_id == AV_CODEC_ID_SPEEX;
112112 case FLV_CODECID_MP3:
113− return acodec->codec_id == CODEC_ID_MP3;
113+ return acodec->codec_id == AV_CODEC_ID_MP3;
114114 case FLV_CODECID_NELLYMOSER_8KHZ_MONO:
115115 case FLV_CODECID_NELLYMOSER_16KHZ_MONO:
116116 case FLV_CODECID_NELLYMOSER:
117− return acodec->codec_id == CODEC_ID_NELLYMOSER;
117+ return acodec->codec_id == AV_CODEC_ID_NELLYMOSER;
118118 case FLV_CODECID_PCM_MULAW:
119119 return acodec->sample_rate == 8000 &&
120− acodec->codec_id == CODEC_ID_PCM_MULAW;
120+ acodec->codec_id == AV_CODEC_ID_PCM_MULAW;
121121 case FLV_CODECID_PCM_ALAW:
122122 return acodec->sample_rate = 8000 &&
123− acodec->codec_id == CODEC_ID_PCM_ALAW;
123+ acodec->codec_id == AV_CODEC_ID_PCM_ALAW;
124124 default:
125125 return acodec->codec_tag == (flv_codecid >> FLV_AUDIO_CODECID_OFFSET);
126126 }
@@ -132,40 +132,40 @@ static void flv_set_audio_codec(AVFormatContext *s, AVStream *astream, AVCodecCo · 5 unmodified lines
132132 switch(flv_codecid) {
133133 //no distinction between S16 and S8 PCM codec flags
134134 case FLV_CODECID_PCM:
135− acodec->codec_id = acodec->bits_per_coded_sample == 8 ? CODEC_ID_PCM_U8 :
135+ acodec->codec_id = acodec->bits_per_coded_sample == 8 ? AV_CODEC_ID_PCM_U8 :
136136 #if HAVE_BIGENDIAN
137− CODEC_ID_PCM_S16BE;
137+ AV_CODEC_ID_PCM_S16BE;
138138 #else
139− CODEC_ID_PCM_S16LE;
139+ AV_CODEC_ID_PCM_S16LE;
140140 #endif
141141 break;
142142 case FLV_CODECID_PCM_LE:
143− acodec->codec_id = acodec->bits_per_coded_sample == 8 ? CODEC_ID_PCM_U8 : CODEC_ID_PCM_S16LE; break;
144− case FLV_CODECID_AAC : acodec->codec_id = CODEC_ID_AAC; break;
145− case FLV_CODECID_ADPCM: acodec->codec_id = CODEC_ID_ADPCM_SWF; break;
143+ acodec->codec_id = acodec->bits_per_coded_sample == 8 ? AV_CODEC_ID_PCM_U8 : AV_CODEC_ID_PCM_S16LE; break;
144+ case FLV_CODECID_AAC : acodec->codec_id = AV_CODEC_ID_AAC; break;
145+ case FLV_CODECID_ADPCM: acodec->codec_id = AV_CODEC_ID_ADPCM_SWF; break;
146146 case FLV_CODECID_SPEEX:
147− acodec->codec_id = CODEC_ID_SPEEX;
147+ acodec->codec_id = AV_CODEC_ID_SPEEX;
148148 acodec->sample_rate = 16000;
149149 break;
150− case FLV_CODECID_MP3 : acodec->codec_id = CODEC_ID_MP3 ; astream->need_parsing = AVSTREAM_PARSE_FULL; break;
150+ case FLV_CODECID_MP3 : acodec->codec_id = AV_CODEC_ID_MP3 ; astream->need_parsing = AVSTREAM_PARSE_FULL; break;
151151 case FLV_CODECID_NELLYMOSER_8KHZ_MONO:
152152 acodec->sample_rate = 8000; //in case metadata does not otherwise declare samplerate
153− acodec->codec_id = CODEC_ID_NELLYMOSER;
153+ acodec->codec_id = AV_CODEC_ID_NELLYMOSER;
154154 break;
155155 case FLV_CODECID_NELLYMOSER_16KHZ_MONO:
156156 acodec->sample_rate = 16000;
157− acodec->codec_id = CODEC_ID_NELLYMOSER;
157+ acodec->codec_id = AV_CODEC_ID_NELLYMOSER;
158158 break;
159159 case FLV_CODECID_NELLYMOSER:
160− acodec->codec_id = CODEC_ID_NELLYMOSER;
160+ acodec->codec_id = AV_CODEC_ID_NELLYMOSER;
161161 break;
162162 case FLV_CODECID_PCM_MULAW:
163163 acodec->sample_rate = 8000;
164− acodec->codec_id = CODEC_ID_PCM_MULAW;
164+ acodec->codec_id = AV_CODEC_ID_PCM_MULAW;
165165 break;
166166 case FLV_CODECID_PCM_ALAW:
167167 acodec->sample_rate = 8000;
168− acodec->codec_id = CODEC_ID_PCM_ALAW;
168+ acodec->codec_id = AV_CODEC_ID_PCM_ALAW;
169169 break;
170170 default:
171171 av_log(s, AV_LOG_INFO, "Unsupported audio codec (%x)\n", flv_codecid >> FLV_AUDIO_CODECID_OFFSET);
@@ -182,17 +182,17 @@ static int flv_same_video_codec(AVCodecContext *vcodec, int flags) · 10 unmodified lines
182182
183183 switch (flv_codecid) {
184184 case FLV_CODECID_H263:
185− return vcodec->codec_id == CODEC_ID_FLV1;
185+ return vcodec->codec_id == AV_CODEC_ID_FLV1;
186186 case FLV_CODECID_SCREEN:
187− return vcodec->codec_id == CODEC_ID_FLASHSV;
187+ return vcodec->codec_id == AV_CODEC_ID_FLASHSV;
188188 case FLV_CODECID_SCREEN2:
189− return vcodec->codec_id == CODEC_ID_FLASHSV2;
189+ return vcodec->codec_id == AV_CODEC_ID_FLASHSV2;
190190 case FLV_CODECID_VP6:
191− return vcodec->codec_id == CODEC_ID_VP6F;
191+ return vcodec->codec_id == AV_CODEC_ID_VP6F;
192192 case FLV_CODECID_VP6A:
193− return vcodec->codec_id == CODEC_ID_VP6A;
193+ return vcodec->codec_id == AV_CODEC_ID_VP6A;
194194 case FLV_CODECID_H264:
195− return vcodec->codec_id == CODEC_ID_H264;
195+ return vcodec->codec_id == AV_CODEC_ID_H264;
196196 default:
197197 return vcodec->codec_tag == flv_codecid;
198198 }
@@ -203,13 +203,13 @@ static int flv_same_video_codec(AVCodecContext *vcodec, int flags) · 4 unmodified lines
203203 static int flv_set_video_codec(AVFormatContext *s, AVStream *vstream, int flv_codecid) {
204204 AVCodecContext *vcodec = vstream->codec;
205205 switch(flv_codecid) {
206− case FLV_CODECID_H263 : vcodec->codec_id = CODEC_ID_FLV1 ; break;
207− case FLV_CODECID_SCREEN: vcodec->codec_id = CODEC_ID_FLASHSV; break;
208− case FLV_CODECID_SCREEN2: vcodec->codec_id = CODEC_ID_FLASHSV2; break;
209− case FLV_CODECID_VP6 : vcodec->codec_id = CODEC_ID_VP6F ;
206+ case FLV_CODECID_H263 : vcodec->codec_id = AV_CODEC_ID_FLV1 ; break;
207+ case FLV_CODECID_SCREEN: vcodec->codec_id = AV_CODEC_ID_FLASHSV; break;
208+ case FLV_CODECID_SCREEN2: vcodec->codec_id = AV_CODEC_ID_FLASHSV2; break;
209+ case FLV_CODECID_VP6 : vcodec->codec_id = AV_CODEC_ID_VP6F ;
210210 case FLV_CODECID_VP6A :
211211 if(flv_codecid == FLV_CODECID_VP6A)
212− vcodec->codec_id = CODEC_ID_VP6A;
212+ vcodec->codec_id = AV_CODEC_ID_VP6A;
213213 if(vcodec->extradata_size != 1) {
214214 vcodec->extradata_size = 1;
215215 vcodec->extradata = av_malloc(1);
@@ -217,7 +217,7 @@ static int flv_set_video_codec(AVFormatContext *s, AVStream *vstream, int flv_co · 1 unmodified line
217217 vcodec->extradata[0] = avio_r8(s->pb);
218218 return 1; // 1 byte body size adjustment for flv_read_packet()
219219 case FLV_CODECID_H264:
220− vcodec->codec_id = CODEC_ID_H264;
220+ vcodec->codec_id = AV_CODEC_ID_H264;
221221 return 3; // not 4, reading packet type will consume one byte
222222 default:
223223 av_log(s, AV_LOG_INFO, "Unsupported video codec (%x)\n", flv_codecid);
@@ -404,7 +404,7 @@ static int amf_parse_object(AVFormatContext *s, AVStream *astream, AVStream *vst · 180 unmodified lines
404404 AVStream *st = create_stream(s, AVMEDIA_TYPE_DATA);
405405 if (!st)
406406 return AVERROR(ENOMEM);
407− st->codec->codec_id = CODEC_ID_TEXT;
407+ st->codec->codec_id = AV_CODEC_ID_TEXT;
408408 } else if (flv->trust_metadata) {
409409 if (!strcmp(key, "videocodecid") && vcodec) {
410410 flv_set_video_codec(s, vstream, num_val);
@@ -614,7 +614,7 @@ static int flv_data_packet(AVFormatContext *s, AVPacket *pkt, · 203 unmodified lines
614614 st = create_stream(s, AVMEDIA_TYPE_DATA);
615615 if (!st)
616616 goto out;
617− st->codec->codec_id = CODEC_ID_TEXT;
617+ st->codec->codec_id = AV_CODEC_ID_TEXT;
618618 }
619619
620620 pkt->dts = dts;
@@ -769,11 +769,11 @@ static int flv_read_packet(AVFormatContext *s, AVPacket *pkt) · 148 unmodified lines
769769 size -= flv_set_video_codec(s, st, flags & FLV_VIDEO_CODECID_MASK);
770770 }
771771
772− if (st->codec->codec_id == CODEC_ID_AAC ||
773− st->codec->codec_id == CODEC_ID_H264) {
772+ if (st->codec->codec_id == AV_CODEC_ID_AAC ||
773+ st->codec->codec_id == AV_CODEC_ID_H264) {
774774 int type = avio_r8(s->pb);
775775 size--;
776− if (st->codec->codec_id == CODEC_ID_H264) {
776+ if (st->codec->codec_id == AV_CODEC_ID_H264) {
777777 int32_t cts = (avio_rb24(s->pb)+0xff800000)^0xff800000; // sign extension
778778 pts = dts + cts;
779779 if (cts < 0) { // dts are wrong
@@ -792,7 +792,7 @@ static int flv_read_packet(AVFormatContext *s, AVPacket *pkt) · 12 unmodified lines
792792 }
793793 if ((ret = flv_get_extradata(s, st, size)) < 0)
794794 return ret;
795− if (st->codec->codec_id == CODEC_ID_AAC) {
795+ if (st->codec->codec_id == AV_CODEC_ID_AAC) {
796796 MPEG4AudioConfig cfg;
797797 avpriv_mpeg4audio_get_config(&cfg, st->codec->extradata,
798798 st->codec->extradata_size * 8, 1);
libavformat/flvenc.c+45−45
@@ -31,27 +31,27 @@ · 30 unmodified lines
3131 #include <assert.h>
3232
3333 static const AVCodecTag flv_video_codec_ids[] = {
34− { CODEC_ID_FLV1, FLV_CODECID_H263 },
35− { CODEC_ID_FLASHSV, FLV_CODECID_SCREEN },
36− { CODEC_ID_FLASHSV2, FLV_CODECID_SCREEN2 },
37− { CODEC_ID_VP6F, FLV_CODECID_VP6 },
38− { CODEC_ID_VP6, FLV_CODECID_VP6 },
39− { CODEC_ID_H264, FLV_CODECID_H264 },
40− { CODEC_ID_NONE, 0 }
34+ { AV_CODEC_ID_FLV1, FLV_CODECID_H263 },
35+ { AV_CODEC_ID_FLASHSV, FLV_CODECID_SCREEN },
36+ { AV_CODEC_ID_FLASHSV2, FLV_CODECID_SCREEN2 },
37+ { AV_CODEC_ID_VP6F, FLV_CODECID_VP6 },
38+ { AV_CODEC_ID_VP6, FLV_CODECID_VP6 },
39+ { AV_CODEC_ID_H264, FLV_CODECID_H264 },
40+ { AV_CODEC_ID_NONE, 0 }
4141 };
4242
4343 static const AVCodecTag flv_audio_codec_ids[] = {
44− { CODEC_ID_MP3, FLV_CODECID_MP3 >> FLV_AUDIO_CODECID_OFFSET },
45− { CODEC_ID_PCM_U8, FLV_CODECID_PCM >> FLV_AUDIO_CODECID_OFFSET },
46− { CODEC_ID_PCM_S16BE, FLV_CODECID_PCM >> FLV_AUDIO_CODECID_OFFSET },
47− { CODEC_ID_PCM_S16LE, FLV_CODECID_PCM_LE >> FLV_AUDIO_CODECID_OFFSET },
48− { CODEC_ID_ADPCM_SWF, FLV_CODECID_ADPCM >> FLV_AUDIO_CODECID_OFFSET },
49− { CODEC_ID_AAC, FLV_CODECID_AAC >> FLV_AUDIO_CODECID_OFFSET },
50− { CODEC_ID_NELLYMOSER, FLV_CODECID_NELLYMOSER >> FLV_AUDIO_CODECID_OFFSET },
51− { CODEC_ID_PCM_MULAW, FLV_CODECID_PCM_MULAW >> FLV_AUDIO_CODECID_OFFSET },
52− { CODEC_ID_PCM_ALAW, FLV_CODECID_PCM_ALAW >> FLV_AUDIO_CODECID_OFFSET },
53− { CODEC_ID_SPEEX, FLV_CODECID_SPEEX >> FLV_AUDIO_CODECID_OFFSET },
54− { CODEC_ID_NONE, 0 }
44+ { AV_CODEC_ID_MP3, FLV_CODECID_MP3 >> FLV_AUDIO_CODECID_OFFSET },
45+ { AV_CODEC_ID_PCM_U8, FLV_CODECID_PCM >> FLV_AUDIO_CODECID_OFFSET },
46+ { AV_CODEC_ID_PCM_S16BE, FLV_CODECID_PCM >> FLV_AUDIO_CODECID_OFFSET },
47+ { AV_CODEC_ID_PCM_S16LE, FLV_CODECID_PCM_LE >> FLV_AUDIO_CODECID_OFFSET },
48+ { AV_CODEC_ID_ADPCM_SWF, FLV_CODECID_ADPCM >> FLV_AUDIO_CODECID_OFFSET },
49+ { AV_CODEC_ID_AAC, FLV_CODECID_AAC >> FLV_AUDIO_CODECID_OFFSET },
50+ { AV_CODEC_ID_NELLYMOSER, FLV_CODECID_NELLYMOSER >> FLV_AUDIO_CODECID_OFFSET },
51+ { AV_CODEC_ID_PCM_MULAW, FLV_CODECID_PCM_MULAW >> FLV_AUDIO_CODECID_OFFSET },
52+ { AV_CODEC_ID_PCM_ALAW, FLV_CODECID_PCM_ALAW >> FLV_AUDIO_CODECID_OFFSET },
53+ { AV_CODEC_ID_SPEEX, FLV_CODECID_SPEEX >> FLV_AUDIO_CODECID_OFFSET },
54+ { AV_CODEC_ID_NONE, 0 }
5555 };
5656
5757 typedef struct FLVContext {
@@ -71,10 +71,10 @@ static int get_audio_flags(AVFormatContext *s, AVCodecContext *enc) · 13 unmodified lines
7171 int flags = (enc->bits_per_coded_sample == 16) ? FLV_SAMPLESSIZE_16BIT
7272 : FLV_SAMPLESSIZE_8BIT;
7373
74− if (enc->codec_id == CODEC_ID_AAC) // specs force these parameters
74+ if (enc->codec_id == AV_CODEC_ID_AAC) // specs force these parameters
7575 return FLV_CODECID_AAC | FLV_SAMPLERATE_44100HZ |
7676 FLV_SAMPLESSIZE_16BIT | FLV_STEREO;
77− else if (enc->codec_id == CODEC_ID_SPEEX) {
77+ else if (enc->codec_id == AV_CODEC_ID_SPEEX) {
7878 if (enc->sample_rate != 16000) {
7979 av_log(s, AV_LOG_ERROR,
8080 "flv only supports wideband (16kHz) Speex audio\n");
@@ -99,7 +99,7 @@ static int get_audio_flags(AVFormatContext *s, AVCodecContext *enc) · 18 unmodified lines
9999 case 16000: // nellymoser only
100100 case 8000: // nellymoser only
101101 case 5512: // not MP3
102− if (enc->codec_id != CODEC_ID_MP3) {
102+ if (enc->codec_id != AV_CODEC_ID_MP3) {
103103 flags |= FLV_SAMPLERATE_SPECIAL;
104104 break;
105105 }
@@ -115,22 +115,22 @@ static int get_audio_flags(AVFormatContext *s, AVCodecContext *enc) · 9 unmodified lines
115115 flags |= FLV_STEREO;
116116
117117 switch (enc->codec_id) {
118− case CODEC_ID_MP3:
118+ case AV_CODEC_ID_MP3:
119119 flags |= FLV_CODECID_MP3 | FLV_SAMPLESSIZE_16BIT;
120120 break;
121− case CODEC_ID_PCM_U8:
121+ case AV_CODEC_ID_PCM_U8:
122122 flags |= FLV_CODECID_PCM | FLV_SAMPLESSIZE_8BIT;
123123 break;
124− case CODEC_ID_PCM_S16BE:
124+ case AV_CODEC_ID_PCM_S16BE:
125125 flags |= FLV_CODECID_PCM | FLV_SAMPLESSIZE_16BIT;
126126 break;
127− case CODEC_ID_PCM_S16LE:
127+ case AV_CODEC_ID_PCM_S16LE:
128128 flags |= FLV_CODECID_PCM_LE | FLV_SAMPLESSIZE_16BIT;
129129 break;
130− case CODEC_ID_ADPCM_SWF:
130+ case AV_CODEC_ID_ADPCM_SWF:
131131 flags |= FLV_CODECID_ADPCM | FLV_SAMPLESSIZE_16BIT;
132132 break;
133− case CODEC_ID_NELLYMOSER:
133+ case AV_CODEC_ID_NELLYMOSER:
134134 if (enc->sample_rate == 8000)
135135 flags |= FLV_CODECID_NELLYMOSER_8KHZ_MONO | FLV_SAMPLESSIZE_16BIT;
136136 else if (enc->sample_rate == 16000)
@@ -138,10 +138,10 @@ static int get_audio_flags(AVFormatContext *s, AVCodecContext *enc) · 1 unmodified line
138138 else
139139 flags |= FLV_CODECID_NELLYMOSER | FLV_SAMPLESSIZE_16BIT;
140140 break;
141− case CODEC_ID_PCM_MULAW:
141+ case AV_CODEC_ID_PCM_MULAW:
142142 flags = FLV_CODECID_PCM_MULAW | FLV_SAMPLERATE_SPECIAL | FLV_SAMPLESSIZE_16BIT;
143143 break;
144− case CODEC_ID_PCM_ALAW:
144+ case AV_CODEC_ID_PCM_ALAW:
145145 flags = FLV_CODECID_PCM_ALAW | FLV_SAMPLERATE_SPECIAL | FLV_SAMPLESSIZE_16BIT;
146146 break;
147147 case 0:
@@ -220,7 +220,7 @@ static int flv_write_header(AVFormatContext *s) · 72 unmodified lines
220220 return AVERROR_INVALIDDATA;
221221 break;
222222 case AVMEDIA_TYPE_DATA:
223− if (enc->codec_id != CODEC_ID_TEXT) {
223+ if (enc->codec_id != AV_CODEC_ID_TEXT) {
224224 av_log(s, AV_LOG_ERROR, "codec not compatible with flv\n");
225225 return AVERROR_INVALIDDATA;
226226 }
@@ -312,7 +312,7 @@ static int flv_write_header(AVFormatContext *s) · 85 unmodified lines
312312 put_amf_double(pb, audio_enc->sample_rate);
313313
314314 put_amf_string(pb, "audiosamplesize");
315− put_amf_double(pb, audio_enc->codec_id == CODEC_ID_PCM_U8 ? 8 : 16);
315+ put_amf_double(pb, audio_enc->codec_id == AV_CODEC_ID_PCM_U8 ? 8 : 16);
316316
317317 put_amf_string(pb, "stereo");
318318 put_amf_bool(pb, audio_enc->channels == 2);
@@ -353,7 +353,7 @@ static int flv_write_header(AVFormatContext *s) · 34 unmodified lines
353353
354354 for (i = 0; i < s->nb_streams; i++) {
355355 AVCodecContext *enc = s->streams[i]->codec;
356− if (enc->codec_id == CODEC_ID_AAC || enc->codec_id == CODEC_ID_H264) {
356+ if (enc->codec_id == AV_CODEC_ID_AAC || enc->codec_id == AV_CODEC_ID_H264) {
357357 int64_t pos;
358358 avio_w8(pb, enc->codec_type == AVMEDIA_TYPE_VIDEO ?
359359 FLV_TAG_TYPE_VIDEO : FLV_TAG_TYPE_AUDIO);
@@ -362,7 +362,7 @@ static int flv_write_header(AVFormatContext *s) · 2 unmodified lines
362362 avio_w8(pb, 0); // ts ext
363363 avio_wb24(pb, 0); // streamid
364364 pos = avio_tell(pb);
365− if (enc->codec_id == CODEC_ID_AAC) {
365+ if (enc->codec_id == AV_CODEC_ID_AAC) {
366366 avio_w8(pb, get_audio_flags(s, enc));
367367 avio_w8(pb, 0); // AAC sequence header
368368 avio_write(pb, enc->extradata, enc->extradata_size);
@@ -396,7 +396,7 @@ static int flv_write_trailer(AVFormatContext *s) · 27 unmodified lines
396396 AVCodecContext *enc = s->streams[i]->codec;
397397 FLVStreamContext *sc = s->streams[i]->priv_data;
398398 if (enc->codec_type == AVMEDIA_TYPE_VIDEO &&
399− enc->codec_id == CODEC_ID_H264)
399+ enc->codec_id == AV_CODEC_ID_H264)
400400 put_avc_eos_tag(pb, sc->last_ts);
401401 }
402402
@@ -426,10 +426,10 @@ static int flv_write_packet(AVFormatContext *s, AVPacket *pkt) · 23 unmodified lines
426426 // av_log(s, AV_LOG_DEBUG, "type:%d pts: %"PRId64" size:%d\n",
427427 // enc->codec_type, timestamp, size);
428428
429− if (enc->codec_id == CODEC_ID_VP6 || enc->codec_id == CODEC_ID_VP6F ||
430− enc->codec_id == CODEC_ID_AAC)
429+ if (enc->codec_id == AV_CODEC_ID_VP6 || enc->codec_id == AV_CODEC_ID_VP6F ||
430+ enc->codec_id == AV_CODEC_ID_AAC)
431431 flags_size = 2;
432− else if (enc->codec_id == CODEC_ID_H264)
432+ else if (enc->codec_id == AV_CODEC_ID_H264)
433433 flags_size = 5;
434434 else
435435 flags_size = 1;
@@ -462,7 +462,7 @@ static int flv_write_packet(AVFormatContext *s, AVPacket *pkt) · 26 unmodified lines
462462 return AVERROR(EINVAL);
463463 }
464464
465− if (enc->codec_id == CODEC_ID_H264)
465+ if (enc->codec_id == AV_CODEC_ID_H264)
466466 /* check if extradata looks like MP4 */
467467 if (enc->extradata_size > 0 && *(uint8_t*)enc->extradata != 1)
468468 if (ff_avc_parse_nal_units_buf(pkt->data, &data, &size) < 0)
@@ -480,7 +480,7 @@ static int flv_write_packet(AVFormatContext *s, AVPacket *pkt) · 11 unmodified lines
480480 ts = pkt->dts + flv->delay; // add delay to force positive dts
481481
482482 /* check Speex packet duration */
483− if (enc->codec_id == CODEC_ID_SPEEX && ts - sc->last_ts > 160)
483+ if (enc->codec_id == AV_CODEC_ID_SPEEX && ts - sc->last_ts > 160)
484484 av_log(s, AV_LOG_WARNING, "Warning: Speex stream has more than "
485485 "8 frames per packet. Adobe Flash "
486486 "Player cannot handle this!\n");
@@ -516,13 +516,13 @@ static int flv_write_packet(AVFormatContext *s, AVPacket *pkt) · 29 unmodified lines
516516 avio_wb32(pb, data_size + 11);
517517 } else {
518518 avio_w8(pb,flags);
519− if (enc->codec_id == CODEC_ID_VP6)
519+ if (enc->codec_id == AV_CODEC_ID_VP6)
520520 avio_w8(pb, 0);
521− if (enc->codec_id == CODEC_ID_VP6F)
521+ if (enc->codec_id == AV_CODEC_ID_VP6F)
522522 avio_w8(pb, enc->extradata_size ? enc->extradata[0] : 0);
523− else if (enc->codec_id == CODEC_ID_AAC)
523+ else if (enc->codec_id == AV_CODEC_ID_AAC)
524524 avio_w8(pb, 1); // AAC raw
525− else if (enc->codec_id == CODEC_ID_H264) {
525+ else if (enc->codec_id == AV_CODEC_ID_H264) {
526526 avio_w8(pb, 1); // AVC NALU
527527 avio_wb24(pb, pkt->pts - pkt->dts);
528528 }
@@ -546,8 +546,8 @@ AVOutputFormat ff_flv_muxer = { · 17 unmodified lines
546546 .mime_type = "video/x-flv",
547547 .extensions = "flv",
548548 .priv_data_size = sizeof(FLVContext),
549− .audio_codec = CONFIG_LIBMP3LAME ? CODEC_ID_MP3 : CODEC_ID_ADPCM_SWF,
550− .video_codec = CODEC_ID_FLV1,
549+ .audio_codec = CONFIG_LIBMP3LAME ? AV_CODEC_ID_MP3 : AV_CODEC_ID_ADPCM_SWF,
550+ .video_codec = AV_CODEC_ID_FLV1,
551551 .write_header = flv_write_header,
552552 .write_packet = flv_write_packet,
553553 .write_trailer = flv_write_trailer,
libavformat/framecrcenc.c+2−2
@@ -39,8 +39,8 @@ AVOutputFormat ff_framecrc_muxer = { · 38 unmodified lines
3939 .name = "framecrc",
4040 .long_name = NULL_IF_CONFIG_SMALL("framecrc testing"),
4141 .extensions = "",
42− .audio_codec = CODEC_ID_PCM_S16LE,
43− .video_codec = CODEC_ID_RAWVIDEO,
42+ .audio_codec = AV_CODEC_ID_PCM_S16LE,
43+ .video_codec = AV_CODEC_ID_RAWVIDEO,
4444 .write_header = ff_framehash_write_header,
4545 .write_packet = framecrc_write_packet,
4646 .flags = AVFMT_VARIABLE_FPS | AVFMT_TS_NONSTRICT,
libavformat/g723_1.c+1−1
@@ -39,7 +39,7 @@ static int g723_1_init(AVFormatContext *s) · 38 unmodified lines
3939 return AVERROR(ENOMEM);
4040
4141 st->codec->codec_type = AVMEDIA_TYPE_AUDIO;
42− st->codec->codec_id = CODEC_ID_G723_1;
42+ st->codec->codec_id = AV_CODEC_ID_G723_1;
4343 st->codec->channel_layout = AV_CH_LAYOUT_MONO;
4444 st->codec->channels = 1;
4545 st->codec->sample_rate = 8000;
libavformat/gif.c+2−2
@@ -372,8 +372,8 @@ AVOutputFormat ff_gif_muxer = { · 371 unmodified lines
372372 .mime_type = "image/gif",
373373 .extensions = "gif",
374374 .priv_data_size = sizeof(GIFContext),
375− .audio_codec = CODEC_ID_NONE,
376− .video_codec = CODEC_ID_RAWVIDEO,
375+ .audio_codec = AV_CODEC_ID_NONE,
376+ .video_codec = AV_CODEC_ID_RAWVIDEO,
377377 .write_header = gif_write_header,
378378 .write_packet = gif_write_packet,
379379 .write_trailer = gif_write_trailer,
libavformat/gsmdec.c+1−1
@@ -94,6 +94,6 @@ AVInputFormat ff_gsm_demuxer = { · 93 unmodified lines
9494 .read_packet = gsm_read_packet,
9595 .flags = AVFMT_GENERIC_INDEX,
9696 .extensions = "gsm",
97− .raw_codec_id = CODEC_ID_GSM,
97+ .raw_codec_id = AV_CODEC_ID_GSM,
9898 .priv_class = &class,
9999 };
libavformat/gxf.c+13−13
@@ -89,34 +89,34 @@ static int get_sindex(AVFormatContext *s, int id, int format) { · 88 unmodified lines
8989 case 3:
9090 case 4:
9191 st->codec->codec_type = AVMEDIA_TYPE_VIDEO;
92− st->codec->codec_id = CODEC_ID_MJPEG;
92+ st->codec->codec_id = AV_CODEC_ID_MJPEG;
9393 break;
9494 case 13:
9595 case 15:
9696 st->codec->codec_type = AVMEDIA_TYPE_VIDEO;
97− st->codec->codec_id = CODEC_ID_DVVIDEO;
97+ st->codec->codec_id = AV_CODEC_ID_DVVIDEO;
9898 break;
9999 case 14:
100100 case 16:
101101 st->codec->codec_type = AVMEDIA_TYPE_VIDEO;
102− st->codec->codec_id = CODEC_ID_DVVIDEO;
102+ st->codec->codec_id = AV_CODEC_ID_DVVIDEO;
103103 break;
104104 case 11:
105105 case 12:
106106 case 20:
107107 st->codec->codec_type = AVMEDIA_TYPE_VIDEO;
108− st->codec->codec_id = CODEC_ID_MPEG2VIDEO;
108+ st->codec->codec_id = AV_CODEC_ID_MPEG2VIDEO;
109109 st->need_parsing = AVSTREAM_PARSE_HEADERS; //get keyframe flag etc.
110110 break;
111111 case 22:
112112 case 23:
113113 st->codec->codec_type = AVMEDIA_TYPE_VIDEO;
114− st->codec->codec_id = CODEC_ID_MPEG1VIDEO;
114+ st->codec->codec_id = AV_CODEC_ID_MPEG1VIDEO;
115115 st->need_parsing = AVSTREAM_PARSE_HEADERS; //get keyframe flag etc.
116116 break;
117117 case 9:
118118 st->codec->codec_type = AVMEDIA_TYPE_AUDIO;
119− st->codec->codec_id = CODEC_ID_PCM_S24LE;
119+ st->codec->codec_id = AV_CODEC_ID_PCM_S24LE;
120120 st->codec->channels = 1;
121121 st->codec->sample_rate = 48000;
122122 st->codec->bit_rate = 3 * 1 * 48000 * 8;
@@ -125,7 +125,7 @@ static int get_sindex(AVFormatContext *s, int id, int format) { · 2 unmodified lines
125125 break;
126126 case 10:
127127 st->codec->codec_type = AVMEDIA_TYPE_AUDIO;
128− st->codec->codec_id = CODEC_ID_PCM_S16LE;
128+ st->codec->codec_id = AV_CODEC_ID_PCM_S16LE;
129129 st->codec->channels = 1;
130130 st->codec->sample_rate = 48000;
131131 st->codec->bit_rate = 2 * 1 * 48000 * 8;
@@ -134,7 +134,7 @@ static int get_sindex(AVFormatContext *s, int id, int format) { · 2 unmodified lines
134134 break;
135135 case 17:
136136 st->codec->codec_type = AVMEDIA_TYPE_AUDIO;
137− st->codec->codec_id = CODEC_ID_AC3;
137+ st->codec->codec_id = AV_CODEC_ID_AC3;
138138 st->codec->channels = 2;
139139 st->codec->sample_rate = 48000;
140140 break;
@@ -143,11 +143,11 @@ static int get_sindex(AVFormatContext *s, int id, int format) { · 2 unmodified lines
143143 case 8:
144144 case 24:
145145 st->codec->codec_type = AVMEDIA_TYPE_DATA;
146− st->codec->codec_id = CODEC_ID_NONE;
146+ st->codec->codec_id = AV_CODEC_ID_NONE;
147147 break;
148148 default:
149149 st->codec->codec_type = AVMEDIA_TYPE_UNKNOWN;
150− st->codec->codec_id = CODEC_ID_NONE;
150+ st->codec->codec_id = AV_CODEC_ID_NONE;
151151 break;
152152 }
153153 return s->nb_streams - 1;
@@ -459,8 +459,8 @@ static int gxf_packet(AVFormatContext *s, AVPacket *pkt) { · 305 unmodified lines
459459 avio_rb32(pb); // "timeline" field number
460460 avio_r8(pb); // flags
461461 avio_r8(pb); // reserved
462− if (st->codec->codec_id == CODEC_ID_PCM_S24LE ||
463− st->codec->codec_id == CODEC_ID_PCM_S16LE) {
462+ if (st->codec->codec_id == AV_CODEC_ID_PCM_S24LE ||
463+ st->codec->codec_id == AV_CODEC_ID_PCM_S16LE) {
464464 int first = field_info >> 16;
465465 int last = field_info & 0xffff; // last is exclusive
466466 int bps = av_get_bits_per_sample(st->codec->codec_id)>>3;
@@ -478,7 +478,7 @@ static int gxf_packet(AVFormatContext *s, AVPacket *pkt) { · 11 unmodified lines
478478 pkt->dts = field_nr;
479479
480480 //set duration manually for DV or else lavf misdetects the frame rate
481− if (st->codec->codec_id == CODEC_ID_DVVIDEO)
481+ if (st->codec->codec_id == AV_CODEC_ID_DVVIDEO)
482482 pkt->duration = si->fields_per_frame;
483483
484484 return ret;
libavformat/gxfenc.c+32−32
@@ -81,22 +81,22 @@ static const struct { · 80 unmodified lines
8181 };
8282
8383 static const AVCodecTag gxf_media_types[] = {
84− { CODEC_ID_MJPEG , 3 }, /* NTSC */
85− { CODEC_ID_MJPEG , 4 }, /* PAL */
86− { CODEC_ID_PCM_S24LE , 9 },
87− { CODEC_ID_PCM_S16LE , 10 },
88− { CODEC_ID_MPEG2VIDEO, 11 }, /* NTSC */
89− { CODEC_ID_MPEG2VIDEO, 12 }, /* PAL */
90− { CODEC_ID_DVVIDEO , 13 }, /* NTSC */
91− { CODEC_ID_DVVIDEO , 14 }, /* PAL */
92− { CODEC_ID_DVVIDEO , 15 }, /* 50M NTSC */
93− { CODEC_ID_DVVIDEO , 16 }, /* 50M PAL */
94− { CODEC_ID_AC3 , 17 },
95− //{ CODEC_ID_NONE, , 18 }, /* Non compressed 24 bit audio */
96− { CODEC_ID_MPEG2VIDEO, 20 }, /* MPEG HD */
97− { CODEC_ID_MPEG1VIDEO, 22 }, /* NTSC */
98− { CODEC_ID_MPEG1VIDEO, 23 }, /* PAL */
99− { CODEC_ID_NONE, 0 },
84+ { AV_CODEC_ID_MJPEG , 3 }, /* NTSC */
85+ { AV_CODEC_ID_MJPEG , 4 }, /* PAL */
86+ { AV_CODEC_ID_PCM_S24LE , 9 },
87+ { AV_CODEC_ID_PCM_S16LE , 10 },
88+ { AV_CODEC_ID_MPEG2VIDEO, 11 }, /* NTSC */
89+ { AV_CODEC_ID_MPEG2VIDEO, 12 }, /* PAL */
90+ { AV_CODEC_ID_DVVIDEO , 13 }, /* NTSC */
91+ { AV_CODEC_ID_DVVIDEO , 14 }, /* PAL */
92+ { AV_CODEC_ID_DVVIDEO , 15 }, /* 50M NTSC */
93+ { AV_CODEC_ID_DVVIDEO , 16 }, /* 50M PAL */
94+ { AV_CODEC_ID_AC3 , 17 },
95+ //{ AV_CODEC_ID_NONE, , 18 }, /* Non compressed 24 bit audio */
96+ { AV_CODEC_ID_MPEG2VIDEO, 20 }, /* MPEG HD */
97+ { AV_CODEC_ID_MPEG1VIDEO, 22 }, /* NTSC */
98+ { AV_CODEC_ID_MPEG1VIDEO, 23 }, /* PAL */
99+ { AV_CODEC_ID_NONE, 0 },
100100 };
101101
102102 #define SERVER_PATH "EXT:/PDR/default/"
@@ -480,9 +480,9 @@ static int gxf_write_umf_media_mpeg(AVIOContext *pb, AVStream *st) · 377 unmodified lines
480480 avio_wl32(pb, 1); /* I picture per GOP */
481481 avio_wl32(pb, sc->p_per_gop);
482482 avio_wl32(pb, sc->b_per_i_or_p);
483− if (st->codec->codec_id == CODEC_ID_MPEG2VIDEO)
483+ if (st->codec->codec_id == AV_CODEC_ID_MPEG2VIDEO)
484484 avio_wl32(pb, 2);
485− else if (st->codec->codec_id == CODEC_ID_MPEG1VIDEO)
485+ else if (st->codec->codec_id == AV_CODEC_ID_MPEG1VIDEO)
486486 avio_wl32(pb, 1);
487487 else
488488 avio_wl32(pb, 0);
@@ -565,14 +565,14 @@ static int gxf_write_umf_media_description(AVFormatContext *s) · 76 unmodified lines
565565 else {
566566 AVStream *st = s->streams[i];
567567 switch (st->codec->codec_id) {
568− case CODEC_ID_MPEG1VIDEO:
569− case CODEC_ID_MPEG2VIDEO:
568+ case AV_CODEC_ID_MPEG1VIDEO:
569+ case AV_CODEC_ID_MPEG2VIDEO:
570570 gxf_write_umf_media_mpeg(pb, st);
571571 break;
572− case CODEC_ID_PCM_S16LE:
572+ case AV_CODEC_ID_PCM_S16LE:
573573 gxf_write_umf_media_audio(pb, sc);
574574 break;
575− case CODEC_ID_DVVIDEO:
575+ case AV_CODEC_ID_DVVIDEO:
576576 gxf_write_umf_media_dv(pb, sc);
577577 break;
578578 }
@@ -647,7 +647,7 @@ static int gxf_write_header(AVFormatContext *s) · 68 unmodified lines
647647
648648 sc->media_type = ff_codec_get_tag(gxf_media_types, st->codec->codec_id);
649649 if (st->codec->codec_type == AVMEDIA_TYPE_AUDIO) {
650− if (st->codec->codec_id != CODEC_ID_PCM_S16LE) {
650+ if (st->codec->codec_id != AV_CODEC_ID_PCM_S16LE) {
651651 av_log(s, AV_LOG_ERROR, "only 16 BIT PCM LE allowed for now\n");
652652 return -1;
653653 }
@@ -700,24 +700,24 @@ static int gxf_write_header(AVFormatContext *s) · 46 unmodified lines
700700 vsc = sc;
701701
702702 switch (st->codec->codec_id) {
703− case CODEC_ID_MJPEG:
703+ case AV_CODEC_ID_MJPEG:
704704 sc->track_type = 1;
705705 gxf->flags |= 0x00004000;
706706 media_info = 'J';
707707 break;
708− case CODEC_ID_MPEG1VIDEO:
708+ case AV_CODEC_ID_MPEG1VIDEO:
709709 sc->track_type = 9;
710710 gxf->mpeg_tracks++;
711711 media_info = 'L';
712712 break;
713− case CODEC_ID_MPEG2VIDEO:
713+ case AV_CODEC_ID_MPEG2VIDEO:
714714 sc->first_gop_closed = -1;
715715 sc->track_type = 4;
716716 gxf->mpeg_tracks++;
717717 gxf->flags |= 0x00008000;
718718 media_info = 'M';
719719 break;
720− case CODEC_ID_DVVIDEO:
720+ case AV_CODEC_ID_DVVIDEO:
721721 if (st->codec->pix_fmt == PIX_FMT_YUV422P) {
722722 sc->media_type += 2;
723723 sc->track_type = 6;
@@ -830,7 +830,7 @@ static int gxf_write_media_preamble(AVFormatContext *s, AVPacket *pkt, int size) · 106 unmodified lines
830830 if (st->codec->codec_type == AVMEDIA_TYPE_AUDIO) {
831831 avio_wb16(pb, 0);
832832 avio_wb16(pb, size / 2);
833− } else if (st->codec->codec_id == CODEC_ID_MPEG2VIDEO) {
833+ } else if (st->codec->codec_id == AV_CODEC_ID_MPEG2VIDEO) {
834834 int frame_type = gxf_parse_mpeg_frame(sc, pkt->data, pkt->size);
835835 if (frame_type == AV_PICTURE_TYPE_I) {
836836 avio_w8(pb, 0x0d);
@@ -843,7 +843,7 @@ static int gxf_write_media_preamble(AVFormatContext *s, AVPacket *pkt, int size) · 6 unmodified lines
843843 sc->pframes++;
844844 }
845845 avio_wb24(pb, size);
846− } else if (st->codec->codec_id == CODEC_ID_DVVIDEO) {
846+ } else if (st->codec->codec_id == AV_CODEC_ID_DVVIDEO) {
847847 avio_w8(pb, size / 4096);
848848 avio_wb24(pb, 0);
849849 } else
@@ -864,7 +864,7 @@ static int gxf_write_packet(AVFormatContext *s, AVPacket *pkt) · 14 unmodified lines
864864 int packet_start_offset = avio_tell(pb) / 1024;
865865
866866 gxf_write_packet_header(pb, PKT_MEDIA);
867− if (st->codec->codec_id == CODEC_ID_MPEG2VIDEO && pkt->size % 4) /* MPEG-2 frames must be padded */
867+ if (st->codec->codec_id == AV_CODEC_ID_MPEG2VIDEO && pkt->size % 4) /* MPEG-2 frames must be padded */
868868 padding = 4 - pkt->size % 4;
869869 else if (st->codec->codec_type == AVMEDIA_TYPE_AUDIO)
870870 padding = GXF_AUDIO_PACKET_SIZE - pkt->size;
@@ -933,8 +933,8 @@ AVOutputFormat ff_gxf_muxer = { · 62 unmodified lines
933933 .long_name = NULL_IF_CONFIG_SMALL("GXF (General eXchange Format)"),
934934 .extensions = "gxf",
935935 .priv_data_size = sizeof(GXFContext),
936− .audio_codec = CODEC_ID_PCM_S16LE,
937− .video_codec = CODEC_ID_MPEG2VIDEO,
936+ .audio_codec = AV_CODEC_ID_PCM_S16LE,
937+ .video_codec = AV_CODEC_ID_MPEG2VIDEO,
938938 .write_header = gxf_write_header,
939939 .write_packet = gxf_write_packet,
940940 .write_trailer = gxf_write_trailer,
libavformat/h261dec.c+1−1
@@ -62,4 +62,4 @@ static int h261_probe(AVProbeData *p) · 61 unmodified lines
6262 return 0;
6363 }
6464
65−FF_DEF_RAWVIDEO_DEMUXER(h261, "raw H.261", h261_probe, "h261", CODEC_ID_H261)
65+FF_DEF_RAWVIDEO_DEMUXER(h261, "raw H.261", h261_probe, "h261", AV_CODEC_ID_H261)
libavformat/h263dec.c+1−1
@@ -64,4 +64,4 @@ static int h263_probe(AVProbeData *p) · 63 unmodified lines
6464 return 0;
6565 }
6666
67−FF_DEF_RAWVIDEO_DEMUXER(h263, "raw H.263", h263_probe, NULL, CODEC_ID_H263)
67+FF_DEF_RAWVIDEO_DEMUXER(h263, "raw H.263", h263_probe, NULL, AV_CODEC_ID_H263)
libavformat/h264dec.c+1−1
@@ -67,4 +67,4 @@ static int h264_probe(AVProbeData *p) · 66 unmodified lines
6767 return 0;
6868 }
6969
70−FF_DEF_RAWVIDEO_DEMUXER(h264 , "raw H.264 video", h264_probe, "h26l,h264,264", CODEC_ID_H264)
70+FF_DEF_RAWVIDEO_DEMUXER(h264 , "raw H.264 video", h264_probe, "h26l,h264,264", AV_CODEC_ID_H264)
libavformat/id3v2.c+10−10
@@ -112,13 +112,13 @@ const char *ff_id3v2_picture_types[21] = { · 111 unmodified lines
112112 };
113113
114114 const CodecMime ff_id3v2_mime_tags[] = {
115− {"image/gif" , CODEC_ID_GIF},
116− {"image/jpeg", CODEC_ID_MJPEG},
117− {"image/jpg", CODEC_ID_MJPEG},
118− {"image/png" , CODEC_ID_PNG},
119− {"image/tiff", CODEC_ID_TIFF},
120− {"image/bmp", CODEC_ID_BMP},
121− {"", CODEC_ID_NONE},
115+ {"image/gif" , AV_CODEC_ID_GIF},
116+ {"image/jpeg", AV_CODEC_ID_MJPEG},
117+ {"image/jpg", AV_CODEC_ID_MJPEG},
118+ {"image/png" , AV_CODEC_ID_PNG},
119+ {"image/tiff", AV_CODEC_ID_TIFF},
120+ {"image/bmp", AV_CODEC_ID_BMP},
121+ {"", AV_CODEC_ID_NONE},
122122 };
123123
124124 int ff_id3v2_match(const uint8_t *buf, const char * magic)
@@ -429,7 +429,7 @@ static void read_apic(AVFormatContext *s, AVIOContext *pb, int taglen, char *tag · 304 unmodified lines
429429 int enc, pic_type;
430430 char mimetype[64];
431431 const CodecMime *mime = ff_id3v2_mime_tags;
432− enum CodecID id = CODEC_ID_NONE;
432+ enum AVCodecID id = AV_CODEC_ID_NONE;
433433 ID3v2ExtraMetaAPIC *apic = NULL;
434434 ID3v2ExtraMeta *new_extra = NULL;
435435 int64_t end = avio_tell(pb) + taglen;
@@ -447,14 +447,14 @@ static void read_apic(AVFormatContext *s, AVIOContext *pb, int taglen, char *tag · 11 unmodified lines
447447
448448 /* mimetype */
449449 taglen -= avio_get_str(pb, taglen, mimetype, sizeof(mimetype));
450− while (mime->id != CODEC_ID_NONE) {
450+ while (mime->id != AV_CODEC_ID_NONE) {
451451 if (!strncmp(mime->str, mimetype, sizeof(mimetype))) {
452452 id = mime->id;
453453 break;
454454 }
455455 mime++;
456456 }
457− if (id == CODEC_ID_NONE) {
457+ if (id == AV_CODEC_ID_NONE) {
458458 av_log(s, AV_LOG_WARNING, "Unknown attached picture mimetype: %s, skipping.\n", mimetype);
459459 goto fail;
460460 }
libavformat/id3v2.h+1−1
@@ -71,7 +71,7 @@ typedef struct ID3v2ExtraMetaAPIC { · 70 unmodified lines
7171 int len;
7272 const char *type;
7373 uint8_t *description;
74− enum CodecID id;
74+ enum AVCodecID id;
7575 } ID3v2ExtraMetaAPIC;
7676
7777 /**
libavformat/id3v2enc.c+1−1
@@ -169,7 +169,7 @@ int ff_id3v2_write_apic(AVFormatContext *s, ID3v2EncContext *id3, AVPacket *pkt) · 168 unmodified lines
169169 int i, len, type = 0;
170170
171171 /* get the mimetype*/
172− while (mime->id != CODEC_ID_NONE) {
172+ while (mime->id != AV_CODEC_ID_NONE) {
173173 if (mime->id == st->codec->codec_id) {
174174 mimetype = mime->str;
175175 break;
libavformat/idcin.c+3−3
@@ -159,7 +159,7 @@ static int idcin_read_header(AVFormatContext *s) · 158 unmodified lines
159159 avpriv_set_pts_info(st, 33, 1, IDCIN_FPS);
160160 idcin->video_stream_index = st->index;
161161 st->codec->codec_type = AVMEDIA_TYPE_VIDEO;
162− st->codec->codec_id = CODEC_ID_IDCIN;
162+ st->codec->codec_id = AV_CODEC_ID_IDCIN;
163163 st->codec->codec_tag = 0; /* no fourcc */
164164 st->codec->width = width;
165165 st->codec->height = height;
@@ -187,9 +187,9 @@ static int idcin_read_header(AVFormatContext *s) · 21 unmodified lines
187187 st->codec->bit_rate = sample_rate * bytes_per_sample * 8 * channels;
188188 st->codec->block_align = bytes_per_sample * channels;
189189 if (bytes_per_sample == 1)
190− st->codec->codec_id = CODEC_ID_PCM_U8;
190+ st->codec->codec_id = AV_CODEC_ID_PCM_U8;
191191 else
192− st->codec->codec_id = CODEC_ID_PCM_S16LE;
192+ st->codec->codec_id = AV_CODEC_ID_PCM_S16LE;
193193
194194 if (sample_rate % 14 != 0) {
195195 idcin->audio_chunk_size1 = (sample_rate / 14) *
libavformat/idroqdec.c+2−2
@@ -127,7 +127,7 @@ static int roq_read_packet(AVFormatContext *s, · 126 unmodified lines
127127 avpriv_set_pts_info(st, 63, 1, roq->frame_rate);
128128 roq->video_stream_index = st->index;
129129 st->codec->codec_type = AVMEDIA_TYPE_VIDEO;
130− st->codec->codec_id = CODEC_ID_ROQ;
130+ st->codec->codec_id = AV_CODEC_ID_ROQ;
131131 st->codec->codec_tag = 0; /* no fourcc */
132132
133133 if (avio_read(pb, preamble, RoQ_CHUNK_PREAMBLE_SIZE) != RoQ_CHUNK_PREAMBLE_SIZE)
@@ -173,7 +173,7 @@ static int roq_read_packet(AVFormatContext *s, · 39 unmodified lines
173173 avpriv_set_pts_info(st, 32, 1, RoQ_AUDIO_SAMPLE_RATE);
174174 roq->audio_stream_index = st->index;
175175 st->codec->codec_type = AVMEDIA_TYPE_AUDIO;
176− st->codec->codec_id = CODEC_ID_ROQ_DPCM;
176+ st->codec->codec_id = AV_CODEC_ID_ROQ_DPCM;
177177 st->codec->codec_tag = 0; /* no tag */
178178 st->codec->channels = roq->audio_channels = chunk_type == RoQ_SOUND_STEREO ? 2 : 1;
179179 st->codec->sample_rate = RoQ_AUDIO_SAMPLE_RATE;
libavformat/idroqenc.c+2−2
@@ -39,8 +39,8 @@ AVOutputFormat ff_roq_muxer = { · 38 unmodified lines
3939 .name = "roq",
4040 .long_name = NULL_IF_CONFIG_SMALL("raw id RoQ"),
4141 .extensions = "roq",
42− .audio_codec = CODEC_ID_ROQ_DPCM,
43− .video_codec = CODEC_ID_ROQ,
42+ .audio_codec = AV_CODEC_ID_ROQ_DPCM,
43+ .video_codec = AV_CODEC_ID_ROQ,
4444 .write_header = roq_write_header,
4545 .write_packet = ff_raw_write_packet,
4646 };
libavformat/iff.c+5−5
@@ -220,13 +220,13 @@ static int iff_read_header(AVFormatContext *s) · 219 unmodified lines
220220
221221 switch(compression) {
222222 case COMP_NONE:
223− st->codec->codec_id = CODEC_ID_PCM_S8_PLANAR;
223+ st->codec->codec_id = AV_CODEC_ID_PCM_S8_PLANAR;
224224 break;
225225 case COMP_FIB:
226− st->codec->codec_id = CODEC_ID_8SVX_FIB;
226+ st->codec->codec_id = AV_CODEC_ID_8SVX_FIB;
227227 break;
228228 case COMP_EXP:
229− st->codec->codec_id = CODEC_ID_8SVX_EXP;
229+ st->codec->codec_id = AV_CODEC_ID_8SVX_EXP;
230230 break;
231231 default:
232232 av_log(s, AV_LOG_ERROR, "unknown compression method\n");
@@ -241,10 +241,10 @@ static int iff_read_header(AVFormatContext *s) · 8 unmodified lines
241241 case AVMEDIA_TYPE_VIDEO:
242242 switch (compression) {
243243 case BITMAP_RAW:
244− st->codec->codec_id = CODEC_ID_IFF_ILBM;
244+ st->codec->codec_id = AV_CODEC_ID_IFF_ILBM;
245245 break;
246246 case BITMAP_BYTERUN1:
247− st->codec->codec_id = CODEC_ID_IFF_BYTERUN1;
247+ st->codec->codec_id = AV_CODEC_ID_IFF_BYTERUN1;
248248 break;
249249 default:
250250 av_log(s, AV_LOG_ERROR, "unknown compression method\n");
libavformat/ilbc.c+3−3
@@ -36,7 +36,7 @@ static int ilbc_write_header(AVFormatContext *s) · 35 unmodified lines
3636 }
3737 enc = s->streams[0]->codec;
3838
39− if (enc->codec_id != CODEC_ID_ILBC) {
39+ if (enc->codec_id != AV_CODEC_ID_ILBC) {
4040 av_log(s, AV_LOG_ERROR, "Unsupported codec\n");
4141 return AVERROR(EINVAL);
4242 }
@@ -80,7 +80,7 @@ static int ilbc_read_header(AVFormatContext *s) · 37 unmodified lines
8080 st = avformat_new_stream(s, NULL);
8181 if (!st)
8282 return AVERROR(ENOMEM);
83− st->codec->codec_id = CODEC_ID_ILBC;
83+ st->codec->codec_id = AV_CODEC_ID_ILBC;
8484 st->codec->sample_rate = 8000;
8585 st->codec->channels = 1;
8686 st->codec->codec_type = AVMEDIA_TYPE_AUDIO;
@@ -134,7 +134,7 @@ AVOutputFormat ff_ilbc_muxer = { · 47 unmodified lines
134134 .long_name = NULL_IF_CONFIG_SMALL("iLBC storage"),
135135 .mime_type = "audio/iLBC",
136136 .extensions = "lbc",
137− .audio_codec = CODEC_ID_ILBC,
137+ .audio_codec = AV_CODEC_ID_ILBC,
138138 .write_header = ilbc_write_header,
139139 .write_packet = ilbc_write_packet,
140140 .flags = AVFMT_NOTIMESTAMPS,
libavformat/img2.c+43−43
@@ -24,55 +24,55 @@ · 23 unmodified lines
2424 #include "internal.h"
2525
2626 typedef struct {
27− enum CodecID id;
27+ enum AVCodecID id;
2828 const char *str;
2929 } IdStrMap;
3030
3131 static const IdStrMap img_tags[] = {
32− { CODEC_ID_MJPEG , "jpeg"},
33− { CODEC_ID_MJPEG , "jpg"},
34− { CODEC_ID_LJPEG , "ljpg"},
35− { CODEC_ID_PNG , "png"},
36− { CODEC_ID_PNG , "mng"},
37− { CODEC_ID_PPM , "ppm"},
38− { CODEC_ID_PPM , "pnm"},
39− { CODEC_ID_PGM , "pgm"},
40− { CODEC_ID_PGMYUV , "pgmyuv"},
41− { CODEC_ID_PBM , "pbm"},
42− { CODEC_ID_PAM , "pam"},
43− { CODEC_ID_MPEG1VIDEO, "mpg1-img"},
44− { CODEC_ID_MPEG2VIDEO, "mpg2-img"},
45− { CODEC_ID_MPEG4 , "mpg4-img"},
46− { CODEC_ID_FFV1 , "ffv1-img"},
47− { CODEC_ID_RAWVIDEO , "y"},
48− { CODEC_ID_BMP , "bmp"},
49− { CODEC_ID_GIF , "gif"},
50− { CODEC_ID_TARGA , "tga"},
51− { CODEC_ID_TIFF , "tiff"},
52− { CODEC_ID_TIFF , "tif"},
53− { CODEC_ID_SGI , "sgi"},
54− { CODEC_ID_PTX , "ptx"},
55− { CODEC_ID_PCX , "pcx"},
56− { CODEC_ID_SUNRAST , "sun"},
57− { CODEC_ID_SUNRAST , "ras"},
58− { CODEC_ID_SUNRAST , "rs"},
59− { CODEC_ID_SUNRAST , "im1"},
60− { CODEC_ID_SUNRAST , "im8"},
61− { CODEC_ID_SUNRAST , "im24"},
62− { CODEC_ID_SUNRAST , "sunras"},
63− { CODEC_ID_JPEG2000 , "jp2"},
64− { CODEC_ID_JPEG2000 , "jpc"},
65− { CODEC_ID_DPX , "dpx"},
66− { CODEC_ID_PICTOR , "pic"},
67− { CODEC_ID_XBM , "xbm"},
68− { CODEC_ID_XWD , "xwd"},
69− { CODEC_ID_NONE , NULL}
32+ { AV_CODEC_ID_MJPEG , "jpeg"},
33+ { AV_CODEC_ID_MJPEG , "jpg"},
34+ { AV_CODEC_ID_LJPEG , "ljpg"},
35+ { AV_CODEC_ID_PNG , "png"},
36+ { AV_CODEC_ID_PNG , "mng"},
37+ { AV_CODEC_ID_PPM , "ppm"},
38+ { AV_CODEC_ID_PPM , "pnm"},
39+ { AV_CODEC_ID_PGM , "pgm"},
40+ { AV_CODEC_ID_PGMYUV , "pgmyuv"},
41+ { AV_CODEC_ID_PBM , "pbm"},
42+ { AV_CODEC_ID_PAM , "pam"},
43+ { AV_CODEC_ID_MPEG1VIDEO, "mpg1-img"},
44+ { AV_CODEC_ID_MPEG2VIDEO, "mpg2-img"},
45+ { AV_CODEC_ID_MPEG4 , "mpg4-img"},
46+ { AV_CODEC_ID_FFV1 , "ffv1-img"},
47+ { AV_CODEC_ID_RAWVIDEO , "y"},
48+ { AV_CODEC_ID_BMP , "bmp"},
49+ { AV_CODEC_ID_GIF , "gif"},
50+ { AV_CODEC_ID_TARGA , "tga"},
51+ { AV_CODEC_ID_TIFF , "tiff"},
52+ { AV_CODEC_ID_TIFF , "tif"},
53+ { AV_CODEC_ID_SGI , "sgi"},
54+ { AV_CODEC_ID_PTX , "ptx"},
55+ { AV_CODEC_ID_PCX , "pcx"},
56+ { AV_CODEC_ID_SUNRAST , "sun"},
57+ { AV_CODEC_ID_SUNRAST , "ras"},
58+ { AV_CODEC_ID_SUNRAST , "rs"},
59+ { AV_CODEC_ID_SUNRAST , "im1"},
60+ { AV_CODEC_ID_SUNRAST , "im8"},
61+ { AV_CODEC_ID_SUNRAST , "im24"},
62+ { AV_CODEC_ID_SUNRAST , "sunras"},
63+ { AV_CODEC_ID_JPEG2000 , "jp2"},
64+ { AV_CODEC_ID_JPEG2000 , "jpc"},
65+ { AV_CODEC_ID_DPX , "dpx"},
66+ { AV_CODEC_ID_PICTOR , "pic"},
67+ { AV_CODEC_ID_XBM , "xbm"},
68+ { AV_CODEC_ID_XWD , "xwd"},
69+ { AV_CODEC_ID_NONE , NULL}
7070 };
7171
72−static enum CodecID av_str2id(const IdStrMap *tags, const char *str)
72+static enum AVCodecID av_str2id(const IdStrMap *tags, const char *str)
7373 {
7474 str= strrchr(str, '.');
75− if(!str) return CODEC_ID_NONE;
75+ if(!str) return AV_CODEC_ID_NONE;
7676 str++;
7777
7878 while (tags->id) {
@@ -81,10 +81,10 @@ static enum CodecID av_str2id(const IdStrMap *tags, const char *str) · 2 unmodified lines
8181
8282 tags++;
8383 }
84− return CODEC_ID_NONE;
84+ return AV_CODEC_ID_NONE;
8585 }
8686
87−enum CodecID ff_guess_image2_codec(const char *filename)
87+enum AVCodecID ff_guess_image2_codec(const char *filename)
8888 {
8989 return av_str2id(img_tags, filename);
9090 }
libavformat/img2dec.c+2−2
@@ -239,12 +239,12 @@ static int read_packet(AVFormatContext *s1, AVPacket *pkt) · 238 unmodified lines
239239 }
240240 size[i]= avio_size(f[i]);
241241
242− if(codec->codec_id != CODEC_ID_RAWVIDEO)
242+ if(codec->codec_id != AV_CODEC_ID_RAWVIDEO)
243243 break;
244244 filename[ strlen(filename) - 1 ]= 'U' + i;
245245 }
246246
247− if(codec->codec_id == CODEC_ID_RAWVIDEO && !codec->width)
247+ if(codec->codec_id == AV_CODEC_ID_RAWVIDEO && !codec->width)
248248 infer_size(&codec->width, &codec->height, size[0]);
249249 } else {
250250 f[0] = s1->pb;
libavformat/img2enc.c+5−5
@@ -73,7 +73,7 @@ static int write_packet(AVFormatContext *s, AVPacket *pkt) · 72 unmodified lines
7373 return AVERROR(EIO);
7474 }
7575
76− if(codec->codec_id != CODEC_ID_RAWVIDEO)
76+ if(codec->codec_id != AV_CODEC_ID_RAWVIDEO)
7777 break;
7878 filename[ strlen(filename) - 1 ]= 'U' + i;
7979 }
@@ -81,7 +81,7 @@ static int write_packet(AVFormatContext *s, AVPacket *pkt) · 1 unmodified line
8181 pb[0] = s->pb;
8282 }
8383
84− if(codec->codec_id == CODEC_ID_RAWVIDEO){
84+ if(codec->codec_id == AV_CODEC_ID_RAWVIDEO){
8585 int ysize = codec->width * codec->height;
8686 avio_write(pb[0], pkt->data , ysize);
8787 avio_write(pb[1], pkt->data + ysize, (pkt->size - ysize)/2);
@@ -91,7 +91,7 @@ static int write_packet(AVFormatContext *s, AVPacket *pkt) · 3 unmodified lines
9191 avio_close(pb[1]);
9292 avio_close(pb[2]);
9393 }else{
94− if(ff_guess_image2_codec(s->filename) == CODEC_ID_JPEG2000){
94+ if(ff_guess_image2_codec(s->filename) == AV_CODEC_ID_JPEG2000){
9595 AVStream *st = s->streams[0];
9696 if(st->codec->extradata_size > 8 &&
9797 AV_RL32(st->codec->extradata+4) == MKTAG('j','p','2','h')){
@@ -147,7 +147,7 @@ AVOutputFormat ff_image2_muxer = { · 49 unmodified lines
147147 "ppm,sgi,tga,tif,tiff,jp2,xwd,sun,ras,rs,im1,im8,im24,"
148148 "sunras,xbm",
149149 .priv_data_size = sizeof(VideoMuxData),
150− .video_codec = CODEC_ID_MJPEG,
150+ .video_codec = AV_CODEC_ID_MJPEG,
151151 .write_header = write_header,
152152 .write_packet = write_packet,
153153 .flags = AVFMT_NOTIMESTAMPS | AVFMT_NODIMENSIONS | AVFMT_NOFILE,
@@ -159,7 +159,7 @@ AVOutputFormat ff_image2pipe_muxer = { · 5 unmodified lines
159159 .name = "image2pipe",
160160 .long_name = NULL_IF_CONFIG_SMALL("piped image2 sequence"),
161161 .priv_data_size = sizeof(VideoMuxData),
162− .video_codec = CODEC_ID_MJPEG,
162+ .video_codec = AV_CODEC_ID_MJPEG,
163163 .write_header = write_header,
164164 .write_packet = write_packet,
165165 .flags = AVFMT_NOTIMESTAMPS | AVFMT_NODIMENSIONS
libavformat/ingenientdec.c+1−1
@@ -68,6 +68,6 @@ AVInputFormat ff_ingenient_demuxer = { · 67 unmodified lines
6868 .read_packet = ingenient_read_packet,
6969 .flags = AVFMT_GENERIC_INDEX,
7070 .extensions = "cgi", // FIXME
71− .raw_codec_id = CODEC_ID_MJPEG,
71+ .raw_codec_id = AV_CODEC_ID_MJPEG,
7272 .priv_class = &ingenient_demuxer_class,
7373 };
libavformat/internal.h+3−3
@@ -33,13 +33,13 @@ · 32 unmodified lines
3333 #endif
3434
3535 typedef struct AVCodecTag {
36− enum CodecID id;
36+ enum AVCodecID id;
3737 unsigned int tag;
3838 } AVCodecTag;
3939
4040 typedef struct CodecMime{
4141 char str[32];
42− enum CodecID id;
42+ enum AVCodecID id;
4343 } CodecMime;
4444
4545 void ff_dynarray_add(intptr_t **tab_ptr, int *nb_ptr, intptr_t elem);
@@ -251,7 +251,7 @@ void ff_reduce_index(AVFormatContext *s, int stream_index); · 205 unmodified lines
251251 void ff_make_absolute_url(char *buf, int size, const char *base,
252252 const char *rel);
253253
254−enum CodecID ff_guess_image2_codec(const char *filename);
254+enum AVCodecID ff_guess_image2_codec(const char *filename);
255255
256256 /**
257257 * Convert a date string in ISO8601 format to Unix timestamp.
libavformat/ipmovie.c+11−11
@@ -94,7 +94,7 @@ typedef struct IPMVEContext { · 93 unmodified lines
9494 unsigned int audio_bits;
9595 unsigned int audio_channels;
9696 unsigned int audio_sample_rate;
97− enum CodecID audio_type;
97+ enum AVCodecID audio_type;
9898 unsigned int audio_frame_count;
9999
100100 int video_stream_index;
@@ -117,14 +117,14 @@ static int load_ipmovie_packet(IPMVEContext *s, AVIOContext *pb, · 16 unmodified lines
117117 int chunk_type;
118118
119119 if (s->audio_chunk_offset) {
120− if (s->audio_type == CODEC_ID_NONE) {
120+ if (s->audio_type == AV_CODEC_ID_NONE) {
121121 av_log(NULL, AV_LOG_ERROR, "Can not read audio packet before"
122122 "audio codec is known\n");
123123 return CHUNK_BAD;
124124 }
125125
126126 /* adjust for PCM audio by skipping chunk header */
127− if (s->audio_type != CODEC_ID_INTERPLAY_DPCM) {
127+ if (s->audio_type != AV_CODEC_ID_INTERPLAY_DPCM) {
128128 s->audio_chunk_offset += 6;
129129 s->audio_chunk_size -= 6;
130130 }
@@ -139,7 +139,7 @@ static int load_ipmovie_packet(IPMVEContext *s, AVIOContext *pb, · 8 unmodified lines
139139 pkt->pts = s->audio_frame_count;
140140
141141 /* audio frame maintenance */
142− if (s->audio_type != CODEC_ID_INTERPLAY_DPCM)
142+ if (s->audio_type != AV_CODEC_ID_INTERPLAY_DPCM)
143143 s->audio_frame_count +=
144144 (s->audio_chunk_size / s->audio_channels / (s->audio_bits / 8));
145145 else
@@ -356,15 +356,15 @@ static int process_ipmovie_chunk(IPMVEContext *s, AVIOContext *pb, · 210 unmodified lines
356356 s->audio_bits = (((audio_flags >> 1) & 1) + 1) * 8;
357357 /* bit 2 indicates compressed audio in version 1 opcode */
358358 if ((opcode_version == 1) && (audio_flags & 0x4))
359− s->audio_type = CODEC_ID_INTERPLAY_DPCM;
359+ s->audio_type = AV_CODEC_ID_INTERPLAY_DPCM;
360360 else if (s->audio_bits == 16)
361− s->audio_type = CODEC_ID_PCM_S16LE;
361+ s->audio_type = AV_CODEC_ID_PCM_S16LE;
362362 else
363− s->audio_type = CODEC_ID_PCM_U8;
363+ s->audio_type = AV_CODEC_ID_PCM_U8;
364364 av_dlog(NULL, "audio: %d bits, %d Hz, %s, %s format\n",
365365 s->audio_bits, s->audio_sample_rate,
366366 (s->audio_channels == 2) ? "stereo" : "mono",
367− (s->audio_type == CODEC_ID_INTERPLAY_DPCM) ?
367+ (s->audio_type == AV_CODEC_ID_INTERPLAY_DPCM) ?
368368 "Interplay audio" : "PCM");
369369 break;
370370
@@ -573,7 +573,7 @@ static int ipmovie_read_header(AVFormatContext *s) · 202 unmodified lines
573573 avio_seek(pb, -CHUNK_PREAMBLE_SIZE, SEEK_CUR);
574574
575575 if (chunk_type == CHUNK_VIDEO)
576− ipmovie->audio_type = CODEC_ID_NONE; /* no audio */
576+ ipmovie->audio_type = AV_CODEC_ID_NONE; /* no audio */
577577 else if (process_ipmovie_chunk(ipmovie, pb, &pkt) != CHUNK_INIT_AUDIO)
578578 return AVERROR_INVALIDDATA;
579579
@@ -584,7 +584,7 @@ static int ipmovie_read_header(AVFormatContext *s) · 4 unmodified lines
584584 avpriv_set_pts_info(st, 63, 1, 1000000);
585585 ipmovie->video_stream_index = st->index;
586586 st->codec->codec_type = AVMEDIA_TYPE_VIDEO;
587− st->codec->codec_id = CODEC_ID_INTERPLAY_VIDEO;
587+ st->codec->codec_id = AV_CODEC_ID_INTERPLAY_VIDEO;
588588 st->codec->codec_tag = 0; /* no fourcc */
589589 st->codec->width = ipmovie->video_width;
590590 st->codec->height = ipmovie->video_height;
@@ -604,7 +604,7 @@ static int ipmovie_read_header(AVFormatContext *s) · 13 unmodified lines
604604 st->codec->bits_per_coded_sample = ipmovie->audio_bits;
605605 st->codec->bit_rate = st->codec->channels * st->codec->sample_rate *
606606 st->codec->bits_per_coded_sample;
607− if (st->codec->codec_id == CODEC_ID_INTERPLAY_DPCM)
607+ if (st->codec->codec_id == AV_CODEC_ID_INTERPLAY_DPCM)
608608 st->codec->bit_rate /= 2;
609609 st->codec->block_align = st->codec->channels * st->codec->bits_per_coded_sample;
610610 }
libavformat/isom.c+248−248
@@ -33,255 +33,255 @@ · 32 unmodified lines
3333 /* http://www.mp4ra.org */
3434 /* ordered by muxing preference */
3535 const AVCodecTag ff_mp4_obj_type[] = {
36− { CODEC_ID_MOV_TEXT , 0x08 },
37− { CODEC_ID_MPEG4 , 0x20 },
38− { CODEC_ID_H264 , 0x21 },
39− { CODEC_ID_AAC , 0x40 },
40− { CODEC_ID_MP4ALS , 0x40 }, /* 14496-3 ALS */
41− { CODEC_ID_MPEG2VIDEO, 0x61 }, /* MPEG2 Main */
42− { CODEC_ID_MPEG2VIDEO, 0x60 }, /* MPEG2 Simple */
43− { CODEC_ID_MPEG2VIDEO, 0x62 }, /* MPEG2 SNR */
44− { CODEC_ID_MPEG2VIDEO, 0x63 }, /* MPEG2 Spatial */
45− { CODEC_ID_MPEG2VIDEO, 0x64 }, /* MPEG2 High */
46− { CODEC_ID_MPEG2VIDEO, 0x65 }, /* MPEG2 422 */
47− { CODEC_ID_AAC , 0x66 }, /* MPEG2 AAC Main */
48− { CODEC_ID_AAC , 0x67 }, /* MPEG2 AAC Low */
49− { CODEC_ID_AAC , 0x68 }, /* MPEG2 AAC SSR */
50− { CODEC_ID_MP3 , 0x69 }, /* 13818-3 */
51− { CODEC_ID_MP2 , 0x69 }, /* 11172-3 */
52− { CODEC_ID_MPEG1VIDEO, 0x6A }, /* 11172-2 */
53− { CODEC_ID_MP3 , 0x6B }, /* 11172-3 */
54− { CODEC_ID_MJPEG , 0x6C }, /* 10918-1 */
55− { CODEC_ID_PNG , 0x6D },
56− { CODEC_ID_JPEG2000 , 0x6E }, /* 15444-1 */
57− { CODEC_ID_VC1 , 0xA3 },
58− { CODEC_ID_DIRAC , 0xA4 },
59− { CODEC_ID_AC3 , 0xA5 },
60− { CODEC_ID_DTS , 0xA9 }, /* mp4ra.org */
61− { CODEC_ID_VORBIS , 0xDD }, /* non standard, gpac uses it */
62− { CODEC_ID_DVD_SUBTITLE, 0xE0 }, /* non standard, see unsupported-embedded-subs-2.mp4 */
63− { CODEC_ID_QCELP , 0xE1 },
64− { CODEC_ID_MPEG4SYSTEMS, 0x01 },
65− { CODEC_ID_MPEG4SYSTEMS, 0x02 },
66− { CODEC_ID_NONE , 0 },
36+ { AV_CODEC_ID_MOV_TEXT , 0x08 },
37+ { AV_CODEC_ID_MPEG4 , 0x20 },
38+ { AV_CODEC_ID_H264 , 0x21 },
39+ { AV_CODEC_ID_AAC , 0x40 },
40+ { AV_CODEC_ID_MP4ALS , 0x40 }, /* 14496-3 ALS */
41+ { AV_CODEC_ID_MPEG2VIDEO , 0x61 }, /* MPEG2 Main */
42+ { AV_CODEC_ID_MPEG2VIDEO , 0x60 }, /* MPEG2 Simple */
43+ { AV_CODEC_ID_MPEG2VIDEO , 0x62 }, /* MPEG2 SNR */
44+ { AV_CODEC_ID_MPEG2VIDEO , 0x63 }, /* MPEG2 Spatial */
45+ { AV_CODEC_ID_MPEG2VIDEO , 0x64 }, /* MPEG2 High */
46+ { AV_CODEC_ID_MPEG2VIDEO , 0x65 }, /* MPEG2 422 */
47+ { AV_CODEC_ID_AAC , 0x66 }, /* MPEG2 AAC Main */
48+ { AV_CODEC_ID_AAC , 0x67 }, /* MPEG2 AAC Low */
49+ { AV_CODEC_ID_AAC , 0x68 }, /* MPEG2 AAC SSR */
50+ { AV_CODEC_ID_MP3 , 0x69 }, /* 13818-3 */
51+ { AV_CODEC_ID_MP2 , 0x69 }, /* 11172-3 */
52+ { AV_CODEC_ID_MPEG1VIDEO , 0x6A }, /* 11172-2 */
53+ { AV_CODEC_ID_MP3 , 0x6B }, /* 11172-3 */
54+ { AV_CODEC_ID_MJPEG , 0x6C }, /* 10918-1 */
55+ { AV_CODEC_ID_PNG , 0x6D },
56+ { AV_CODEC_ID_JPEG2000 , 0x6E }, /* 15444-1 */
57+ { AV_CODEC_ID_VC1 , 0xA3 },
58+ { AV_CODEC_ID_DIRAC , 0xA4 },
59+ { AV_CODEC_ID_AC3 , 0xA5 },
60+ { AV_CODEC_ID_DTS , 0xA9 }, /* mp4ra.org */
61+ { AV_CODEC_ID_VORBIS , 0xDD }, /* non standard, gpac uses it */
62+ { AV_CODEC_ID_DVD_SUBTITLE, 0xE0 }, /* non standard, see unsupported-embedded-subs-2.mp4 */
63+ { AV_CODEC_ID_QCELP , 0xE1 },
64+ { AV_CODEC_ID_MPEG4SYSTEMS, 0x01 },
65+ { AV_CODEC_ID_MPEG4SYSTEMS, 0x02 },
66+ { AV_CODEC_ID_NONE , 0 },
6767 };
6868
6969 const AVCodecTag ff_codec_movvideo_tags[] = {
70−/* { CODEC_ID_, MKTAG('I', 'V', '5', '0') }, *//* Indeo 5.0 */
71−
72− { CODEC_ID_RAWVIDEO, MKTAG('r', 'a', 'w', ' ') }, /* Uncompressed RGB */
73− { CODEC_ID_RAWVIDEO, MKTAG('y', 'u', 'v', '2') }, /* Uncompressed YUV422 */
74− { CODEC_ID_RAWVIDEO, MKTAG('A', 'V', 'U', 'I') }, /* YUV with alpha-channel (AVID Uncompressed) */
75− { CODEC_ID_RAWVIDEO, MKTAG('2', 'v', 'u', 'y') }, /* UNCOMPRESSED 8BIT 4:2:2 */
76− { CODEC_ID_RAWVIDEO, MKTAG('y', 'u', 'v', 's') }, /* same as 2vuy but byte swapped */
77−
78− { CODEC_ID_RAWVIDEO, MKTAG('L', '5', '5', '5') },
79− { CODEC_ID_RAWVIDEO, MKTAG('L', '5', '6', '5') },
80− { CODEC_ID_RAWVIDEO, MKTAG('B', '5', '6', '5') },
81− { CODEC_ID_RAWVIDEO, MKTAG('2', '4', 'B', 'G') },
82− { CODEC_ID_RAWVIDEO, MKTAG('B', 'G', 'R', 'A') },
83− { CODEC_ID_RAWVIDEO, MKTAG('R', 'G', 'B', 'A') },
84− { CODEC_ID_RAWVIDEO, MKTAG('A', 'B', 'G', 'R') },
85− { CODEC_ID_RAWVIDEO, MKTAG('b', '1', '6', 'g') },
86− { CODEC_ID_RAWVIDEO, MKTAG('b', '4', '8', 'r') },
87− { CODEC_ID_RAWVIDEO, MKTAG('D', 'V', 'O', 'O') }, /* Digital Voodoo SD 8 Bit */
88−
89− { CODEC_ID_R10K, MKTAG('R', '1', '0', 'k') }, /* UNCOMPRESSED 10BIT RGB */
90− { CODEC_ID_R10K, MKTAG('R', '1', '0', 'g') }, /* UNCOMPRESSED 10BIT RGB */
91− { CODEC_ID_R210, MKTAG('r', '2', '1', '0') }, /* UNCOMPRESSED 10BIT RGB */
92− { CODEC_ID_V210, MKTAG('v', '2', '1', '0') }, /* UNCOMPRESSED 10BIT 4:2:2 */
93− { CODEC_ID_V410, MKTAG('v', '4', '1', '0') }, /* UNCOMPRESSED 10BIT 4:4:4 */
94−
95− { CODEC_ID_MJPEG, MKTAG('j', 'p', 'e', 'g') }, /* PhotoJPEG */
96− { CODEC_ID_MJPEG, MKTAG('m', 'j', 'p', 'a') }, /* Motion-JPEG (format A) */
97− { CODEC_ID_MJPEG, MKTAG('A', 'V', 'D', 'J') }, /* MJPEG with alpha-channel (AVID JFIF meridien compressed) */
98−/* { CODEC_ID_MJPEG, MKTAG('A', 'V', 'R', 'n') }, *//* MJPEG with alpha-channel (AVID ABVB/Truevision NuVista) */
99− { CODEC_ID_MJPEG, MKTAG('d', 'm', 'b', '1') }, /* Motion JPEG OpenDML */
100− { CODEC_ID_MJPEGB, MKTAG('m', 'j', 'p', 'b') }, /* Motion-JPEG (format B) */
101−
102− { CODEC_ID_SVQ1, MKTAG('S', 'V', 'Q', '1') }, /* Sorenson Video v1 */
103− { CODEC_ID_SVQ1, MKTAG('s', 'v', 'q', '1') }, /* Sorenson Video v1 */
104− { CODEC_ID_SVQ1, MKTAG('s', 'v', 'q', 'i') }, /* Sorenson Video v1 (from QT specs)*/
105− { CODEC_ID_SVQ3, MKTAG('S', 'V', 'Q', '3') }, /* Sorenson Video v3 */
106−
107− { CODEC_ID_MPEG4, MKTAG('m', 'p', '4', 'v') },
108− { CODEC_ID_MPEG4, MKTAG('D', 'I', 'V', 'X') }, /* OpenDiVX *//* sample files at http://heroinewarrior.com/xmovie.php3 use this tag */
109− { CODEC_ID_MPEG4, MKTAG('X', 'V', 'I', 'D') },
110− { CODEC_ID_MPEG4, MKTAG('3', 'I', 'V', '2') }, /* experimental: 3IVX files before ivx D4 4.5.1 */
111−
112− { CODEC_ID_H263, MKTAG('h', '2', '6', '3') }, /* H263 */
113− { CODEC_ID_H263, MKTAG('s', '2', '6', '3') }, /* H263 ?? works */
114−
115− { CODEC_ID_DVVIDEO, MKTAG('d', 'v', 'c', 'p') }, /* DV PAL */
116− { CODEC_ID_DVVIDEO, MKTAG('d', 'v', 'c', ' ') }, /* DV NTSC */
117− { CODEC_ID_DVVIDEO, MKTAG('d', 'v', 'p', 'p') }, /* DVCPRO PAL produced by FCP */
118− { CODEC_ID_DVVIDEO, MKTAG('d', 'v', '5', 'p') }, /* DVCPRO50 PAL produced by FCP */
119− { CODEC_ID_DVVIDEO, MKTAG('d', 'v', '5', 'n') }, /* DVCPRO50 NTSC produced by FCP */
120− { CODEC_ID_DVVIDEO, MKTAG('A', 'V', 'd', 'v') }, /* AVID DV */
121− { CODEC_ID_DVVIDEO, MKTAG('A', 'V', 'd', '1') }, /* AVID DV100 */
122− { CODEC_ID_DVVIDEO, MKTAG('d', 'v', 'h', 'q') }, /* DVCPRO HD 720p50 */
123− { CODEC_ID_DVVIDEO, MKTAG('d', 'v', 'h', 'p') }, /* DVCPRO HD 720p60 */
124− { CODEC_ID_DVVIDEO, MKTAG('d', 'v', 'h', '1') },
125− { CODEC_ID_DVVIDEO, MKTAG('d', 'v', 'h', '2') },
126− { CODEC_ID_DVVIDEO, MKTAG('d', 'v', 'h', '4') },
127− { CODEC_ID_DVVIDEO, MKTAG('d', 'v', 'h', '5') }, /* DVCPRO HD 50i produced by FCP */
128− { CODEC_ID_DVVIDEO, MKTAG('d', 'v', 'h', '6') }, /* DVCPRO HD 60i produced by FCP */
129− { CODEC_ID_DVVIDEO, MKTAG('d', 'v', 'h', '3') }, /* DVCPRO HD 30p produced by FCP */
130−
131− { CODEC_ID_VP3, MKTAG('V', 'P', '3', '1') }, /* On2 VP3 */
132− { CODEC_ID_RPZA, MKTAG('r', 'p', 'z', 'a') }, /* Apple Video (RPZA) */
133− { CODEC_ID_CINEPAK, MKTAG('c', 'v', 'i', 'd') }, /* Cinepak */
134− { CODEC_ID_8BPS, MKTAG('8', 'B', 'P', 'S') }, /* Planar RGB (8BPS) */
135− { CODEC_ID_SMC, MKTAG('s', 'm', 'c', ' ') }, /* Apple Graphics (SMC) */
136− { CODEC_ID_QTRLE, MKTAG('r', 'l', 'e', ' ') }, /* Apple Animation (RLE) */
137− { CODEC_ID_MSRLE, MKTAG('W', 'R', 'L', 'E') },
138− { CODEC_ID_QDRAW, MKTAG('q', 'd', 'r', 'w') }, /* QuickDraw */
139−
140− { CODEC_ID_RAWVIDEO, MKTAG('W', 'R', 'A', 'W') },
141−
142− { CODEC_ID_H264, MKTAG('a', 'v', 'c', '1') }, /* AVC-1/H.264 */
143− { CODEC_ID_H264, MKTAG('a', 'i', '5', 'p') }, /* AVC-Intra 50M 720p24/30/60 */
144− { CODEC_ID_H264, MKTAG('a', 'i', '5', 'q') }, /* AVC-Intra 50M 720p25/50 */
145− { CODEC_ID_H264, MKTAG('a', 'i', '5', '2') }, /* AVC-Intra 50M 1080p25/50 */
146− { CODEC_ID_H264, MKTAG('a', 'i', '5', '3') }, /* AVC-Intra 50M 1080p24/30/60 */
147− { CODEC_ID_H264, MKTAG('a', 'i', '5', '5') }, /* AVC-Intra 50M 1080i50 */
148− { CODEC_ID_H264, MKTAG('a', 'i', '5', '6') }, /* AVC-Intra 50M 1080i60 */
149− { CODEC_ID_H264, MKTAG('a', 'i', '1', 'p') }, /* AVC-Intra 100M 720p24/30/60 */
150− { CODEC_ID_H264, MKTAG('a', 'i', '1', 'q') }, /* AVC-Intra 100M 720p25/50 */
151− { CODEC_ID_H264, MKTAG('a', 'i', '1', '2') }, /* AVC-Intra 100M 1080p25/50 */
152− { CODEC_ID_H264, MKTAG('a', 'i', '1', '3') }, /* AVC-Intra 100M 1080p24/30/60 */
153− { CODEC_ID_H264, MKTAG('a', 'i', '1', '5') }, /* AVC-Intra 100M 1080i50 */
154− { CODEC_ID_H264, MKTAG('a', 'i', '1', '6') }, /* AVC-Intra 100M 1080i60 */
155−
156− { CODEC_ID_MPEG1VIDEO, MKTAG('m', '1', 'v', '1') }, /* Apple MPEG-1 Camcorder */
157− { CODEC_ID_MPEG1VIDEO, MKTAG('m', 'p', 'e', 'g') }, /* MPEG */
158− { CODEC_ID_MPEG2VIDEO, MKTAG('m', '2', 'v', '1') }, /* Apple MPEG-2 Camcorder */
159− { CODEC_ID_MPEG2VIDEO, MKTAG('h', 'd', 'v', '1') }, /* MPEG2 HDV 720p30 */
160− { CODEC_ID_MPEG2VIDEO, MKTAG('h', 'd', 'v', '2') }, /* MPEG2 HDV 1080i60 */
161− { CODEC_ID_MPEG2VIDEO, MKTAG('h', 'd', 'v', '3') }, /* MPEG2 HDV 1080i50 */
162− { CODEC_ID_MPEG2VIDEO, MKTAG('h', 'd', 'v', '4') }, /* MPEG2 HDV 720p24 */
163− { CODEC_ID_MPEG2VIDEO, MKTAG('h', 'd', 'v', '5') }, /* MPEG2 HDV 720p25 */
164− { CODEC_ID_MPEG2VIDEO, MKTAG('h', 'd', 'v', '6') }, /* MPEG2 HDV 1080p24 */
165− { CODEC_ID_MPEG2VIDEO, MKTAG('h', 'd', 'v', '7') }, /* MPEG2 HDV 1080p25 */
166− { CODEC_ID_MPEG2VIDEO, MKTAG('h', 'd', 'v', '8') }, /* MPEG2 HDV 1080p30 */
167− { CODEC_ID_MPEG2VIDEO, MKTAG('h', 'd', 'v', '9') }, /* MPEG2 HDV 720p60 JVC */
168− { CODEC_ID_MPEG2VIDEO, MKTAG('h', 'd', 'v', 'a') }, /* MPEG2 HDV 720p50 */
169− { CODEC_ID_MPEG2VIDEO, MKTAG('m', 'x', '5', 'n') }, /* MPEG2 IMX NTSC 525/60 50mb/s produced by FCP */
170− { CODEC_ID_MPEG2VIDEO, MKTAG('m', 'x', '5', 'p') }, /* MPEG2 IMX PAL 625/50 50mb/s produced by FCP */
171− { CODEC_ID_MPEG2VIDEO, MKTAG('m', 'x', '4', 'n') }, /* MPEG2 IMX NTSC 525/60 40mb/s produced by FCP */
172− { CODEC_ID_MPEG2VIDEO, MKTAG('m', 'x', '4', 'p') }, /* MPEG2 IMX PAL 625/50 40mb/s produced by FCP */
173− { CODEC_ID_MPEG2VIDEO, MKTAG('m', 'x', '3', 'n') }, /* MPEG2 IMX NTSC 525/60 30mb/s produced by FCP */
174− { CODEC_ID_MPEG2VIDEO, MKTAG('m', 'x', '3', 'p') }, /* MPEG2 IMX PAL 625/50 30mb/s produced by FCP */
175− { CODEC_ID_MPEG2VIDEO, MKTAG('x', 'd', '5', '4') }, /* XDCAM HD422 720p24 CBR */
176− { CODEC_ID_MPEG2VIDEO, MKTAG('x', 'd', '5', '5') }, /* XDCAM HD422 720p25 CBR */
177− { CODEC_ID_MPEG2VIDEO, MKTAG('x', 'd', '5', '9') }, /* XDCAM HD422 720p60 CBR */
178− { CODEC_ID_MPEG2VIDEO, MKTAG('x', 'd', '5', 'a') }, /* XDCAM HD422 720p50 CBR */
179− { CODEC_ID_MPEG2VIDEO, MKTAG('x', 'd', '5', 'b') }, /* XDCAM HD422 1080i60 CBR */
180− { CODEC_ID_MPEG2VIDEO, MKTAG('x', 'd', '5', 'c') }, /* XDCAM HD422 1080i50 CBR */
181− { CODEC_ID_MPEG2VIDEO, MKTAG('x', 'd', '5', 'd') }, /* XDCAM HD422 1080p24 CBR */
182− { CODEC_ID_MPEG2VIDEO, MKTAG('x', 'd', '5', 'e') }, /* XDCAM HD422 1080p25 CBR */
183− { CODEC_ID_MPEG2VIDEO, MKTAG('x', 'd', '5', 'f') }, /* XDCAM HD422 1080p30 CBR */
184− { CODEC_ID_MPEG2VIDEO, MKTAG('x', 'd', 'v', '1') }, /* XDCAM EX 720p30 VBR */
185− { CODEC_ID_MPEG2VIDEO, MKTAG('x', 'd', 'v', '2') }, /* XDCAM HD 1080i60 */
186− { CODEC_ID_MPEG2VIDEO, MKTAG('x', 'd', 'v', '3') }, /* XDCAM HD 1080i50 VBR */
187− { CODEC_ID_MPEG2VIDEO, MKTAG('x', 'd', 'v', '4') }, /* XDCAM EX 720p24 VBR */
188− { CODEC_ID_MPEG2VIDEO, MKTAG('x', 'd', 'v', '5') }, /* XDCAM EX 720p25 VBR */
189− { CODEC_ID_MPEG2VIDEO, MKTAG('x', 'd', 'v', '6') }, /* XDCAM HD 1080p24 VBR */
190− { CODEC_ID_MPEG2VIDEO, MKTAG('x', 'd', 'v', '7') }, /* XDCAM HD 1080p25 VBR */
191− { CODEC_ID_MPEG2VIDEO, MKTAG('x', 'd', 'v', '8') }, /* XDCAM HD 1080p30 VBR */
192− { CODEC_ID_MPEG2VIDEO, MKTAG('x', 'd', 'v', '9') }, /* XDCAM EX 720p60 VBR */
193− { CODEC_ID_MPEG2VIDEO, MKTAG('x', 'd', 'v', 'a') }, /* XDCAM EX 720p50 VBR */
194− { CODEC_ID_MPEG2VIDEO, MKTAG('x', 'd', 'v', 'b') }, /* XDCAM EX 1080i60 VBR */
195− { CODEC_ID_MPEG2VIDEO, MKTAG('x', 'd', 'v', 'c') }, /* XDCAM EX 1080i50 VBR */
196− { CODEC_ID_MPEG2VIDEO, MKTAG('x', 'd', 'v', 'd') }, /* XDCAM EX 1080p24 VBR */
197− { CODEC_ID_MPEG2VIDEO, MKTAG('x', 'd', 'v', 'e') }, /* XDCAM EX 1080p25 VBR */
198− { CODEC_ID_MPEG2VIDEO, MKTAG('x', 'd', 'v', 'f') }, /* XDCAM EX 1080p30 VBR */
199− { CODEC_ID_MPEG2VIDEO, MKTAG('x', 'd', 'h', 'd') }, /* XDCAM HD 540p */
200− { CODEC_ID_MPEG2VIDEO, MKTAG('x', 'd', 'h', '2') }, /* XDCAM HD422 540p */
201− { CODEC_ID_MPEG2VIDEO, MKTAG('A', 'V', 'm', 'p') }, /* AVID IMX PAL */
202−
203− { CODEC_ID_JPEG2000, MKTAG('m', 'j', 'p', '2') }, /* JPEG 2000 produced by FCP */
204−
205− { CODEC_ID_TARGA, MKTAG('t', 'g', 'a', ' ') }, /* Truevision Targa */
206− { CODEC_ID_TIFF, MKTAG('t', 'i', 'f', 'f') }, /* TIFF embedded in MOV */
207− { CODEC_ID_GIF, MKTAG('g', 'i', 'f', ' ') }, /* embedded gif files as frames (usually one "click to play movie" frame) */
208− { CODEC_ID_PNG, MKTAG('p', 'n', 'g', ' ') },
209−
210− { CODEC_ID_VC1, MKTAG('v', 'c', '-', '1') }, /* SMPTE RP 2025 */
211− { CODEC_ID_CAVS, MKTAG('a', 'v', 's', '2') },
212−
213− { CODEC_ID_DIRAC, MKTAG('d', 'r', 'a', 'c') },
214− { CODEC_ID_DNXHD, MKTAG('A', 'V', 'd', 'n') }, /* AVID DNxHD */
215− { CODEC_ID_FLV1, MKTAG('H', '2', '6', '3') }, /* Flash Media Server */
216− { CODEC_ID_MSMPEG4V3, MKTAG('3', 'I', 'V', 'D') }, /* 3ivx DivX Doctor */
217− { CODEC_ID_RAWVIDEO, MKTAG('A', 'V', '1', 'x') }, /* AVID 1:1x */
218− { CODEC_ID_RAWVIDEO, MKTAG('A', 'V', 'u', 'p') },
219− { CODEC_ID_SGI, MKTAG('s', 'g', 'i', ' ') }, /* SGI */
220− { CODEC_ID_DPX, MKTAG('d', 'p', 'x', ' ') }, /* DPX */
221−
222− { CODEC_ID_PRORES, MKTAG('a', 'p', 'c', 'h') }, /* Apple ProRes 422 High Quality */
223− { CODEC_ID_PRORES, MKTAG('a', 'p', 'c', 'n') }, /* Apple ProRes 422 Standard Definition */
224− { CODEC_ID_PRORES, MKTAG('a', 'p', 'c', 's') }, /* Apple ProRes 422 LT */
225− { CODEC_ID_PRORES, MKTAG('a', 'p', 'c', 'o') }, /* Apple ProRes 422 Proxy */
226− { CODEC_ID_PRORES, MKTAG('a', 'p', '4', 'h') }, /* Apple ProRes 4444 */
227−
228− { CODEC_ID_NONE, 0 },
70+/* { AV_CODEC_ID_, MKTAG('I', 'V', '5', '0') }, *//* Indeo 5.0 */
71+
72+ { AV_CODEC_ID_RAWVIDEO, MKTAG('r', 'a', 'w', ' ') }, /* Uncompressed RGB */
73+ { AV_CODEC_ID_RAWVIDEO, MKTAG('y', 'u', 'v', '2') }, /* Uncompressed YUV422 */
74+ { AV_CODEC_ID_RAWVIDEO, MKTAG('A', 'V', 'U', 'I') }, /* YUV with alpha-channel (AVID Uncompressed) */
75+ { AV_CODEC_ID_RAWVIDEO, MKTAG('2', 'v', 'u', 'y') }, /* UNCOMPRESSED 8BIT 4:2:2 */
76+ { AV_CODEC_ID_RAWVIDEO, MKTAG('y', 'u', 'v', 's') }, /* same as 2vuy but byte swapped */
77+
78+ { AV_CODEC_ID_RAWVIDEO, MKTAG('L', '5', '5', '5') },
79+ { AV_CODEC_ID_RAWVIDEO, MKTAG('L', '5', '6', '5') },
80+ { AV_CODEC_ID_RAWVIDEO, MKTAG('B', '5', '6', '5') },
81+ { AV_CODEC_ID_RAWVIDEO, MKTAG('2', '4', 'B', 'G') },
82+ { AV_CODEC_ID_RAWVIDEO, MKTAG('B', 'G', 'R', 'A') },
83+ { AV_CODEC_ID_RAWVIDEO, MKTAG('R', 'G', 'B', 'A') },
84+ { AV_CODEC_ID_RAWVIDEO, MKTAG('A', 'B', 'G', 'R') },
85+ { AV_CODEC_ID_RAWVIDEO, MKTAG('b', '1', '6', 'g') },
86+ { AV_CODEC_ID_RAWVIDEO, MKTAG('b', '4', '8', 'r') },
87+ { AV_CODEC_ID_RAWVIDEO, MKTAG('D', 'V', 'O', 'O') }, /* Digital Voodoo SD 8 Bit */
88+
89+ { AV_CODEC_ID_R10K, MKTAG('R', '1', '0', 'k') }, /* UNCOMPRESSED 10BIT RGB */
90+ { AV_CODEC_ID_R10K, MKTAG('R', '1', '0', 'g') }, /* UNCOMPRESSED 10BIT RGB */
91+ { AV_CODEC_ID_R210, MKTAG('r', '2', '1', '0') }, /* UNCOMPRESSED 10BIT RGB */
92+ { AV_CODEC_ID_V210, MKTAG('v', '2', '1', '0') }, /* UNCOMPRESSED 10BIT 4:2:2 */
93+ { AV_CODEC_ID_V410, MKTAG('v', '4', '1', '0') }, /* UNCOMPRESSED 10BIT 4:4:4 */
94+
95+ { AV_CODEC_ID_MJPEG, MKTAG('j', 'p', 'e', 'g') }, /* PhotoJPEG */
96+ { AV_CODEC_ID_MJPEG, MKTAG('m', 'j', 'p', 'a') }, /* Motion-JPEG (format A) */
97+ { AV_CODEC_ID_MJPEG, MKTAG('A', 'V', 'D', 'J') }, /* MJPEG with alpha-channel (AVID JFIF meridien compressed) */
98+/* { AV_CODEC_ID_MJPEG, MKTAG('A', 'V', 'R', 'n') }, *//* MJPEG with alpha-channel (AVID ABVB/Truevision NuVista) */
99+ { AV_CODEC_ID_MJPEG, MKTAG('d', 'm', 'b', '1') }, /* Motion JPEG OpenDML */
100+ { AV_CODEC_ID_MJPEGB, MKTAG('m', 'j', 'p', 'b') }, /* Motion-JPEG (format B) */
101+
102+ { AV_CODEC_ID_SVQ1, MKTAG('S', 'V', 'Q', '1') }, /* Sorenson Video v1 */
103+ { AV_CODEC_ID_SVQ1, MKTAG('s', 'v', 'q', '1') }, /* Sorenson Video v1 */
104+ { AV_CODEC_ID_SVQ1, MKTAG('s', 'v', 'q', 'i') }, /* Sorenson Video v1 (from QT specs)*/
105+ { AV_CODEC_ID_SVQ3, MKTAG('S', 'V', 'Q', '3') }, /* Sorenson Video v3 */
106+
107+ { AV_CODEC_ID_MPEG4, MKTAG('m', 'p', '4', 'v') },
108+ { AV_CODEC_ID_MPEG4, MKTAG('D', 'I', 'V', 'X') }, /* OpenDiVX *//* sample files at http://heroinewarrior.com/xmovie.php3 use this tag */
109+ { AV_CODEC_ID_MPEG4, MKTAG('X', 'V', 'I', 'D') },
110+ { AV_CODEC_ID_MPEG4, MKTAG('3', 'I', 'V', '2') }, /* experimental: 3IVX files before ivx D4 4.5.1 */
111+
112+ { AV_CODEC_ID_H263, MKTAG('h', '2', '6', '3') }, /* H263 */
113+ { AV_CODEC_ID_H263, MKTAG('s', '2', '6', '3') }, /* H263 ?? works */
114+
115+ { AV_CODEC_ID_DVVIDEO, MKTAG('d', 'v', 'c', 'p') }, /* DV PAL */
116+ { AV_CODEC_ID_DVVIDEO, MKTAG('d', 'v', 'c', ' ') }, /* DV NTSC */
117+ { AV_CODEC_ID_DVVIDEO, MKTAG('d', 'v', 'p', 'p') }, /* DVCPRO PAL produced by FCP */
118+ { AV_CODEC_ID_DVVIDEO, MKTAG('d', 'v', '5', 'p') }, /* DVCPRO50 PAL produced by FCP */
119+ { AV_CODEC_ID_DVVIDEO, MKTAG('d', 'v', '5', 'n') }, /* DVCPRO50 NTSC produced by FCP */
120+ { AV_CODEC_ID_DVVIDEO, MKTAG('A', 'V', 'd', 'v') }, /* AVID DV */
121+ { AV_CODEC_ID_DVVIDEO, MKTAG('A', 'V', 'd', '1') }, /* AVID DV100 */
122+ { AV_CODEC_ID_DVVIDEO, MKTAG('d', 'v', 'h', 'q') }, /* DVCPRO HD 720p50 */
123+ { AV_CODEC_ID_DVVIDEO, MKTAG('d', 'v', 'h', 'p') }, /* DVCPRO HD 720p60 */
124+ { AV_CODEC_ID_DVVIDEO, MKTAG('d', 'v', 'h', '1') },
125+ { AV_CODEC_ID_DVVIDEO, MKTAG('d', 'v', 'h', '2') },
126+ { AV_CODEC_ID_DVVIDEO, MKTAG('d', 'v', 'h', '4') },
127+ { AV_CODEC_ID_DVVIDEO, MKTAG('d', 'v', 'h', '5') }, /* DVCPRO HD 50i produced by FCP */
128+ { AV_CODEC_ID_DVVIDEO, MKTAG('d', 'v', 'h', '6') }, /* DVCPRO HD 60i produced by FCP */
129+ { AV_CODEC_ID_DVVIDEO, MKTAG('d', 'v', 'h', '3') }, /* DVCPRO HD 30p produced by FCP */
130+
131+ { AV_CODEC_ID_VP3, MKTAG('V', 'P', '3', '1') }, /* On2 VP3 */
132+ { AV_CODEC_ID_RPZA, MKTAG('r', 'p', 'z', 'a') }, /* Apple Video (RPZA) */
133+ { AV_CODEC_ID_CINEPAK, MKTAG('c', 'v', 'i', 'd') }, /* Cinepak */
134+ { AV_CODEC_ID_8BPS, MKTAG('8', 'B', 'P', 'S') }, /* Planar RGB (8BPS) */
135+ { AV_CODEC_ID_SMC, MKTAG('s', 'm', 'c', ' ') }, /* Apple Graphics (SMC) */
136+ { AV_CODEC_ID_QTRLE, MKTAG('r', 'l', 'e', ' ') }, /* Apple Animation (RLE) */
137+ { AV_CODEC_ID_MSRLE, MKTAG('W', 'R', 'L', 'E') },
138+ { AV_CODEC_ID_QDRAW, MKTAG('q', 'd', 'r', 'w') }, /* QuickDraw */
139+
140+ { AV_CODEC_ID_RAWVIDEO, MKTAG('W', 'R', 'A', 'W') },
141+
142+ { AV_CODEC_ID_H264, MKTAG('a', 'v', 'c', '1') }, /* AVC-1/H.264 */
143+ { AV_CODEC_ID_H264, MKTAG('a', 'i', '5', 'p') }, /* AVC-Intra 50M 720p24/30/60 */
144+ { AV_CODEC_ID_H264, MKTAG('a', 'i', '5', 'q') }, /* AVC-Intra 50M 720p25/50 */
145+ { AV_CODEC_ID_H264, MKTAG('a', 'i', '5', '2') }, /* AVC-Intra 50M 1080p25/50 */
146+ { AV_CODEC_ID_H264, MKTAG('a', 'i', '5', '3') }, /* AVC-Intra 50M 1080p24/30/60 */
147+ { AV_CODEC_ID_H264, MKTAG('a', 'i', '5', '5') }, /* AVC-Intra 50M 1080i50 */
148+ { AV_CODEC_ID_H264, MKTAG('a', 'i', '5', '6') }, /* AVC-Intra 50M 1080i60 */
149+ { AV_CODEC_ID_H264, MKTAG('a', 'i', '1', 'p') }, /* AVC-Intra 100M 720p24/30/60 */
150+ { AV_CODEC_ID_H264, MKTAG('a', 'i', '1', 'q') }, /* AVC-Intra 100M 720p25/50 */
151+ { AV_CODEC_ID_H264, MKTAG('a', 'i', '1', '2') }, /* AVC-Intra 100M 1080p25/50 */
152+ { AV_CODEC_ID_H264, MKTAG('a', 'i', '1', '3') }, /* AVC-Intra 100M 1080p24/30/60 */
153+ { AV_CODEC_ID_H264, MKTAG('a', 'i', '1', '5') }, /* AVC-Intra 100M 1080i50 */
154+ { AV_CODEC_ID_H264, MKTAG('a', 'i', '1', '6') }, /* AVC-Intra 100M 1080i60 */
155+
156+ { AV_CODEC_ID_MPEG1VIDEO, MKTAG('m', '1', 'v', '1') }, /* Apple MPEG-1 Camcorder */
157+ { AV_CODEC_ID_MPEG1VIDEO, MKTAG('m', 'p', 'e', 'g') }, /* MPEG */
158+ { AV_CODEC_ID_MPEG2VIDEO, MKTAG('m', '2', 'v', '1') }, /* Apple MPEG-2 Camcorder */
159+ { AV_CODEC_ID_MPEG2VIDEO, MKTAG('h', 'd', 'v', '1') }, /* MPEG2 HDV 720p30 */
160+ { AV_CODEC_ID_MPEG2VIDEO, MKTAG('h', 'd', 'v', '2') }, /* MPEG2 HDV 1080i60 */
161+ { AV_CODEC_ID_MPEG2VIDEO, MKTAG('h', 'd', 'v', '3') }, /* MPEG2 HDV 1080i50 */
162+ { AV_CODEC_ID_MPEG2VIDEO, MKTAG('h', 'd', 'v', '4') }, /* MPEG2 HDV 720p24 */
163+ { AV_CODEC_ID_MPEG2VIDEO, MKTAG('h', 'd', 'v', '5') }, /* MPEG2 HDV 720p25 */
164+ { AV_CODEC_ID_MPEG2VIDEO, MKTAG('h', 'd', 'v', '6') }, /* MPEG2 HDV 1080p24 */
165+ { AV_CODEC_ID_MPEG2VIDEO, MKTAG('h', 'd', 'v', '7') }, /* MPEG2 HDV 1080p25 */
166+ { AV_CODEC_ID_MPEG2VIDEO, MKTAG('h', 'd', 'v', '8') }, /* MPEG2 HDV 1080p30 */
167+ { AV_CODEC_ID_MPEG2VIDEO, MKTAG('h', 'd', 'v', '9') }, /* MPEG2 HDV 720p60 JVC */
168+ { AV_CODEC_ID_MPEG2VIDEO, MKTAG('h', 'd', 'v', 'a') }, /* MPEG2 HDV 720p50 */
169+ { AV_CODEC_ID_MPEG2VIDEO, MKTAG('m', 'x', '5', 'n') }, /* MPEG2 IMX NTSC 525/60 50mb/s produced by FCP */
170+ { AV_CODEC_ID_MPEG2VIDEO, MKTAG('m', 'x', '5', 'p') }, /* MPEG2 IMX PAL 625/50 50mb/s produced by FCP */
171+ { AV_CODEC_ID_MPEG2VIDEO, MKTAG('m', 'x', '4', 'n') }, /* MPEG2 IMX NTSC 525/60 40mb/s produced by FCP */
172+ { AV_CODEC_ID_MPEG2VIDEO, MKTAG('m', 'x', '4', 'p') }, /* MPEG2 IMX PAL 625/50 40mb/s produced by FCP */
173+ { AV_CODEC_ID_MPEG2VIDEO, MKTAG('m', 'x', '3', 'n') }, /* MPEG2 IMX NTSC 525/60 30mb/s produced by FCP */
174+ { AV_CODEC_ID_MPEG2VIDEO, MKTAG('m', 'x', '3', 'p') }, /* MPEG2 IMX PAL 625/50 30mb/s produced by FCP */
175+ { AV_CODEC_ID_MPEG2VIDEO, MKTAG('x', 'd', '5', '4') }, /* XDCAM HD422 720p24 CBR */
176+ { AV_CODEC_ID_MPEG2VIDEO, MKTAG('x', 'd', '5', '5') }, /* XDCAM HD422 720p25 CBR */
177+ { AV_CODEC_ID_MPEG2VIDEO, MKTAG('x', 'd', '5', '9') }, /* XDCAM HD422 720p60 CBR */
178+ { AV_CODEC_ID_MPEG2VIDEO, MKTAG('x', 'd', '5', 'a') }, /* XDCAM HD422 720p50 CBR */
179+ { AV_CODEC_ID_MPEG2VIDEO, MKTAG('x', 'd', '5', 'b') }, /* XDCAM HD422 1080i60 CBR */
180+ { AV_CODEC_ID_MPEG2VIDEO, MKTAG('x', 'd', '5', 'c') }, /* XDCAM HD422 1080i50 CBR */
181+ { AV_CODEC_ID_MPEG2VIDEO, MKTAG('x', 'd', '5', 'd') }, /* XDCAM HD422 1080p24 CBR */
182+ { AV_CODEC_ID_MPEG2VIDEO, MKTAG('x', 'd', '5', 'e') }, /* XDCAM HD422 1080p25 CBR */
183+ { AV_CODEC_ID_MPEG2VIDEO, MKTAG('x', 'd', '5', 'f') }, /* XDCAM HD422 1080p30 CBR */
184+ { AV_CODEC_ID_MPEG2VIDEO, MKTAG('x', 'd', 'v', '1') }, /* XDCAM EX 720p30 VBR */
185+ { AV_CODEC_ID_MPEG2VIDEO, MKTAG('x', 'd', 'v', '2') }, /* XDCAM HD 1080i60 */
186+ { AV_CODEC_ID_MPEG2VIDEO, MKTAG('x', 'd', 'v', '3') }, /* XDCAM HD 1080i50 VBR */
187+ { AV_CODEC_ID_MPEG2VIDEO, MKTAG('x', 'd', 'v', '4') }, /* XDCAM EX 720p24 VBR */
188+ { AV_CODEC_ID_MPEG2VIDEO, MKTAG('x', 'd', 'v', '5') }, /* XDCAM EX 720p25 VBR */
189+ { AV_CODEC_ID_MPEG2VIDEO, MKTAG('x', 'd', 'v', '6') }, /* XDCAM HD 1080p24 VBR */
190+ { AV_CODEC_ID_MPEG2VIDEO, MKTAG('x', 'd', 'v', '7') }, /* XDCAM HD 1080p25 VBR */
191+ { AV_CODEC_ID_MPEG2VIDEO, MKTAG('x', 'd', 'v', '8') }, /* XDCAM HD 1080p30 VBR */
192+ { AV_CODEC_ID_MPEG2VIDEO, MKTAG('x', 'd', 'v', '9') }, /* XDCAM EX 720p60 VBR */
193+ { AV_CODEC_ID_MPEG2VIDEO, MKTAG('x', 'd', 'v', 'a') }, /* XDCAM EX 720p50 VBR */
194+ { AV_CODEC_ID_MPEG2VIDEO, MKTAG('x', 'd', 'v', 'b') }, /* XDCAM EX 1080i60 VBR */
195+ { AV_CODEC_ID_MPEG2VIDEO, MKTAG('x', 'd', 'v', 'c') }, /* XDCAM EX 1080i50 VBR */
196+ { AV_CODEC_ID_MPEG2VIDEO, MKTAG('x', 'd', 'v', 'd') }, /* XDCAM EX 1080p24 VBR */
197+ { AV_CODEC_ID_MPEG2VIDEO, MKTAG('x', 'd', 'v', 'e') }, /* XDCAM EX 1080p25 VBR */
198+ { AV_CODEC_ID_MPEG2VIDEO, MKTAG('x', 'd', 'v', 'f') }, /* XDCAM EX 1080p30 VBR */
199+ { AV_CODEC_ID_MPEG2VIDEO, MKTAG('x', 'd', 'h', 'd') }, /* XDCAM HD 540p */
200+ { AV_CODEC_ID_MPEG2VIDEO, MKTAG('x', 'd', 'h', '2') }, /* XDCAM HD422 540p */
201+ { AV_CODEC_ID_MPEG2VIDEO, MKTAG('A', 'V', 'm', 'p') }, /* AVID IMX PAL */
202+
203+ { AV_CODEC_ID_JPEG2000, MKTAG('m', 'j', 'p', '2') }, /* JPEG 2000 produced by FCP */
204+
205+ { AV_CODEC_ID_TARGA, MKTAG('t', 'g', 'a', ' ') }, /* Truevision Targa */
206+ { AV_CODEC_ID_TIFF, MKTAG('t', 'i', 'f', 'f') }, /* TIFF embedded in MOV */
207+ { AV_CODEC_ID_GIF, MKTAG('g', 'i', 'f', ' ') }, /* embedded gif files as frames (usually one "click to play movie" frame) */
208+ { AV_CODEC_ID_PNG, MKTAG('p', 'n', 'g', ' ') },
209+
210+ { AV_CODEC_ID_VC1, MKTAG('v', 'c', '-', '1') }, /* SMPTE RP 2025 */
211+ { AV_CODEC_ID_CAVS, MKTAG('a', 'v', 's', '2') },
212+
213+ { AV_CODEC_ID_DIRAC, MKTAG('d', 'r', 'a', 'c') },
214+ { AV_CODEC_ID_DNXHD, MKTAG('A', 'V', 'd', 'n') }, /* AVID DNxHD */
215+ { AV_CODEC_ID_FLV1, MKTAG('H', '2', '6', '3') }, /* Flash Media Server */
216+ { AV_CODEC_ID_MSMPEG4V3, MKTAG('3', 'I', 'V', 'D') }, /* 3ivx DivX Doctor */
217+ { AV_CODEC_ID_RAWVIDEO, MKTAG('A', 'V', '1', 'x') }, /* AVID 1:1x */
218+ { AV_CODEC_ID_RAWVIDEO, MKTAG('A', 'V', 'u', 'p') },
219+ { AV_CODEC_ID_SGI, MKTAG('s', 'g', 'i', ' ') }, /* SGI */
220+ { AV_CODEC_ID_DPX, MKTAG('d', 'p', 'x', ' ') }, /* DPX */
221+
222+ { AV_CODEC_ID_PRORES, MKTAG('a', 'p', 'c', 'h') }, /* Apple ProRes 422 High Quality */
223+ { AV_CODEC_ID_PRORES, MKTAG('a', 'p', 'c', 'n') }, /* Apple ProRes 422 Standard Definition */
224+ { AV_CODEC_ID_PRORES, MKTAG('a', 'p', 'c', 's') }, /* Apple ProRes 422 LT */
225+ { AV_CODEC_ID_PRORES, MKTAG('a', 'p', 'c', 'o') }, /* Apple ProRes 422 Proxy */
226+ { AV_CODEC_ID_PRORES, MKTAG('a', 'p', '4', 'h') }, /* Apple ProRes 4444 */
227+
228+ { AV_CODEC_ID_NONE, 0 },
229229 };
230230
231231 const AVCodecTag ff_codec_movaudio_tags[] = {
232− { CODEC_ID_AAC, MKTAG('m', 'p', '4', 'a') },
233− { CODEC_ID_AC3, MKTAG('a', 'c', '-', '3') }, /* ETSI TS 102 366 Annex F */
234− { CODEC_ID_AC3, MKTAG('s', 'a', 'c', '3') }, /* Nero Recode */
235− { CODEC_ID_ADPCM_IMA_QT, MKTAG('i', 'm', 'a', '4') },
236− { CODEC_ID_ALAC, MKTAG('a', 'l', 'a', 'c') },
237− { CODEC_ID_AMR_NB, MKTAG('s', 'a', 'm', 'r') }, /* AMR-NB 3gp */
238− { CODEC_ID_AMR_WB, MKTAG('s', 'a', 'w', 'b') }, /* AMR-WB 3gp */
239− { CODEC_ID_DTS, MKTAG('d', 't', 's', 'c') }, /* DTS formats prior to DTS-HD */
240− { CODEC_ID_DTS, MKTAG('d', 't', 's', 'h') }, /* DTS-HD audio formats */
241− { CODEC_ID_DTS, MKTAG('d', 't', 's', 'l') }, /* DTS-HD Lossless formats */
242− { CODEC_ID_DTS, MKTAG('D', 'T', 'S', ' ') }, /* non-standard */
243− { CODEC_ID_EAC3, MKTAG('e', 'c', '-', '3') }, /* ETSI TS 102 366 Annex F (only valid in ISOBMFF) */
244− { CODEC_ID_DVAUDIO, MKTAG('v', 'd', 'v', 'a') },
245− { CODEC_ID_DVAUDIO, MKTAG('d', 'v', 'c', 'a') },
246− { CODEC_ID_GSM, MKTAG('a', 'g', 's', 'm') },
247− { CODEC_ID_ILBC, MKTAG('i', 'l', 'b', 'c') },
248− { CODEC_ID_MACE3, MKTAG('M', 'A', 'C', '3') },
249− { CODEC_ID_MACE6, MKTAG('M', 'A', 'C', '6') },
250− { CODEC_ID_MP1, MKTAG('.', 'm', 'p', '1') },
251− { CODEC_ID_MP2, MKTAG('.', 'm', 'p', '2') },
252− { CODEC_ID_MP3, MKTAG('.', 'm', 'p', '3') },
253− { CODEC_ID_MP3, 0x6D730055 },
254− { CODEC_ID_NELLYMOSER, MKTAG('n', 'm', 'o', 's') }, /* Flash Media Server */
255− { CODEC_ID_PCM_ALAW, MKTAG('a', 'l', 'a', 'w') },
256− { CODEC_ID_PCM_F32BE, MKTAG('f', 'l', '3', '2') },
257− { CODEC_ID_PCM_F32LE, MKTAG('f', 'l', '3', '2') },
258− { CODEC_ID_PCM_F64BE, MKTAG('f', 'l', '6', '4') },
259− { CODEC_ID_PCM_F64LE, MKTAG('f', 'l', '6', '4') },
260− { CODEC_ID_PCM_MULAW, MKTAG('u', 'l', 'a', 'w') },
261− { CODEC_ID_PCM_S16BE, MKTAG('t', 'w', 'o', 's') },
262− { CODEC_ID_PCM_S16LE, MKTAG('s', 'o', 'w', 't') },
263− { CODEC_ID_PCM_S16LE, MKTAG('l', 'p', 'c', 'm') },
264− { CODEC_ID_PCM_S24BE, MKTAG('i', 'n', '2', '4') },
265− { CODEC_ID_PCM_S24LE, MKTAG('i', 'n', '2', '4') },
266− { CODEC_ID_PCM_S32BE, MKTAG('i', 'n', '3', '2') },
267− { CODEC_ID_PCM_S32LE, MKTAG('i', 'n', '3', '2') },
268− { CODEC_ID_PCM_S8, MKTAG('s', 'o', 'w', 't') },
269− { CODEC_ID_PCM_U8, MKTAG('r', 'a', 'w', ' ') },
270− { CODEC_ID_PCM_U8, MKTAG('N', 'O', 'N', 'E') },
271− { CODEC_ID_QCELP, MKTAG('Q', 'c', 'l', 'p') },
272− { CODEC_ID_QCELP, MKTAG('Q', 'c', 'l', 'q') },
273− { CODEC_ID_QCELP, MKTAG('s', 'q', 'c', 'p') }, /* ISO Media fourcc */
274− { CODEC_ID_QDM2, MKTAG('Q', 'D', 'M', '2') },
275− { CODEC_ID_QDMC, MKTAG('Q', 'D', 'M', 'C') },
276− { CODEC_ID_SPEEX, MKTAG('s', 'p', 'e', 'x') }, /* Flash Media Server */
277− { CODEC_ID_WMAV2, MKTAG('W', 'M', 'A', '2') },
278− { CODEC_ID_NONE, 0 },
232+ { AV_CODEC_ID_AAC, MKTAG('m', 'p', '4', 'a') },
233+ { AV_CODEC_ID_AC3, MKTAG('a', 'c', '-', '3') }, /* ETSI TS 102 366 Annex F */
234+ { AV_CODEC_ID_AC3, MKTAG('s', 'a', 'c', '3') }, /* Nero Recode */
235+ { AV_CODEC_ID_ADPCM_IMA_QT, MKTAG('i', 'm', 'a', '4') },
236+ { AV_CODEC_ID_ALAC, MKTAG('a', 'l', 'a', 'c') },
237+ { AV_CODEC_ID_AMR_NB, MKTAG('s', 'a', 'm', 'r') }, /* AMR-NB 3gp */
238+ { AV_CODEC_ID_AMR_WB, MKTAG('s', 'a', 'w', 'b') }, /* AMR-WB 3gp */
239+ { AV_CODEC_ID_DTS, MKTAG('d', 't', 's', 'c') }, /* DTS formats prior to DTS-HD */
240+ { AV_CODEC_ID_DTS, MKTAG('d', 't', 's', 'h') }, /* DTS-HD audio formats */
241+ { AV_CODEC_ID_DTS, MKTAG('d', 't', 's', 'l') }, /* DTS-HD Lossless formats */
242+ { AV_CODEC_ID_DTS, MKTAG('D', 'T', 'S', ' ') }, /* non-standard */
243+ { AV_CODEC_ID_EAC3, MKTAG('e', 'c', '-', '3') }, /* ETSI TS 102 366 Annex F (only valid in ISOBMFF) */
244+ { AV_CODEC_ID_DVAUDIO, MKTAG('v', 'd', 'v', 'a') },
245+ { AV_CODEC_ID_DVAUDIO, MKTAG('d', 'v', 'c', 'a') },
246+ { AV_CODEC_ID_GSM, MKTAG('a', 'g', 's', 'm') },
247+ { AV_CODEC_ID_ILBC, MKTAG('i', 'l', 'b', 'c') },
248+ { AV_CODEC_ID_MACE3, MKTAG('M', 'A', 'C', '3') },
249+ { AV_CODEC_ID_MACE6, MKTAG('M', 'A', 'C', '6') },
250+ { AV_CODEC_ID_MP1, MKTAG('.', 'm', 'p', '1') },
251+ { AV_CODEC_ID_MP2, MKTAG('.', 'm', 'p', '2') },
252+ { AV_CODEC_ID_MP3, MKTAG('.', 'm', 'p', '3') },
253+ { AV_CODEC_ID_MP3, 0x6D730055 },
254+ { AV_CODEC_ID_NELLYMOSER, MKTAG('n', 'm', 'o', 's') }, /* Flash Media Server */
255+ { AV_CODEC_ID_PCM_ALAW, MKTAG('a', 'l', 'a', 'w') },
256+ { AV_CODEC_ID_PCM_F32BE, MKTAG('f', 'l', '3', '2') },
257+ { AV_CODEC_ID_PCM_F32LE, MKTAG('f', 'l', '3', '2') },
258+ { AV_CODEC_ID_PCM_F64BE, MKTAG('f', 'l', '6', '4') },
259+ { AV_CODEC_ID_PCM_F64LE, MKTAG('f', 'l', '6', '4') },
260+ { AV_CODEC_ID_PCM_MULAW, MKTAG('u', 'l', 'a', 'w') },
261+ { AV_CODEC_ID_PCM_S16BE, MKTAG('t', 'w', 'o', 's') },
262+ { AV_CODEC_ID_PCM_S16LE, MKTAG('s', 'o', 'w', 't') },
263+ { AV_CODEC_ID_PCM_S16LE, MKTAG('l', 'p', 'c', 'm') },
264+ { AV_CODEC_ID_PCM_S24BE, MKTAG('i', 'n', '2', '4') },
265+ { AV_CODEC_ID_PCM_S24LE, MKTAG('i', 'n', '2', '4') },
266+ { AV_CODEC_ID_PCM_S32BE, MKTAG('i', 'n', '3', '2') },
267+ { AV_CODEC_ID_PCM_S32LE, MKTAG('i', 'n', '3', '2') },
268+ { AV_CODEC_ID_PCM_S8, MKTAG('s', 'o', 'w', 't') },
269+ { AV_CODEC_ID_PCM_U8, MKTAG('r', 'a', 'w', ' ') },
270+ { AV_CODEC_ID_PCM_U8, MKTAG('N', 'O', 'N', 'E') },
271+ { AV_CODEC_ID_QCELP, MKTAG('Q', 'c', 'l', 'p') },
272+ { AV_CODEC_ID_QCELP, MKTAG('Q', 'c', 'l', 'q') },
273+ { AV_CODEC_ID_QCELP, MKTAG('s', 'q', 'c', 'p') }, /* ISO Media fourcc */
274+ { AV_CODEC_ID_QDM2, MKTAG('Q', 'D', 'M', '2') },
275+ { AV_CODEC_ID_QDMC, MKTAG('Q', 'D', 'M', 'C') },
276+ { AV_CODEC_ID_SPEEX, MKTAG('s', 'p', 'e', 'x') }, /* Flash Media Server */
277+ { AV_CODEC_ID_WMAV2, MKTAG('W', 'M', 'A', '2') },
278+ { AV_CODEC_ID_NONE, 0 },
279279 };
280280
281281 const AVCodecTag ff_codec_movsubtitle_tags[] = {
282− { CODEC_ID_MOV_TEXT, MKTAG('t', 'e', 'x', 't') },
283− { CODEC_ID_MOV_TEXT, MKTAG('t', 'x', '3', 'g') },
284− { CODEC_ID_NONE, 0 },
282+ { AV_CODEC_ID_MOV_TEXT, MKTAG('t', 'e', 'x', 't') },
283+ { AV_CODEC_ID_MOV_TEXT, MKTAG('t', 'x', '3', 'g') },
284+ { AV_CODEC_ID_NONE, 0 },
285285 };
286286
287287 /* map numeric codes from mdhd atom to ISO 639 */
@@ -398,12 +398,12 @@ void ff_mp4_parse_es_descr(AVIOContext *pb, int *es_id) · 110 unmodified lines
398398 }
399399
400400 static const AVCodecTag mp4_audio_types[] = {
401− { CODEC_ID_MP3ON4, AOT_PS }, /* old mp3on4 draft */
402− { CODEC_ID_MP3ON4, AOT_L1 }, /* layer 1 */
403− { CODEC_ID_MP3ON4, AOT_L2 }, /* layer 2 */
404− { CODEC_ID_MP3ON4, AOT_L3 }, /* layer 3 */
405− { CODEC_ID_MP4ALS, AOT_ALS }, /* MPEG-4 ALS */
406− { CODEC_ID_NONE, AOT_NULL },
401+ { AV_CODEC_ID_MP3ON4, AOT_PS }, /* old mp3on4 draft */
402+ { AV_CODEC_ID_MP3ON4, AOT_L1 }, /* layer 1 */
403+ { AV_CODEC_ID_MP3ON4, AOT_L2 }, /* layer 2 */
404+ { AV_CODEC_ID_MP3ON4, AOT_L3 }, /* layer 3 */
405+ { AV_CODEC_ID_MP4ALS, AOT_ALS }, /* MPEG-4 ALS */
406+ { AV_CODEC_ID_NONE, AOT_NULL },
407407 };
408408
409409 int ff_mp4_read_dec_config_descr(AVFormatContext *fc, AVStream *st, AVIOContext *pb)
@@ -428,7 +428,7 @@ int ff_mp4_read_dec_config_descr(AVFormatContext *fc, AVStream *st, AVIOContext · 18 unmodified lines
428428 return AVERROR(ENOMEM);
429429 avio_read(pb, st->codec->extradata, len);
430430 st->codec->extradata_size = len;
431− if (st->codec->codec_id == CODEC_ID_AAC) {
431+ if (st->codec->codec_id == AV_CODEC_ID_AAC) {
432432 MPEG4AudioConfig cfg;
433433 avpriv_mpeg4audio_get_config(&cfg, st->codec->extradata,
434434 st->codec->extradata_size * 8, 1);
@@ -445,7 +445,7 @@ int ff_mp4_read_dec_config_descr(AVFormatContext *fc, AVStream *st, AVIOContext · 10 unmodified lines
445445 cfg.sample_rate, cfg.ext_sample_rate);
446446 if (!(st->codec->codec_id = ff_codec_get_id(mp4_audio_types,
447447 cfg.object_type)))
448− st->codec->codec_id = CODEC_ID_AAC;
448+ st->codec->codec_id = AV_CODEC_ID_AAC;
449449 }
450450 }
451451 return 0;
libavformat/isom.h+1−1
@@ -184,7 +184,7 @@ void ff_mp4_parse_es_descr(AVIOContext *pb, int *es_id); · 183 unmodified lines
184184 #define MOV_FRAG_SAMPLE_FLAG_DEPENDS_YES 0x01000000
185185
186186 int ff_mov_read_esds(AVFormatContext *fc, AVIOContext *pb, MOVAtom atom);
187−enum CodecID ff_mov_get_lpcm_codec_id(int bps, int flags);
187+enum AVCodecID ff_mov_get_lpcm_codec_id(int bps, int flags);
188188
189189 int ff_mov_read_stsd_entries(MOVContext *c, AVIOContext *pb, int entries);
190190
libavformat/iss.c+1−1
@@ -93,7 +93,7 @@ static av_cold int iss_read_header(AVFormatContext *s) · 92 unmodified lines
9393 if (!st)
9494 return AVERROR(ENOMEM);
9595 st->codec->codec_type = AVMEDIA_TYPE_AUDIO;
96− st->codec->codec_id = CODEC_ID_ADPCM_IMA_ISS;
96+ st->codec->codec_id = AV_CODEC_ID_ADPCM_IMA_ISS;
9797 st->codec->channels = stereo ? 2 : 1;
9898 st->codec->sample_rate = 44100;
9999 if(rate_divisor > 0)
libavformat/iv8.c+1−1
@@ -46,7 +46,7 @@ static int read_header(AVFormatContext *s) · 45 unmodified lines
4646 return AVERROR(ENOMEM);
4747
4848 st->codec->codec_type = AVMEDIA_TYPE_VIDEO;
49− st->codec->codec_id = CODEC_ID_MPEG4;
49+ st->codec->codec_id = AV_CODEC_ID_MPEG4;
5050 st->need_parsing = AVSTREAM_PARSE_FULL;
5151 avpriv_set_pts_info(st, 64, 1, 90000);
5252
libavformat/ivfenc.c+3−3
@@ -30,7 +30,7 @@ static int ivf_write_header(AVFormatContext *s) · 29 unmodified lines
3030 return AVERROR(EINVAL);
3131 }
3232 ctx = s->streams[0]->codec;
33− if (ctx->codec_type != AVMEDIA_TYPE_VIDEO || ctx->codec_id != CODEC_ID_VP8) {
33+ if (ctx->codec_type != AVMEDIA_TYPE_VIDEO || ctx->codec_id != AV_CODEC_ID_VP8) {
3434 av_log(s, AV_LOG_ERROR, "Currently only VP8 is supported!\n");
3535 return AVERROR(EINVAL);
3636 }
@@ -62,8 +62,8 @@ AVOutputFormat ff_ivf_muxer = { · 25 unmodified lines
6262 .name = "ivf",
6363 .long_name = NULL_IF_CONFIG_SMALL("On2 IVF"),
6464 .extensions = "ivf",
65− .audio_codec = CODEC_ID_NONE,
66− .video_codec = CODEC_ID_VP8,
65+ .audio_codec = AV_CODEC_ID_NONE,
66+ .video_codec = AV_CODEC_ID_VP8,
6767 .write_header = ivf_write_header,
6868 .write_packet = ivf_write_packet,
6969 };
libavformat/jvdec.c+2−2
@@ -75,7 +75,7 @@ static int read_header(AVFormatContext *s) · 74 unmodified lines
7575 return AVERROR(ENOMEM);
7676
7777 vst->codec->codec_type = AVMEDIA_TYPE_VIDEO;
78− vst->codec->codec_id = CODEC_ID_JV;
78+ vst->codec->codec_id = AV_CODEC_ID_JV;
7979 vst->codec->codec_tag = 0; /* no fourcc */
8080 vst->codec->width = avio_rl16(pb);
8181 vst->codec->height = avio_rl16(pb);
@@ -87,7 +87,7 @@ static int read_header(AVFormatContext *s) · 5 unmodified lines
8787 avio_skip(pb, 4);
8888
8989 ast->codec->codec_type = AVMEDIA_TYPE_AUDIO;
90− ast->codec->codec_id = CODEC_ID_PCM_U8;
90+ ast->codec->codec_id = AV_CODEC_ID_PCM_U8;
9191 ast->codec->codec_tag = 0; /* no fourcc */
9292 ast->codec->sample_rate = avio_rl16(pb);
9393 ast->codec->channels = 1;
libavformat/latmenc.c+2−2
@@ -183,8 +183,8 @@ AVOutputFormat ff_latm_muxer = { · 182 unmodified lines
183183 .mime_type = "audio/MP4A-LATM",
184184 .extensions = "latm",
185185 .priv_data_size = sizeof(LATMContext),
186− .audio_codec = CODEC_ID_AAC,
187− .video_codec = CODEC_ID_NONE,
186+ .audio_codec = AV_CODEC_ID_AAC,
187+ .video_codec = AV_CODEC_ID_NONE,
188188 .write_header = latm_write_header,
189189 .write_packet = latm_write_packet,
190190 .priv_class = &latm_muxer_class,
libavformat/lmlm4.c+2−2
@@ -64,14 +64,14 @@ static int lmlm4_read_header(AVFormatContext *s) { · 63 unmodified lines
6464 if (!(st = avformat_new_stream(s, NULL)))
6565 return AVERROR(ENOMEM);
6666 st->codec->codec_type = AVMEDIA_TYPE_VIDEO;
67− st->codec->codec_id = CODEC_ID_MPEG4;
67+ st->codec->codec_id = AV_CODEC_ID_MPEG4;
6868 st->need_parsing = AVSTREAM_PARSE_HEADERS;
6969 avpriv_set_pts_info(st, 64, 1001, 30000);
7070
7171 if (!(st = avformat_new_stream(s, NULL)))
7272 return AVERROR(ENOMEM);
7373 st->codec->codec_type = AVMEDIA_TYPE_AUDIO;
74− st->codec->codec_id = CODEC_ID_MP2;
74+ st->codec->codec_id = AV_CODEC_ID_MP2;
7575 st->need_parsing = AVSTREAM_PARSE_HEADERS;
7676
7777 /* the parameters will be extracted from the compressed bitstream */
libavformat/lxfdec.c+17−17
@@ -32,17 +32,17 @@ · 31 unmodified lines
3232 #define LXF_MAX_AUDIO_PACKET (8008*15*4) ///< 15-channel 32-bit NTSC audio frame
3333
3434 static const AVCodecTag lxf_tags[] = {
35− { CODEC_ID_MJPEG, 0 },
36− { CODEC_ID_MPEG1VIDEO, 1 },
37− { CODEC_ID_MPEG2VIDEO, 2 }, //MpMl, 4:2:0
38− { CODEC_ID_MPEG2VIDEO, 3 }, //MpPl, 4:2:2
39− { CODEC_ID_DVVIDEO, 4 }, //DV25
40− { CODEC_ID_DVVIDEO, 5 }, //DVCPRO
41− { CODEC_ID_DVVIDEO, 6 }, //DVCPRO50
42− { CODEC_ID_RAWVIDEO, 7 }, //PIX_FMT_ARGB, where alpha is used for chroma keying
43− { CODEC_ID_RAWVIDEO, 8 }, //16-bit chroma key
44− { CODEC_ID_MPEG2VIDEO, 9 }, //4:2:2 CBP ("Constrained Bytes per Gop")
45− { CODEC_ID_NONE, 0 },
35+ { AV_CODEC_ID_MJPEG, 0 },
36+ { AV_CODEC_ID_MPEG1VIDEO, 1 },
37+ { AV_CODEC_ID_MPEG2VIDEO, 2 }, //MpMl, 4:2:0
38+ { AV_CODEC_ID_MPEG2VIDEO, 3 }, //MpPl, 4:2:2
39+ { AV_CODEC_ID_DVVIDEO, 4 }, //DV25
40+ { AV_CODEC_ID_DVVIDEO, 5 }, //DVCPRO
41+ { AV_CODEC_ID_DVVIDEO, 6 }, //DVCPRO50
42+ { AV_CODEC_ID_RAWVIDEO, 7 }, //PIX_FMT_ARGB, where alpha is used for chroma keying
43+ { AV_CODEC_ID_RAWVIDEO, 8 }, //16-bit chroma key
44+ { AV_CODEC_ID_MPEG2VIDEO, 9 }, //4:2:2 CBP ("Constrained Bytes per Gop")
45+ { AV_CODEC_ID_NONE, 0 },
4646 };
4747
4848 typedef struct {
@@ -159,10 +159,10 @@ static int get_packet_header(AVFormatContext *s, uint8_t *header, uint32_t *form · 110 unmodified lines
159159 }
160160
161161 switch (st->codec->bits_per_coded_sample) {
162− case 16: st->codec->codec_id = CODEC_ID_PCM_S16LE; break;
163− case 20: st->codec->codec_id = CODEC_ID_PCM_LXF; break;
164− case 24: st->codec->codec_id = CODEC_ID_PCM_S24LE; break;
165− case 32: st->codec->codec_id = CODEC_ID_PCM_S32LE; break;
162+ case 16: st->codec->codec_id = AV_CODEC_ID_PCM_S16LE; break;
163+ case 20: st->codec->codec_id = AV_CODEC_ID_PCM_LXF; break;
164+ case 24: st->codec->codec_id = AV_CODEC_ID_PCM_S24LE; break;
165+ case 32: st->codec->codec_id = AV_CODEC_ID_PCM_S32LE; break;
166166 default:
167167 av_log(s, AV_LOG_WARNING,
168168 "only 16-, 20-, 24- and 32-bit PCM currently supported\n");
@@ -314,7 +314,7 @@ static int lxf_read_packet(AVFormatContext *s, AVPacket *pkt) · 145 unmodified lines
314314 return ret2;
315315
316316 //read non-20-bit audio data into lxf->temp so we can deplanarize it
317− buf = ast && ast->codec->codec_id != CODEC_ID_PCM_LXF ? lxf->temp : pkt->data;
317+ buf = ast && ast->codec->codec_id != AV_CODEC_ID_PCM_LXF ? lxf->temp : pkt->data;
318318
319319 if ((ret2 = avio_read(pb, buf, ret)) != ret) {
320320 av_free_packet(pkt);
@@ -324,7 +324,7 @@ static int lxf_read_packet(AVFormatContext *s, AVPacket *pkt) · 3 unmodified lines
324324 pkt->stream_index = stream;
325325
326326 if (ast) {
327− if(ast->codec->codec_id != CODEC_ID_PCM_LXF)
327+ if(ast->codec->codec_id != AV_CODEC_ID_PCM_LXF)
328328 deplanarize(lxf, ast, pkt->data, ret);
329329 } else {
330330 //picture type (0 = closed I, 1 = open I, 2 = P, 3 = B)
libavformat/m4vdec.c+1−1
@@ -49,4 +49,4 @@ static int mpeg4video_probe(AVProbeData *probe_packet) · 48 unmodified lines
4949 return 0;
5050 }
5151
52−FF_DEF_RAWVIDEO_DEMUXER(m4v, "raw MPEG-4 video", mpeg4video_probe, "m4v", CODEC_ID_MPEG4)
52+FF_DEF_RAWVIDEO_DEMUXER(m4v, "raw MPEG-4 video", mpeg4video_probe, "m4v", AV_CODEC_ID_MPEG4)
libavformat/matroska.c+63−63
@@ -22,76 +22,76 @@ · 21 unmodified lines
2222 #include "matroska.h"
2323
2424 const CodecTags ff_mkv_codec_tags[]={
25− {"A_AAC" , CODEC_ID_AAC},
26− {"A_AC3" , CODEC_ID_AC3},
27− {"A_DTS" , CODEC_ID_DTS},
28− {"A_EAC3" , CODEC_ID_EAC3},
29− {"A_FLAC" , CODEC_ID_FLAC},
30− {"A_MLP" , CODEC_ID_MLP},
31− {"A_MPEG/L2" , CODEC_ID_MP2},
32− {"A_MPEG/L1" , CODEC_ID_MP2},
33− {"A_MPEG/L3" , CODEC_ID_MP3},
34− {"A_PCM/FLOAT/IEEE" , CODEC_ID_PCM_F32LE},
35− {"A_PCM/FLOAT/IEEE" , CODEC_ID_PCM_F64LE},
36− {"A_PCM/INT/BIG" , CODEC_ID_PCM_S16BE},
37− {"A_PCM/INT/BIG" , CODEC_ID_PCM_S24BE},
38− {"A_PCM/INT/BIG" , CODEC_ID_PCM_S32BE},
39− {"A_PCM/INT/LIT" , CODEC_ID_PCM_S16LE},
40− {"A_PCM/INT/LIT" , CODEC_ID_PCM_S24LE},
41− {"A_PCM/INT/LIT" , CODEC_ID_PCM_S32LE},
42− {"A_PCM/INT/LIT" , CODEC_ID_PCM_U8},
43− {"A_QUICKTIME/QDM2" , CODEC_ID_QDM2},
44− {"A_REAL/14_4" , CODEC_ID_RA_144},
45− {"A_REAL/28_8" , CODEC_ID_RA_288},
46− {"A_REAL/ATRC" , CODEC_ID_ATRAC3},
47− {"A_REAL/COOK" , CODEC_ID_COOK},
48− {"A_REAL/SIPR" , CODEC_ID_SIPR},
49− {"A_TRUEHD" , CODEC_ID_TRUEHD},
50− {"A_TTA1" , CODEC_ID_TTA},
51− {"A_VORBIS" , CODEC_ID_VORBIS},
52− {"A_WAVPACK4" , CODEC_ID_WAVPACK},
25+ {"A_AAC" , AV_CODEC_ID_AAC},
26+ {"A_AC3" , AV_CODEC_ID_AC3},
27+ {"A_DTS" , AV_CODEC_ID_DTS},
28+ {"A_EAC3" , AV_CODEC_ID_EAC3},
29+ {"A_FLAC" , AV_CODEC_ID_FLAC},
30+ {"A_MLP" , AV_CODEC_ID_MLP},
31+ {"A_MPEG/L2" , AV_CODEC_ID_MP2},
32+ {"A_MPEG/L1" , AV_CODEC_ID_MP2},
33+ {"A_MPEG/L3" , AV_CODEC_ID_MP3},
34+ {"A_PCM/FLOAT/IEEE" , AV_CODEC_ID_PCM_F32LE},
35+ {"A_PCM/FLOAT/IEEE" , AV_CODEC_ID_PCM_F64LE},
36+ {"A_PCM/INT/BIG" , AV_CODEC_ID_PCM_S16BE},
37+ {"A_PCM/INT/BIG" , AV_CODEC_ID_PCM_S24BE},
38+ {"A_PCM/INT/BIG" , AV_CODEC_ID_PCM_S32BE},
39+ {"A_PCM/INT/LIT" , AV_CODEC_ID_PCM_S16LE},
40+ {"A_PCM/INT/LIT" , AV_CODEC_ID_PCM_S24LE},
41+ {"A_PCM/INT/LIT" , AV_CODEC_ID_PCM_S32LE},
42+ {"A_PCM/INT/LIT" , AV_CODEC_ID_PCM_U8},
43+ {"A_QUICKTIME/QDM2" , AV_CODEC_ID_QDM2},
44+ {"A_REAL/14_4" , AV_CODEC_ID_RA_144},
45+ {"A_REAL/28_8" , AV_CODEC_ID_RA_288},
46+ {"A_REAL/ATRC" , AV_CODEC_ID_ATRAC3},
47+ {"A_REAL/COOK" , AV_CODEC_ID_COOK},
48+ {"A_REAL/SIPR" , AV_CODEC_ID_SIPR},
49+ {"A_TRUEHD" , AV_CODEC_ID_TRUEHD},
50+ {"A_TTA1" , AV_CODEC_ID_TTA},
51+ {"A_VORBIS" , AV_CODEC_ID_VORBIS},
52+ {"A_WAVPACK4" , AV_CODEC_ID_WAVPACK},
5353
54− {"S_TEXT/UTF8" , CODEC_ID_TEXT},
55− {"S_TEXT/UTF8" , CODEC_ID_SRT},
56− {"S_TEXT/ASCII" , CODEC_ID_TEXT},
57− {"S_TEXT/ASS" , CODEC_ID_SSA},
58− {"S_TEXT/SSA" , CODEC_ID_SSA},
59− {"S_ASS" , CODEC_ID_SSA},
60− {"S_SSA" , CODEC_ID_SSA},
61− {"S_VOBSUB" , CODEC_ID_DVD_SUBTITLE},
62− {"S_HDMV/PGS" , CODEC_ID_HDMV_PGS_SUBTITLE},
54+ {"S_TEXT/UTF8" , AV_CODEC_ID_TEXT},
55+ {"S_TEXT/UTF8" , AV_CODEC_ID_SRT},
56+ {"S_TEXT/ASCII" , AV_CODEC_ID_TEXT},
57+ {"S_TEXT/ASS" , AV_CODEC_ID_SSA},
58+ {"S_TEXT/SSA" , AV_CODEC_ID_SSA},
59+ {"S_ASS" , AV_CODEC_ID_SSA},
60+ {"S_SSA" , AV_CODEC_ID_SSA},
61+ {"S_VOBSUB" , AV_CODEC_ID_DVD_SUBTITLE},
62+ {"S_HDMV/PGS" , AV_CODEC_ID_HDMV_PGS_SUBTITLE},
6363
64− {"V_DIRAC" , CODEC_ID_DIRAC},
65− {"V_MJPEG" , CODEC_ID_MJPEG},
66− {"V_MPEG1" , CODEC_ID_MPEG1VIDEO},
67− {"V_MPEG2" , CODEC_ID_MPEG2VIDEO},
68− {"V_MPEG4/ISO/ASP" , CODEC_ID_MPEG4},
69− {"V_MPEG4/ISO/AP" , CODEC_ID_MPEG4},
70− {"V_MPEG4/ISO/SP" , CODEC_ID_MPEG4},
71− {"V_MPEG4/ISO/AVC" , CODEC_ID_H264},
72− {"V_MPEG4/MS/V3" , CODEC_ID_MSMPEG4V3},
73− {"V_REAL/RV10" , CODEC_ID_RV10},
74− {"V_REAL/RV20" , CODEC_ID_RV20},
75− {"V_REAL/RV30" , CODEC_ID_RV30},
76− {"V_REAL/RV40" , CODEC_ID_RV40},
77− {"V_SNOW" , CODEC_ID_SNOW},
78− {"V_THEORA" , CODEC_ID_THEORA},
79− {"V_UNCOMPRESSED" , CODEC_ID_RAWVIDEO},
80− {"V_VP8" , CODEC_ID_VP8},
64+ {"V_DIRAC" , AV_CODEC_ID_DIRAC},
65+ {"V_MJPEG" , AV_CODEC_ID_MJPEG},
66+ {"V_MPEG1" , AV_CODEC_ID_MPEG1VIDEO},
67+ {"V_MPEG2" , AV_CODEC_ID_MPEG2VIDEO},
68+ {"V_MPEG4/ISO/ASP" , AV_CODEC_ID_MPEG4},
69+ {"V_MPEG4/ISO/AP" , AV_CODEC_ID_MPEG4},
70+ {"V_MPEG4/ISO/SP" , AV_CODEC_ID_MPEG4},
71+ {"V_MPEG4/ISO/AVC" , AV_CODEC_ID_H264},
72+ {"V_MPEG4/MS/V3" , AV_CODEC_ID_MSMPEG4V3},
73+ {"V_REAL/RV10" , AV_CODEC_ID_RV10},
74+ {"V_REAL/RV20" , AV_CODEC_ID_RV20},
75+ {"V_REAL/RV30" , AV_CODEC_ID_RV30},
76+ {"V_REAL/RV40" , AV_CODEC_ID_RV40},
77+ {"V_SNOW" , AV_CODEC_ID_SNOW},
78+ {"V_THEORA" , AV_CODEC_ID_THEORA},
79+ {"V_UNCOMPRESSED" , AV_CODEC_ID_RAWVIDEO},
80+ {"V_VP8" , AV_CODEC_ID_VP8},
8181
82− {"" , CODEC_ID_NONE}
82+ {"" , AV_CODEC_ID_NONE}
8383 };
8484
8585 const CodecMime ff_mkv_mime_tags[] = {
86− {"text/plain" , CODEC_ID_TEXT},
87− {"image/gif" , CODEC_ID_GIF},
88− {"image/jpeg" , CODEC_ID_MJPEG},
89− {"image/png" , CODEC_ID_PNG},
90− {"image/tiff" , CODEC_ID_TIFF},
91− {"application/x-truetype-font", CODEC_ID_TTF},
92− {"application/x-font" , CODEC_ID_TTF},
86+ {"text/plain" , AV_CODEC_ID_TEXT},
87+ {"image/gif" , AV_CODEC_ID_GIF},
88+ {"image/jpeg" , AV_CODEC_ID_MJPEG},
89+ {"image/png" , AV_CODEC_ID_PNG},
90+ {"image/tiff" , AV_CODEC_ID_TIFF},
91+ {"application/x-truetype-font", AV_CODEC_ID_TTF},
92+ {"application/x-font" , AV_CODEC_ID_TTF},
9393
94− {"" , CODEC_ID_NONE}
94+ {"" , AV_CODEC_ID_NONE}
9595 };
9696
9797 const AVMetadataConv ff_mkv_metadata_conv[] = {
libavformat/matroska.h+1−1
@@ -243,7 +243,7 @@ typedef enum { · 242 unmodified lines
243243
244244 typedef struct CodecTags{
245245 char str[20];
246− enum CodecID id;
246+ enum AVCodecID id;
247247 }CodecTags;
248248
249249 /* max. depth in the EBML tree structure */
libavformat/matroskadec.c+38−38
@@ -1364,7 +1364,7 @@ static int matroska_read_header(AVFormatContext *s) · 1363 unmodified lines
13641364 tracks = matroska->tracks.elem;
13651365 for (i=0; i < matroska->tracks.nb_elem; i++) {
13661366 MatroskaTrack *track = &tracks[i];
1367− enum CodecID codec_id = CODEC_ID_NONE;
1367+ enum AVCodecID codec_id = AV_CODEC_ID_NONE;
13681368 EbmlList *encodings_list = &tracks->encodings;
13691369 MatroskaTrackEncoding *encodings = encodings_list->elem;
13701370 uint8_t *extradata = NULL;
@@ -1434,7 +1434,7 @@ static int matroska_read_header(AVFormatContext *s) · 63 unmodified lines
14341434 }
14351435 }
14361436
1437− for(j=0; ff_mkv_codec_tags[j].id != CODEC_ID_NONE; j++){
1437+ for(j=0; ff_mkv_codec_tags[j].id != AV_CODEC_ID_NONE; j++){
14381438 if(!strncmp(ff_mkv_codec_tags[j].str, track->codec_id,
14391439 strlen(ff_mkv_codec_tags[j].str))){
14401440 codec_id= ff_mkv_codec_tags[j].id;
@@ -1469,21 +1469,21 @@ static int matroska_read_header(AVFormatContext *s) · 28 unmodified lines
14691469 && (track->codec_priv.data != NULL)) {
14701470 track->video.fourcc = AV_RL32(track->codec_priv.data);
14711471 codec_id=ff_codec_get_id(ff_codec_movvideo_tags, track->video.fourcc);
1472− } else if (codec_id == CODEC_ID_PCM_S16BE) {
1472+ } else if (codec_id == AV_CODEC_ID_PCM_S16BE) {
14731473 switch (track->audio.bitdepth) {
1474− case 8: codec_id = CODEC_ID_PCM_U8; break;
1475− case 24: codec_id = CODEC_ID_PCM_S24BE; break;
1476− case 32: codec_id = CODEC_ID_PCM_S32BE; break;
1474+ case 8: codec_id = AV_CODEC_ID_PCM_U8; break;
1475+ case 24: codec_id = AV_CODEC_ID_PCM_S24BE; break;
1476+ case 32: codec_id = AV_CODEC_ID_PCM_S32BE; break;
14771477 }
1478− } else if (codec_id == CODEC_ID_PCM_S16LE) {
1478+ } else if (codec_id == AV_CODEC_ID_PCM_S16LE) {
14791479 switch (track->audio.bitdepth) {
1480− case 8: codec_id = CODEC_ID_PCM_U8; break;
1481− case 24: codec_id = CODEC_ID_PCM_S24LE; break;
1482− case 32: codec_id = CODEC_ID_PCM_S32LE; break;
1480+ case 8: codec_id = AV_CODEC_ID_PCM_U8; break;
1481+ case 24: codec_id = AV_CODEC_ID_PCM_S24LE; break;
1482+ case 32: codec_id = AV_CODEC_ID_PCM_S32LE; break;
14831483 }
1484− } else if (codec_id==CODEC_ID_PCM_F32LE && track->audio.bitdepth==64) {
1485− codec_id = CODEC_ID_PCM_F64LE;
1486− } else if (codec_id == CODEC_ID_AAC && !track->codec_priv.size) {
1484+ } else if (codec_id==AV_CODEC_ID_PCM_F32LE && track->audio.bitdepth==64) {
1485+ codec_id = AV_CODEC_ID_PCM_F64LE;
1486+ } else if (codec_id == AV_CODEC_ID_AAC && !track->codec_priv.size) {
14871487 int profile = matroska_aac_profile(track->codec_id);
14881488 int sri = matroska_aac_sri(track->audio.samplerate);
14891489 extradata = av_mallocz(5 + FF_INPUT_BUFFER_PADDING_SIZE);
@@ -1499,7 +1499,7 @@ static int matroska_read_header(AVFormatContext *s) · 9 unmodified lines
14991499 extradata_size = 5;
15001500 } else
15011501 extradata_size = 2;
1502− } else if (codec_id == CODEC_ID_TTA) {
1502+ } else if (codec_id == AV_CODEC_ID_TTA) {
15031503 extradata_size = 30;
15041504 extradata = av_mallocz(extradata_size);
15051505 if (extradata == NULL)
@@ -1512,14 +1512,14 @@ static int matroska_read_header(AVFormatContext *s) · 6 unmodified lines
15121512 avio_wl16(&b, track->audio.bitdepth);
15131513 avio_wl32(&b, track->audio.out_samplerate);
15141514 avio_wl32(&b, matroska->ctx->duration * track->audio.out_samplerate);
1515− } else if (codec_id == CODEC_ID_RV10 || codec_id == CODEC_ID_RV20 ||
1516− codec_id == CODEC_ID_RV30 || codec_id == CODEC_ID_RV40) {
1515+ } else if (codec_id == AV_CODEC_ID_RV10 || codec_id == AV_CODEC_ID_RV20 ||
1516+ codec_id == AV_CODEC_ID_RV30 || codec_id == AV_CODEC_ID_RV40) {
15171517 extradata_offset = 26;
1518− } else if (codec_id == CODEC_ID_RA_144) {
1518+ } else if (codec_id == AV_CODEC_ID_RA_144) {
15191519 track->audio.out_samplerate = 8000;
15201520 track->audio.channels = 1;
1521− } else if (codec_id == CODEC_ID_RA_288 || codec_id == CODEC_ID_COOK ||
1522− codec_id == CODEC_ID_ATRAC3 || codec_id == CODEC_ID_SIPR) {
1521+ } else if (codec_id == AV_CODEC_ID_RA_288 || codec_id == AV_CODEC_ID_COOK ||
1522+ codec_id == AV_CODEC_ID_ATRAC3 || codec_id == AV_CODEC_ID_SIPR) {
15231523 int flavor;
15241524 ffio_init_context(&b, track->codec_priv.data,track->codec_priv.size,
15251525 0, NULL, NULL, NULL, NULL);
@@ -1531,11 +1531,11 @@ static int matroska_read_header(AVFormatContext *s) · 5 unmodified lines
15311531 track->audio.frame_size = avio_rb16(&b);
15321532 track->audio.sub_packet_size = avio_rb16(&b);
15331533 track->audio.buf = av_malloc(track->audio.frame_size * track->audio.sub_packet_h);
1534− if (codec_id == CODEC_ID_RA_288) {
1534+ if (codec_id == AV_CODEC_ID_RA_288) {
15351535 st->codec->block_align = track->audio.coded_framesize;
15361536 track->codec_priv.size = 0;
15371537 } else {
1538− if (codec_id == CODEC_ID_SIPR && flavor < 4) {
1538+ if (codec_id == AV_CODEC_ID_SIPR && flavor < 4) {
15391539 const int sipr_bit_rate[4] = { 6504, 8496, 5000, 16000 };
15401540 track->audio.sub_packet_size = ff_sipr_subpk_size[flavor];
15411541 st->codec->bit_rate = sipr_bit_rate[flavor];
@@ -1546,9 +1546,9 @@ static int matroska_read_header(AVFormatContext *s) · 4 unmodified lines
15461546 }
15471547 track->codec_priv.size -= extradata_offset;
15481548
1549− if (codec_id == CODEC_ID_NONE)
1549+ if (codec_id == AV_CODEC_ID_NONE)
15501550 av_log(matroska->ctx, AV_LOG_INFO,
1551− "Unknown/unsupported CodecID %s.\n", track->codec_id);
1551+ "Unknown/unsupported AVCodecID %s.\n", track->codec_id);
15521552
15531553 if (track->time_scale < 0.01)
15541554 track->time_scale = 1.0;
@@ -1591,7 +1591,7 @@ static int matroska_read_header(AVFormatContext *s) · 36 unmodified lines
15911591 st->codec->height * track->video.display_width,
15921592 st->codec-> width * track->video.display_height,
15931593 255);
1594− if (st->codec->codec_id != CODEC_ID_H264)
1594+ if (st->codec->codec_id != AV_CODEC_ID_H264)
15951595 st->need_parsing = AVSTREAM_PARSE_HEADERS;
15961596 if (track->default_duration) {
15971597 av_reduce(&st->avg_frame_rate.num, &st->avg_frame_rate.den,
@@ -1604,11 +1604,11 @@ static int matroska_read_header(AVFormatContext *s) · 6 unmodified lines
16041604 st->codec->codec_type = AVMEDIA_TYPE_AUDIO;
16051605 st->codec->sample_rate = track->audio.out_samplerate;
16061606 st->codec->channels = track->audio.channels;
1607− if (st->codec->codec_id != CODEC_ID_AAC)
1607+ if (st->codec->codec_id != AV_CODEC_ID_AAC)
16081608 st->need_parsing = AVSTREAM_PARSE_HEADERS;
16091609 } else if (track->type == MATROSKA_TRACK_TYPE_SUBTITLE) {
16101610 st->codec->codec_type = AVMEDIA_TYPE_SUBTITLE;
1611− if (st->codec->codec_id == CODEC_ID_SSA)
1611+ if (st->codec->codec_id == AV_CODEC_ID_SSA)
16121612 matroska->contains_ssa = 1;
16131613 }
16141614 }
@@ -1624,7 +1624,7 @@ static int matroska_read_header(AVFormatContext *s) · 9 unmodified lines
16241624 break;
16251625 av_dict_set(&st->metadata, "filename",attachements[j].filename, 0);
16261626 av_dict_set(&st->metadata, "mimetype", attachements[j].mime, 0);
1627− st->codec->codec_id = CODEC_ID_NONE;
1627+ st->codec->codec_id = AV_CODEC_ID_NONE;
16281628 st->codec->codec_type = AVMEDIA_TYPE_ATTACHMENT;
16291629 st->codec->extradata = av_malloc(attachements[j].bin.size);
16301630 if(st->codec->extradata == NULL)
@@ -1632,7 +1632,7 @@ static int matroska_read_header(AVFormatContext *s) · 1 unmodified line
16321632 st->codec->extradata_size = attachements[j].bin.size;
16331633 memcpy(st->codec->extradata, attachements[j].bin.data, attachements[j].bin.size);
16341634
1635− for (i=0; ff_mkv_mime_tags[i].id != CODEC_ID_NONE; i++) {
1635+ for (i=0; ff_mkv_mime_tags[i].id != AV_CODEC_ID_NONE; i++) {
16361636 if (!strncmp(ff_mkv_mime_tags[i].str, attachements[j].mime,
16371637 strlen(ff_mkv_mime_tags[i].str))) {
16381638 st->codec->codec_id = ff_mkv_mime_tags[i].id;
@@ -1843,10 +1843,10 @@ static int matroska_parse_block(MatroskaDemuxContext *matroska, uint8_t *data, · 204 unmodified lines
18431843
18441844 if (res == 0) {
18451845 for (n = 0; n < laces; n++) {
1846− if ((st->codec->codec_id == CODEC_ID_RA_288 ||
1847− st->codec->codec_id == CODEC_ID_COOK ||
1848− st->codec->codec_id == CODEC_ID_SIPR ||
1849− st->codec->codec_id == CODEC_ID_ATRAC3) &&
1846+ if ((st->codec->codec_id == AV_CODEC_ID_RA_288 ||
1847+ st->codec->codec_id == AV_CODEC_ID_COOK ||
1848+ st->codec->codec_id == AV_CODEC_ID_SIPR ||
1849+ st->codec->codec_id == AV_CODEC_ID_ATRAC3) &&
18501850 st->codec->block_align && track->audio.sub_packet_size) {
18511851 int a = st->codec->block_align;
18521852 int sps = track->audio.sub_packet_size;
@@ -1859,7 +1859,7 @@ static int matroska_parse_block(MatroskaDemuxContext *matroska, uint8_t *data, · 6 unmodified lines
18591859 if (!track->audio.pkt_cnt) {
18601860 if (track->audio.sub_packet_cnt == 0)
18611861 track->audio.buf_timecode = timecode;
1862− if (st->codec->codec_id == CODEC_ID_RA_288) {
1862+ if (st->codec->codec_id == AV_CODEC_ID_RA_288) {
18631863 if (size < cfs * h / 2) {
18641864 av_log(matroska->ctx, AV_LOG_ERROR,
18651865 "Corrupt int4 RM-style audio packet size\n");
@@ -1869,7 +1869,7 @@ static int matroska_parse_block(MatroskaDemuxContext *matroska, uint8_t *data, · 3 unmodified lines
18691869 for (x=0; x<h/2; x++)
18701870 memcpy(track->audio.buf+x*2*w+y*cfs,
18711871 data+x*cfs, cfs);
1872− } else if (st->codec->codec_id == CODEC_ID_SIPR) {
1872+ } else if (st->codec->codec_id == AV_CODEC_ID_SIPR) {
18731873 if (size < w) {
18741874 av_log(matroska->ctx, AV_LOG_ERROR,
18751875 "Corrupt sipr RM-style audio packet size\n");
@@ -1889,7 +1889,7 @@ static int matroska_parse_block(MatroskaDemuxContext *matroska, uint8_t *data, · 13 unmodified lines
18891889 }
18901890
18911891 if (++track->audio.sub_packet_cnt >= h) {
1892− if (st->codec->codec_id == CODEC_ID_SIPR)
1892+ if (st->codec->codec_id == AV_CODEC_ID_SIPR)
18931893 ff_rm_reorder_sipr_data(track->audio.buf, h, w);
18941894 track->audio.sub_packet_cnt = 0;
18951895 track->audio.pkt_cnt = h*w / a;
@@ -1945,19 +1945,19 @@ static int matroska_parse_block(MatroskaDemuxContext *matroska, uint8_t *data, · 49 unmodified lines
19451945 else
19461946 pkt->pts = timecode;
19471947 pkt->pos = pos;
1948− if (st->codec->codec_id == CODEC_ID_TEXT)
1948+ if (st->codec->codec_id == AV_CODEC_ID_TEXT)
19491949 pkt->convergence_duration = duration;
19501950 else if (track->type != MATROSKA_TRACK_TYPE_SUBTITLE)
19511951 pkt->duration = duration;
19521952
1953− if (st->codec->codec_id == CODEC_ID_SSA)
1953+ if (st->codec->codec_id == AV_CODEC_ID_SSA)
19541954 matroska_fix_ass_packet(matroska, pkt, duration);
19551955
19561956 if (matroska->prev_pkt &&
19571957 timecode != AV_NOPTS_VALUE &&
19581958 matroska->prev_pkt->pts == timecode &&
19591959 matroska->prev_pkt->stream_index == st->index &&
1960− st->codec->codec_id == CODEC_ID_SSA)
1960+ st->codec->codec_id == AV_CODEC_ID_SSA)
19611961 matroska_merge_packets(matroska->prev_pkt, pkt);
19621962 else {
19631963 dynarray_add(&matroska->packets,&matroska->num_packets,pkt);
libavformat/matroskaenc.c+25−25
@@ -423,7 +423,7 @@ static int put_xiph_codecpriv(AVFormatContext *s, AVIOContext *pb, AVCodecContex · 422 unmodified lines
423423 int first_header_size;
424424 int j;
425425
426− if (codec->codec_id == CODEC_ID_VORBIS)
426+ if (codec->codec_id == AV_CODEC_ID_VORBIS)
427427 first_header_size = 30;
428428 else
429429 first_header_size = 42;
@@ -469,11 +469,11 @@ static int mkv_write_codecprivate(AVFormatContext *s, AVIOContext *pb, AVCodecCo · 39 unmodified lines
469469 return ret;
470470
471471 if (native_id) {
472− if (codec->codec_id == CODEC_ID_VORBIS || codec->codec_id == CODEC_ID_THEORA)
472+ if (codec->codec_id == AV_CODEC_ID_VORBIS || codec->codec_id == AV_CODEC_ID_THEORA)
473473 ret = put_xiph_codecpriv(s, dyn_cp, codec);
474− else if (codec->codec_id == CODEC_ID_FLAC)
474+ else if (codec->codec_id == AV_CODEC_ID_FLAC)
475475 ret = ff_flac_write_header(dyn_cp, codec, 1);
476− else if (codec->codec_id == CODEC_ID_H264)
476+ else if (codec->codec_id == AV_CODEC_ID_H264)
477477 ret = ff_isom_write_avcc(dyn_cp, codec->extradata, codec->extradata_size);
478478 else if (codec->extradata_size)
479479 avio_write(dyn_cp, codec->extradata, codec->extradata_size);
@@ -544,7 +544,7 @@ static int mkv_write_tracks(AVFormatContext *s) · 64 unmodified lines
544544 if (!bit_depth)
545545 bit_depth = av_get_bytes_per_sample(codec->sample_fmt) << 3;
546546
547− if (codec->codec_id == CODEC_ID_AAC)
547+ if (codec->codec_id == AV_CODEC_ID_AAC)
548548 get_aac_sample_rates(s, codec, &sample_rate, &output_sample_rate);
549549
550550 track = start_ebml_master(pb, MATROSKA_ID_TRACKENTRY, 0);
@@ -562,7 +562,7 @@ static int mkv_write_tracks(AVFormatContext *s) · 11 unmodified lines
562562
563563 // look for a codec ID string specific to mkv to use,
564564 // if none are found, use AVI codes
565− for (j = 0; ff_mkv_codec_tags[j].id != CODEC_ID_NONE; j++) {
565+ for (j = 0; ff_mkv_codec_tags[j].id != AV_CODEC_ID_NONE; j++) {
566566 if (ff_mkv_codec_tags[j].id == codec->codec_id) {
567567 put_ebml_string(pb, MATROSKA_ID_CODECID, ff_mkv_codec_tags[j].str);
568568 native_id = 1;
@@ -570,8 +570,8 @@ static int mkv_write_tracks(AVFormatContext *s) · 1 unmodified line
570570 }
571571 }
572572
573− if (mkv->mode == MODE_WEBM && !(codec->codec_id == CODEC_ID_VP8 ||
574− codec->codec_id == CODEC_ID_VORBIS)) {
573+ if (mkv->mode == MODE_WEBM && !(codec->codec_id == AV_CODEC_ID_VP8 ||
574+ codec->codec_id == AV_CODEC_ID_VORBIS)) {
575575 av_log(s, AV_LOG_ERROR,
576576 "Only VP8 video and Vorbis audio are supported for WebM.\n");
577577 return AVERROR(EINVAL);
@@ -585,9 +585,9 @@ static int mkv_write_tracks(AVFormatContext *s) · 7 unmodified lines
585585 if (!native_id &&
586586 ff_codec_get_tag(ff_codec_movvideo_tags, codec->codec_id) &&
587587 (!ff_codec_get_tag(ff_codec_bmp_tags, codec->codec_id)
588− || codec->codec_id == CODEC_ID_SVQ1
589− || codec->codec_id == CODEC_ID_SVQ3
590− || codec->codec_id == CODEC_ID_CINEPAK))
588+ || codec->codec_id == AV_CODEC_ID_SVQ1
589+ || codec->codec_id == AV_CODEC_ID_SVQ3
590+ || codec->codec_id == AV_CODEC_ID_CINEPAK))
591591 qt_id = 1;
592592
593593 if (qt_id)
@@ -848,9 +848,9 @@ static int mkv_write_attachments(AVFormatContext *s) · 254 unmodified lines
848848 put_ebml_string(pb, MATROSKA_ID_FILENAME, t->value);
849849 if (t = av_dict_get(st->metadata, "mimetype", NULL, 0))
850850 mimetype = t->value;
851− else if (st->codec->codec_id != CODEC_ID_NONE ) {
851+ else if (st->codec->codec_id != AV_CODEC_ID_NONE ) {
852852 int i;
853− for (i = 0; ff_mkv_mime_tags[i].id != CODEC_ID_NONE; i++)
853+ for (i = 0; ff_mkv_mime_tags[i].id != AV_CODEC_ID_NONE; i++)
854854 if (ff_mkv_mime_tags[i].id == st->codec->codec_id) {
855855 mimetype = ff_mkv_mime_tags[i].str;
856856 break;
@@ -1046,7 +1046,7 @@ static void mkv_write_block(AVFormatContext *s, AVIOContext *pb, · 189 unmodified lines
10461046 av_log(s, AV_LOG_DEBUG, "Writing block at offset %" PRIu64 ", size %d, "
10471047 "pts %" PRId64 ", dts %" PRId64 ", duration %d, flags %d\n",
10481048 avio_tell(pb), pkt->size, pkt->pts, pkt->dts, pkt->duration, flags);
1049− if (codec->codec_id == CODEC_ID_H264 && codec->extradata_size > 0 &&
1049+ if (codec->codec_id == AV_CODEC_ID_H264 && codec->extradata_size > 0 &&
10501050 (AV_RB24(codec->extradata) == 1 || AV_RB32(codec->extradata) == 1))
10511051 ff_avc_parse_nal_units_buf(pkt->data, &data, &size);
10521052 else
@@ -1141,9 +1141,9 @@ static int mkv_write_packet_internal(AVFormatContext *s, AVPacket *pkt) · 88 unmodified lines
11411141
11421142 if (codec->codec_type != AVMEDIA_TYPE_SUBTITLE) {
11431143 mkv_write_block(s, pb, MATROSKA_ID_SIMPLEBLOCK, pkt, keyframe << 7);
1144− } else if (codec->codec_id == CODEC_ID_SSA) {
1144+ } else if (codec->codec_id == AV_CODEC_ID_SSA) {
11451145 duration = mkv_write_ass_blocks(s, pb, pkt);
1146− } else if (codec->codec_id == CODEC_ID_SRT) {
1146+ } else if (codec->codec_id == AV_CODEC_ID_SRT) {
11471147 duration = mkv_write_srt_blocks(s, pb, pkt);
11481148 } else {
11491149 ebml_master blockgroup = start_ebml_master(pb, MATROSKA_ID_BLOCKGROUP, mkv_blockgroup_size(pkt->size));
@@ -1269,10 +1269,10 @@ static int mkv_write_trailer(AVFormatContext *s) · 119 unmodified lines
12691269 return 0;
12701270 }
12711271
1272−static int mkv_query_codec(enum CodecID codec_id, int std_compliance)
1272+static int mkv_query_codec(enum AVCodecID codec_id, int std_compliance)
12731273 {
12741274 int i;
1275− for (i = 0; ff_mkv_codec_tags[i].id != CODEC_ID_NONE; i++)
1275+ for (i = 0; ff_mkv_codec_tags[i].id != AV_CODEC_ID_NONE; i++)
12761276 if (ff_mkv_codec_tags[i].id == codec_id)
12771277 return 1;
12781278
@@ -1293,9 +1293,9 @@ AVOutputFormat ff_matroska_muxer = { · 14 unmodified lines
12931293 .extensions = "mkv",
12941294 .priv_data_size = sizeof(MatroskaMuxContext),
12951295 .audio_codec = CONFIG_LIBVORBIS_ENCODER ?
1296− CODEC_ID_VORBIS : CODEC_ID_AC3,
1296+ AV_CODEC_ID_VORBIS : AV_CODEC_ID_AC3,
12971297 .video_codec = CONFIG_LIBX264_ENCODER ?
1298− CODEC_ID_H264 : CODEC_ID_MPEG4,
1298+ AV_CODEC_ID_H264 : AV_CODEC_ID_MPEG4,
12991299 .write_header = mkv_write_header,
13001300 .write_packet = mkv_write_packet,
13011301 .write_trailer = mkv_write_trailer,
@@ -1304,7 +1304,7 @@ AVOutputFormat ff_matroska_muxer = { · 2 unmodified lines
13041304 .codec_tag = (const AVCodecTag* const []){
13051305 ff_codec_bmp_tags, ff_codec_wav_tags, 0
13061306 },
1307− .subtitle_codec = CODEC_ID_SSA,
1307+ .subtitle_codec = AV_CODEC_ID_SSA,
13081308 .query_codec = mkv_query_codec,
13091309 };
13101310 #endif
@@ -1316,8 +1316,8 @@ AVOutputFormat ff_webm_muxer = { · 5 unmodified lines
13161316 .mime_type = "video/webm",
13171317 .extensions = "webm",
13181318 .priv_data_size = sizeof(MatroskaMuxContext),
1319− .audio_codec = CODEC_ID_VORBIS,
1320− .video_codec = CODEC_ID_VP8,
1319+ .audio_codec = AV_CODEC_ID_VORBIS,
1320+ .video_codec = AV_CODEC_ID_VP8,
13211321 .write_header = mkv_write_header,
13221322 .write_packet = mkv_write_packet,
13231323 .write_trailer = mkv_write_trailer,
@@ -1334,8 +1334,8 @@ AVOutputFormat ff_matroska_audio_muxer = { · 10 unmodified lines
13341334 .extensions = "mka",
13351335 .priv_data_size = sizeof(MatroskaMuxContext),
13361336 .audio_codec = CONFIG_LIBVORBIS_ENCODER ?
1337− CODEC_ID_VORBIS : CODEC_ID_AC3,
1338− .video_codec = CODEC_ID_NONE,
1337+ AV_CODEC_ID_VORBIS : AV_CODEC_ID_AC3,
1338+ .video_codec = AV_CODEC_ID_NONE,
13391339 .write_header = mkv_write_header,
13401340 .write_packet = mkv_write_packet,
13411341 .write_trailer = mkv_write_trailer,
libavformat/md5enc.c+4−4
@@ -71,8 +71,8 @@ AVOutputFormat ff_md5_muxer = { · 70 unmodified lines
7171 .long_name = NULL_IF_CONFIG_SMALL("MD5 testing"),
7272 .extensions = "",
7373 .priv_data_size = PRIVSIZE,
74− .audio_codec = CODEC_ID_PCM_S16LE,
75− .video_codec = CODEC_ID_RAWVIDEO,
74+ .audio_codec = AV_CODEC_ID_PCM_S16LE,
75+ .video_codec = AV_CODEC_ID_RAWVIDEO,
7676 .write_header = write_header,
7777 .write_packet = write_packet,
7878 .write_trailer = write_trailer,
@@ -102,8 +102,8 @@ AVOutputFormat ff_framemd5_muxer = { · 23 unmodified lines
102102 .long_name = NULL_IF_CONFIG_SMALL("Per-frame MD5 testing"),
103103 .extensions = "",
104104 .priv_data_size = PRIVSIZE,
105− .audio_codec = CODEC_ID_PCM_S16LE,
106− .video_codec = CODEC_ID_RAWVIDEO,
105+ .audio_codec = AV_CODEC_ID_PCM_S16LE,
106+ .video_codec = AV_CODEC_ID_RAWVIDEO,
107107 .write_header = ff_framehash_write_header,
108108 .write_packet = framemd5_write_packet,
109109 .flags = AVFMT_VARIABLE_FPS | AVFMT_TS_NONSTRICT,
libavformat/mm.c+2−2
@@ -109,7 +109,7 @@ static int read_header(AVFormatContext *s) · 108 unmodified lines
109109 if (!st)
110110 return AVERROR(ENOMEM);
111111 st->codec->codec_type = AVMEDIA_TYPE_VIDEO;
112− st->codec->codec_id = CODEC_ID_MMVIDEO;
112+ st->codec->codec_id = AV_CODEC_ID_MMVIDEO;
113113 st->codec->codec_tag = 0; /* no fourcc */
114114 st->codec->width = width;
115115 st->codec->height = height;
@@ -122,7 +122,7 @@ static int read_header(AVFormatContext *s) · 6 unmodified lines
122122 return AVERROR(ENOMEM);
123123 st->codec->codec_type = AVMEDIA_TYPE_AUDIO;
124124 st->codec->codec_tag = 0; /* no fourcc */
125− st->codec->codec_id = CODEC_ID_PCM_U8;
125+ st->codec->codec_id = AV_CODEC_ID_PCM_U8;
126126 st->codec->channels = 1;
127127 st->codec->sample_rate = 8000;
128128 avpriv_set_pts_info(st, 64, 1, 8000); /* 8000 hz */
libavformat/mmf.c+3−3
@@ -246,7 +246,7 @@ static int mmf_read_header(AVFormatContext *s) · 245 unmodified lines
246246 return AVERROR(ENOMEM);
247247
248248 st->codec->codec_type = AVMEDIA_TYPE_AUDIO;
249− st->codec->codec_id = CODEC_ID_ADPCM_YAMAHA;
249+ st->codec->codec_id = AV_CODEC_ID_ADPCM_YAMAHA;
250250 st->codec->sample_rate = rate;
251251 st->codec->channels = 1;
252252 st->codec->bits_per_coded_sample = 4;
@@ -307,8 +307,8 @@ AVOutputFormat ff_mmf_muxer = { · 54 unmodified lines
307307 .mime_type = "application/vnd.smaf",
308308 .extensions = "mmf",
309309 .priv_data_size = sizeof(MMFContext),
310− .audio_codec = CODEC_ID_ADPCM_YAMAHA,
311− .video_codec = CODEC_ID_NONE,
310+ .audio_codec = AV_CODEC_ID_ADPCM_YAMAHA,
311+ .video_codec = AV_CODEC_ID_NONE,
312312 .write_header = mmf_write_header,
313313 .write_packet = mmf_write_packet,
314314 .write_trailer = mmf_write_trailer,
libavformat/mov.c+59−59
@@ -171,13 +171,13 @@ static int mov_read_covr(MOVContext *c, AVIOContext *pb, int type, int len) · 170 unmodified lines
171171 AVPacket pkt;
172172 AVStream *st;
173173 MOVStreamContext *sc;
174− enum CodecID id;
174+ enum AVCodecID id;
175175 int ret;
176176
177177 switch (type) {
178− case 0xd: id = CODEC_ID_MJPEG; break;
179− case 0xe: id = CODEC_ID_PNG; break;
180− case 0x1b: id = CODEC_ID_BMP; break;
178+ case 0xd: id = AV_CODEC_ID_MJPEG; break;
179+ case 0xe: id = AV_CODEC_ID_PNG; break;
180+ case 0x1b: id = AV_CODEC_ID_BMP; break;
181181 default:
182182 av_log(c->fc, AV_LOG_WARNING, "Unknown cover type: 0x%x.\n", type);
183183 avio_skip(pb, len);
@@ -482,7 +482,7 @@ static int mov_read_hdlr(MOVContext *c, AVIOContext *pb, MOVAtom atom) · 298 unmodified lines
482482 else if (type == MKTAG('s','o','u','n'))
483483 st->codec->codec_type = AVMEDIA_TYPE_AUDIO;
484484 else if (type == MKTAG('m','1','a',' '))
485− st->codec->codec_id = CODEC_ID_MP2;
485+ st->codec->codec_id = AV_CODEC_ID_MP2;
486486 else if ((type == MKTAG('s','u','b','p')) || (type == MKTAG('c','l','c','p')))
487487 st->codec->codec_type = AVMEDIA_TYPE_SUBTITLE;
488488
@@ -813,17 +813,17 @@ static int mov_read_enda(MOVContext *c, AVIOContext *pb, MOVAtom atom) · 324 unmodified lines
813813 av_dlog(c->fc, "enda %d\n", little_endian);
814814 if (little_endian == 1) {
815815 switch (st->codec->codec_id) {
816− case CODEC_ID_PCM_S24BE:
817− st->codec->codec_id = CODEC_ID_PCM_S24LE;
816+ case AV_CODEC_ID_PCM_S24BE:
817+ st->codec->codec_id = AV_CODEC_ID_PCM_S24LE;
818818 break;
819− case CODEC_ID_PCM_S32BE:
820− st->codec->codec_id = CODEC_ID_PCM_S32LE;
819+ case AV_CODEC_ID_PCM_S32BE:
820+ st->codec->codec_id = AV_CODEC_ID_PCM_S32LE;
821821 break;
822− case CODEC_ID_PCM_F32BE:
823− st->codec->codec_id = CODEC_ID_PCM_F32LE;
822+ case AV_CODEC_ID_PCM_F32BE:
823+ st->codec->codec_id = AV_CODEC_ID_PCM_F32LE;
824824 break;
825− case CODEC_ID_PCM_F64BE:
826− st->codec->codec_id = CODEC_ID_PCM_F64LE;
825+ case AV_CODEC_ID_PCM_F64BE:
826+ st->codec->codec_id = AV_CODEC_ID_PCM_F64LE;
827827 break;
828828 default:
829829 break;
@@ -902,7 +902,7 @@ static int mov_read_wave(MOVContext *c, AVIOContext *pb, MOVAtom atom) · 72 unmodified lines
902902 if ((uint64_t)atom.size > (1<<30))
903903 return AVERROR_INVALIDDATA;
904904
905− if (st->codec->codec_id == CODEC_ID_QDM2 || st->codec->codec_id == CODEC_ID_QDMC) {
905+ if (st->codec->codec_id == AV_CODEC_ID_QDM2 || st->codec->codec_id == AV_CODEC_ID_QDMC) {
906906 // pass all frma atom to codec, needed at least for QDMC and QDM2
907907 av_free(st->codec->extradata);
908908 st->codec->extradata = av_mallocz(atom.size + FF_INPUT_BUFFER_PADDING_SIZE);
@@ -1048,35 +1048,35 @@ static int mov_read_stco(MOVContext *c, AVIOContext *pb, MOVAtom atom) · 139 unmodified lines
10481048 * Compute codec id for 'lpcm' tag.
10491049 * See CoreAudioTypes and AudioStreamBasicDescription at Apple.
10501050 */
1051−enum CodecID ff_mov_get_lpcm_codec_id(int bps, int flags)
1051+enum AVCodecID ff_mov_get_lpcm_codec_id(int bps, int flags)
10521052 {
10531053 if (flags & 1) { // floating point
10541054 if (flags & 2) { // big endian
1055− if (bps == 32) return CODEC_ID_PCM_F32BE;
1056− else if (bps == 64) return CODEC_ID_PCM_F64BE;
1055+ if (bps == 32) return AV_CODEC_ID_PCM_F32BE;
1056+ else if (bps == 64) return AV_CODEC_ID_PCM_F64BE;
10571057 } else {
1058− if (bps == 32) return CODEC_ID_PCM_F32LE;
1059− else if (bps == 64) return CODEC_ID_PCM_F64LE;
1058+ if (bps == 32) return AV_CODEC_ID_PCM_F32LE;
1059+ else if (bps == 64) return AV_CODEC_ID_PCM_F64LE;
10601060 }
10611061 } else {
10621062 if (flags & 2) {
10631063 if (bps == 8)
10641064 // signed integer
1065− if (flags & 4) return CODEC_ID_PCM_S8;
1066− else return CODEC_ID_PCM_U8;
1067− else if (bps == 16) return CODEC_ID_PCM_S16BE;
1068− else if (bps == 24) return CODEC_ID_PCM_S24BE;
1069− else if (bps == 32) return CODEC_ID_PCM_S32BE;
1065+ if (flags & 4) return AV_CODEC_ID_PCM_S8;
1066+ else return AV_CODEC_ID_PCM_U8;
1067+ else if (bps == 16) return AV_CODEC_ID_PCM_S16BE;
1068+ else if (bps == 24) return AV_CODEC_ID_PCM_S24BE;
1069+ else if (bps == 32) return AV_CODEC_ID_PCM_S32BE;
10701070 } else {
10711071 if (bps == 8)
1072− if (flags & 4) return CODEC_ID_PCM_S8;
1073− else return CODEC_ID_PCM_U8;
1074− else if (bps == 16) return CODEC_ID_PCM_S16LE;
1075− else if (bps == 24) return CODEC_ID_PCM_S24LE;
1076− else if (bps == 32) return CODEC_ID_PCM_S32LE;
1072+ if (flags & 4) return AV_CODEC_ID_PCM_S8;
1073+ else return AV_CODEC_ID_PCM_U8;
1074+ else if (bps == 16) return AV_CODEC_ID_PCM_S16LE;
1075+ else if (bps == 24) return AV_CODEC_ID_PCM_S24LE;
1076+ else if (bps == 32) return AV_CODEC_ID_PCM_S32LE;
10771077 }
10781078 }
1079− return CODEC_ID_NONE;
1079+ return AV_CODEC_ID_NONE;
10801080 }
10811081
10821082 int ff_mov_read_stsd_entries(MOVContext *c, AVIOContext *pb, int entries)
@@ -1092,7 +1092,7 @@ int ff_mov_read_stsd_entries(MOVContext *c, AVIOContext *pb, int entries) · 9 unmodified lines
10921092
10931093 for (pseudo_stream_id=0; pseudo_stream_id<entries; pseudo_stream_id++) {
10941094 //Parsing Sample description table
1095− enum CodecID id;
1095+ enum AVCodecID id;
10961096 int dref_id = 1;
10971097 MOVAtom a = { AV_RL32("stsd") };
10981098 int64_t start_pos = avio_tell(pb);
@@ -1293,34 +1293,34 @@ int ff_mov_read_stsd_entries(MOVContext *c, AVIOContext *pb, int entries) · 194 unmodified lines
12931293 }
12941294
12951295 switch (st->codec->codec_id) {
1296− case CODEC_ID_PCM_S8:
1297− case CODEC_ID_PCM_U8:
1296+ case AV_CODEC_ID_PCM_S8:
1297+ case AV_CODEC_ID_PCM_U8:
12981298 if (st->codec->bits_per_coded_sample == 16)
1299− st->codec->codec_id = CODEC_ID_PCM_S16BE;
1299+ st->codec->codec_id = AV_CODEC_ID_PCM_S16BE;
13001300 break;
1301− case CODEC_ID_PCM_S16LE:
1302− case CODEC_ID_PCM_S16BE:
1301+ case AV_CODEC_ID_PCM_S16LE:
1302+ case AV_CODEC_ID_PCM_S16BE:
13031303 if (st->codec->bits_per_coded_sample == 8)
1304− st->codec->codec_id = CODEC_ID_PCM_S8;
1304+ st->codec->codec_id = AV_CODEC_ID_PCM_S8;
13051305 else if (st->codec->bits_per_coded_sample == 24)
13061306 st->codec->codec_id =
1307− st->codec->codec_id == CODEC_ID_PCM_S16BE ?
1308− CODEC_ID_PCM_S24BE : CODEC_ID_PCM_S24LE;
1307+ st->codec->codec_id == AV_CODEC_ID_PCM_S16BE ?
1308+ AV_CODEC_ID_PCM_S24BE : AV_CODEC_ID_PCM_S24LE;
13091309 break;
13101310 /* set values for old format before stsd version 1 appeared */
1311− case CODEC_ID_MACE3:
1311+ case AV_CODEC_ID_MACE3:
13121312 sc->samples_per_frame = 6;
13131313 sc->bytes_per_frame = 2*st->codec->channels;
13141314 break;
1315− case CODEC_ID_MACE6:
1315+ case AV_CODEC_ID_MACE6:
13161316 sc->samples_per_frame = 6;
13171317 sc->bytes_per_frame = 1*st->codec->channels;
13181318 break;
1319− case CODEC_ID_ADPCM_IMA_QT:
1319+ case AV_CODEC_ID_ADPCM_IMA_QT:
13201320 sc->samples_per_frame = 64;
13211321 sc->bytes_per_frame = 34*st->codec->channels;
13221322 break;
1323− case CODEC_ID_GSM:
1323+ case AV_CODEC_ID_GSM:
13241324 sc->samples_per_frame = 160;
13251325 sc->bytes_per_frame = 33;
13261326 break;
@@ -1362,7 +1362,7 @@ int ff_mov_read_stsd_entries(MOVContext *c, AVIOContext *pb, int entries) · 35 unmodified lines
13621362 /* special codec parameters handling */
13631363 switch (st->codec->codec_id) {
13641364 #if CONFIG_DV_DEMUXER
1365− case CODEC_ID_DVAUDIO:
1365+ case AV_CODEC_ID_DVAUDIO:
13661366 c->dv_fctx = avformat_alloc_context();
13671367 c->dv_demux = avpriv_dv_init_demux(c->dv_fctx);
13681368 if (!c->dv_demux) {
@@ -1370,43 +1370,43 @@ int ff_mov_read_stsd_entries(MOVContext *c, AVIOContext *pb, int entries) · 1 unmodified line
13701370 return AVERROR(ENOMEM);
13711371 }
13721372 sc->dv_audio_container = 1;
1373− st->codec->codec_id = CODEC_ID_PCM_S16LE;
1373+ st->codec->codec_id = AV_CODEC_ID_PCM_S16LE;
13741374 break;
13751375 #endif
13761376 /* no ifdef since parameters are always those */
1377− case CODEC_ID_QCELP:
1377+ case AV_CODEC_ID_QCELP:
13781378 // force sample rate for qcelp when not stored in mov
13791379 if (st->codec->codec_tag != MKTAG('Q','c','l','p'))
13801380 st->codec->sample_rate = 8000;
13811381 st->codec->channels= 1; /* really needed */
13821382 break;
1383− case CODEC_ID_AMR_NB:
1383+ case AV_CODEC_ID_AMR_NB:
13841384 st->codec->channels= 1; /* really needed */
13851385 /* force sample rate for amr, stsd in 3gp does not store sample rate */
13861386 st->codec->sample_rate = 8000;
13871387 break;
1388− case CODEC_ID_AMR_WB:
1388+ case AV_CODEC_ID_AMR_WB:
13891389 st->codec->channels = 1;
13901390 st->codec->sample_rate = 16000;
13911391 break;
1392− case CODEC_ID_MP2:
1393− case CODEC_ID_MP3:
1392+ case AV_CODEC_ID_MP2:
1393+ case AV_CODEC_ID_MP3:
13941394 st->codec->codec_type = AVMEDIA_TYPE_AUDIO; /* force type after stsd for m1a hdlr */
13951395 st->need_parsing = AVSTREAM_PARSE_FULL;
13961396 break;
1397− case CODEC_ID_GSM:
1398− case CODEC_ID_ADPCM_MS:
1399− case CODEC_ID_ADPCM_IMA_WAV:
1400− case CODEC_ID_ILBC:
1397+ case AV_CODEC_ID_GSM:
1398+ case AV_CODEC_ID_ADPCM_MS:
1399+ case AV_CODEC_ID_ADPCM_IMA_WAV:
1400+ case AV_CODEC_ID_ILBC:
14011401 st->codec->block_align = sc->bytes_per_frame;
14021402 break;
1403− case CODEC_ID_ALAC:
1403+ case AV_CODEC_ID_ALAC:
14041404 if (st->codec->extradata_size == 36) {
14051405 st->codec->channels = AV_RB8 (st->codec->extradata+21);
14061406 st->codec->sample_rate = AV_RB32(st->codec->extradata+32);
14071407 }
14081408 break;
1409− case CODEC_ID_VC1:
1409+ case AV_CODEC_ID_VC1:
14101410 st->need_parsing = AVSTREAM_PARSE_FULL;
14111411 break;
14121412 default:
@@ -1993,13 +1993,13 @@ static int mov_read_trak(MOVContext *c, AVIOContext *pb, MOVAtom atom) · 580 unmodified lines
19931993
19941994 switch (st->codec->codec_id) {
19951995 #if CONFIG_H261_DECODER
1996− case CODEC_ID_H261:
1996+ case AV_CODEC_ID_H261:
19971997 #endif
19981998 #if CONFIG_H263_DECODER
1999− case CODEC_ID_H263:
1999+ case AV_CODEC_ID_H263:
20002000 #endif
20012001 #if CONFIG_MPEG4_DECODER
2002− case CODEC_ID_MPEG4:
2002+ case AV_CODEC_ID_MPEG4:
20032003 #endif
20042004 st->codec->width = 0; /* let decoder init width/height */
20052005 st->codec->height= 0;
libavformat/mov_chan.c+20−20
@@ -429,25 +429,25 @@ static const enum MovChannelLayoutTag mov_ch_layouts_wav[] = { · 428 unmodified lines
429429 };
430430
431431 static const struct {
432− enum CodecID codec_id;
432+ enum AVCodecID codec_id;
433433 const enum MovChannelLayoutTag *layouts;
434434 } mov_codec_ch_layouts[] = {
435− { CODEC_ID_AAC, mov_ch_layouts_aac },
436− { CODEC_ID_AC3, mov_ch_layouts_ac3 },
437− { CODEC_ID_ALAC, mov_ch_layouts_alac },
438− { CODEC_ID_PCM_U8, mov_ch_layouts_wav },
439− { CODEC_ID_PCM_S8, mov_ch_layouts_wav },
440− { CODEC_ID_PCM_S16LE, mov_ch_layouts_wav },
441− { CODEC_ID_PCM_S16BE, mov_ch_layouts_wav },
442− { CODEC_ID_PCM_S24LE, mov_ch_layouts_wav },
443− { CODEC_ID_PCM_S24BE, mov_ch_layouts_wav },
444− { CODEC_ID_PCM_S32LE, mov_ch_layouts_wav },
445− { CODEC_ID_PCM_S32BE, mov_ch_layouts_wav },
446− { CODEC_ID_PCM_F32LE, mov_ch_layouts_wav },
447− { CODEC_ID_PCM_F32BE, mov_ch_layouts_wav },
448− { CODEC_ID_PCM_F64LE, mov_ch_layouts_wav },
449− { CODEC_ID_PCM_F64BE, mov_ch_layouts_wav },
450− { CODEC_ID_NONE, NULL },
435+ { AV_CODEC_ID_AAC, mov_ch_layouts_aac },
436+ { AV_CODEC_ID_AC3, mov_ch_layouts_ac3 },
437+ { AV_CODEC_ID_ALAC, mov_ch_layouts_alac },
438+ { AV_CODEC_ID_PCM_U8, mov_ch_layouts_wav },
439+ { AV_CODEC_ID_PCM_S8, mov_ch_layouts_wav },
440+ { AV_CODEC_ID_PCM_S16LE, mov_ch_layouts_wav },
441+ { AV_CODEC_ID_PCM_S16BE, mov_ch_layouts_wav },
442+ { AV_CODEC_ID_PCM_S24LE, mov_ch_layouts_wav },
443+ { AV_CODEC_ID_PCM_S24BE, mov_ch_layouts_wav },
444+ { AV_CODEC_ID_PCM_S32LE, mov_ch_layouts_wav },
445+ { AV_CODEC_ID_PCM_S32BE, mov_ch_layouts_wav },
446+ { AV_CODEC_ID_PCM_F32LE, mov_ch_layouts_wav },
447+ { AV_CODEC_ID_PCM_F32BE, mov_ch_layouts_wav },
448+ { AV_CODEC_ID_PCM_F64LE, mov_ch_layouts_wav },
449+ { AV_CODEC_ID_PCM_F64BE, mov_ch_layouts_wav },
450+ { AV_CODEC_ID_NONE, NULL },
451451 };
452452
453453 uint64_t ff_mov_get_channel_layout(uint32_t tag, uint32_t bitmap)
@@ -490,7 +490,7 @@ static uint32_t mov_get_channel_label(uint32_t label) · 36 unmodified lines
490490 return 0;
491491 }
492492
493−uint32_t ff_mov_get_channel_layout_tag(enum CodecID codec_id,
493+uint32_t ff_mov_get_channel_layout_tag(enum AVCodecID codec_id,
494494 uint64_t channel_layout,
495495 uint32_t *bitmap)
496496 {
@@ -499,11 +499,11 @@ uint32_t ff_mov_get_channel_layout_tag(enum CodecID codec_id, · 2 unmodified lines
499499 const enum MovChannelLayoutTag *layouts = NULL;
500500
501501 /* find the layout list for the specified codec */
502− for (i = 0; mov_codec_ch_layouts[i].codec_id != CODEC_ID_NONE; i++) {
502+ for (i = 0; mov_codec_ch_layouts[i].codec_id != AV_CODEC_ID_NONE; i++) {
503503 if (mov_codec_ch_layouts[i].codec_id == codec_id)
504504 break;
505505 }
506− if (mov_codec_ch_layouts[i].codec_id != CODEC_ID_NONE)
506+ if (mov_codec_ch_layouts[i].codec_id != AV_CODEC_ID_NONE)
507507 layouts = mov_codec_ch_layouts[i].layouts;
508508
509509 if (layouts) {
libavformat/mov_chan.h+1−1
@@ -49,7 +49,7 @@ uint64_t ff_mov_get_channel_layout(uint32_t tag, uint32_t bitmap); · 48 unmodified lines
4949 * @param[out] bitmap channel bitmap
5050 * @return channel layout tag
5151 */
52−uint32_t ff_mov_get_channel_layout_tag(enum CodecID codec_id,
52+uint32_t ff_mov_get_channel_layout_tag(enum AVCodecID codec_id,
5353 uint64_t channel_layout,
5454 uint32_t *bitmap);
5555
libavformat/movenc.c+92−92
@@ -291,8 +291,8 @@ static int mov_write_esds_tag(AVIOContext *pb, MOVTrack *track) // Basic · 290 unmodified lines
291291 put_descr(pb, 0x04, 13 + decoder_specific_info_len);
292292
293293 // Object type indication
294− if ((track->enc->codec_id == CODEC_ID_MP2 ||
295− track->enc->codec_id == CODEC_ID_MP3) &&
294+ if ((track->enc->codec_id == AV_CODEC_ID_MP2 ||
295+ track->enc->codec_id == AV_CODEC_ID_MP3) &&
296296 track->enc->sample_rate > 24000)
297297 avio_w8(pb, 0x6B); // 11172-3
298298 else
@@ -381,20 +381,20 @@ static int mov_write_wave_tag(AVIOContext *pb, MOVTrack *track) · 82 unmodified lines
381381 ffio_wfourcc(pb, "frma");
382382 avio_wl32(pb, track->tag);
383383
384− if (track->enc->codec_id == CODEC_ID_AAC) {
384+ if (track->enc->codec_id == AV_CODEC_ID_AAC) {
385385 /* useless atom needed by mplayer, ipod, not needed by quicktime */
386386 avio_wb32(pb, 12); /* size */
387387 ffio_wfourcc(pb, "mp4a");
388388 avio_wb32(pb, 0);
389389 mov_write_esds_tag(pb, track);
390− } else if (track->enc->codec_id == CODEC_ID_AMR_NB) {
390+ } else if (track->enc->codec_id == AV_CODEC_ID_AMR_NB) {
391391 mov_write_amr_tag(pb, track);
392− } else if (track->enc->codec_id == CODEC_ID_AC3) {
392+ } else if (track->enc->codec_id == AV_CODEC_ID_AC3) {
393393 mov_write_ac3_tag(pb, track);
394− } else if (track->enc->codec_id == CODEC_ID_ALAC) {
394+ } else if (track->enc->codec_id == AV_CODEC_ID_ALAC) {
395395 mov_write_extradata_tag(pb, track);
396− } else if (track->enc->codec_id == CODEC_ID_ADPCM_MS ||
397− track->enc->codec_id == CODEC_ID_ADPCM_IMA_WAV) {
396+ } else if (track->enc->codec_id == AV_CODEC_ID_ADPCM_MS ||
397+ track->enc->codec_id == AV_CODEC_ID_ADPCM_IMA_WAV) {
398398 mov_write_ms_tag(pb, track);
399399 }
400400
@@ -508,25 +508,25 @@ static int mov_write_glbl_tag(AVIOContext *pb, MOVTrack *track) · 107 unmodified lines
508508 * Compute flags for 'lpcm' tag.
509509 * See CoreAudioTypes and AudioStreamBasicDescription at Apple.
510510 */
511−static int mov_get_lpcm_flags(enum CodecID codec_id)
511+static int mov_get_lpcm_flags(enum AVCodecID codec_id)
512512 {
513513 switch (codec_id) {
514− case CODEC_ID_PCM_F32BE:
515− case CODEC_ID_PCM_F64BE:
514+ case AV_CODEC_ID_PCM_F32BE:
515+ case AV_CODEC_ID_PCM_F64BE:
516516 return 11;
517− case CODEC_ID_PCM_F32LE:
518− case CODEC_ID_PCM_F64LE:
517+ case AV_CODEC_ID_PCM_F32LE:
518+ case AV_CODEC_ID_PCM_F64LE:
519519 return 9;
520− case CODEC_ID_PCM_U8:
520+ case AV_CODEC_ID_PCM_U8:
521521 return 10;
522− case CODEC_ID_PCM_S16BE:
523− case CODEC_ID_PCM_S24BE:
524− case CODEC_ID_PCM_S32BE:
522+ case AV_CODEC_ID_PCM_S16BE:
523+ case AV_CODEC_ID_PCM_S24BE:
524+ case AV_CODEC_ID_PCM_S32BE:
525525 return 14;
526− case CODEC_ID_PCM_S8:
527− case CODEC_ID_PCM_S16LE:
528− case CODEC_ID_PCM_S24LE:
529− case CODEC_ID_PCM_S32LE:
526+ case AV_CODEC_ID_PCM_S8:
527+ case AV_CODEC_ID_PCM_S16LE:
528+ case AV_CODEC_ID_PCM_S24LE:
529+ case AV_CODEC_ID_PCM_S32LE:
530530 return 12;
531531 default:
532532 return 0;
@@ -617,22 +617,22 @@ static int mov_write_audio_tag(AVIOContext *pb, MOVTrack *track) · 84 unmodified lines
617617 }
618618
619619 if(track->mode == MODE_MOV &&
620− (track->enc->codec_id == CODEC_ID_AAC ||
621− track->enc->codec_id == CODEC_ID_AC3 ||
622− track->enc->codec_id == CODEC_ID_AMR_NB ||
623− track->enc->codec_id == CODEC_ID_ALAC ||
624− track->enc->codec_id == CODEC_ID_ADPCM_MS ||
625− track->enc->codec_id == CODEC_ID_ADPCM_IMA_WAV))
620+ (track->enc->codec_id == AV_CODEC_ID_AAC ||
621+ track->enc->codec_id == AV_CODEC_ID_AC3 ||
622+ track->enc->codec_id == AV_CODEC_ID_AMR_NB ||
623+ track->enc->codec_id == AV_CODEC_ID_ALAC ||
624+ track->enc->codec_id == AV_CODEC_ID_ADPCM_MS ||
625+ track->enc->codec_id == AV_CODEC_ID_ADPCM_IMA_WAV))
626626 mov_write_wave_tag(pb, track);
627627 else if(track->tag == MKTAG('m','p','4','a'))
628628 mov_write_esds_tag(pb, track);
629− else if(track->enc->codec_id == CODEC_ID_AMR_NB)
629+ else if(track->enc->codec_id == AV_CODEC_ID_AMR_NB)
630630 mov_write_amr_tag(pb, track);
631− else if(track->enc->codec_id == CODEC_ID_AC3)
631+ else if(track->enc->codec_id == AV_CODEC_ID_AC3)
632632 mov_write_ac3_tag(pb, track);
633− else if(track->enc->codec_id == CODEC_ID_ALAC)
633+ else if(track->enc->codec_id == AV_CODEC_ID_ALAC)
634634 mov_write_extradata_tag(pb, track);
635− else if (track->enc->codec_id == CODEC_ID_WMAPRO)
635+ else if (track->enc->codec_id == AV_CODEC_ID_WMAPRO)
636636 mov_write_wfex_tag(pb, track);
637637 else if (track->vos_len > 0)
638638 mov_write_glbl_tag(pb, track);
@@ -733,11 +733,11 @@ static int mp4_get_codec_tag(AVFormatContext *s, MOVTrack *track) · 94 unmodified lines
733733 if (!ff_codec_get_tag(ff_mp4_obj_type, track->enc->codec_id))
734734 return 0;
735735
736− if (track->enc->codec_id == CODEC_ID_H264) tag = MKTAG('a','v','c','1');
737− else if (track->enc->codec_id == CODEC_ID_AC3) tag = MKTAG('a','c','-','3');
738− else if (track->enc->codec_id == CODEC_ID_DIRAC) tag = MKTAG('d','r','a','c');
739− else if (track->enc->codec_id == CODEC_ID_MOV_TEXT) tag = MKTAG('t','x','3','g');
740− else if (track->enc->codec_id == CODEC_ID_VC1) tag = MKTAG('v','c','-','1');
736+ if (track->enc->codec_id == AV_CODEC_ID_H264) tag = MKTAG('a','v','c','1');
737+ else if (track->enc->codec_id == AV_CODEC_ID_AC3) tag = MKTAG('a','c','-','3');
738+ else if (track->enc->codec_id == AV_CODEC_ID_DIRAC) tag = MKTAG('d','r','a','c');
739+ else if (track->enc->codec_id == AV_CODEC_ID_MOV_TEXT) tag = MKTAG('t','x','3','g');
740+ else if (track->enc->codec_id == AV_CODEC_ID_VC1) tag = MKTAG('v','c','-','1');
741741 else if (track->enc->codec_type == AVMEDIA_TYPE_VIDEO) tag = MKTAG('m','p','4','v');
742742 else if (track->enc->codec_type == AVMEDIA_TYPE_AUDIO) tag = MKTAG('m','p','4','a');
743743
@@ -745,14 +745,14 @@ static int mp4_get_codec_tag(AVFormatContext *s, MOVTrack *track) · 1 unmodified line
745745 }
746746
747747 static const AVCodecTag codec_ipod_tags[] = {
748− { CODEC_ID_H264, MKTAG('a','v','c','1') },
749− { CODEC_ID_MPEG4, MKTAG('m','p','4','v') },
750− { CODEC_ID_AAC, MKTAG('m','p','4','a') },
751− { CODEC_ID_ALAC, MKTAG('a','l','a','c') },
752− { CODEC_ID_AC3, MKTAG('a','c','-','3') },
753− { CODEC_ID_MOV_TEXT, MKTAG('t','x','3','g') },
754− { CODEC_ID_MOV_TEXT, MKTAG('t','e','x','t') },
755− { CODEC_ID_NONE, 0 },
748+ { AV_CODEC_ID_H264, MKTAG('a','v','c','1') },
749+ { AV_CODEC_ID_MPEG4, MKTAG('m','p','4','v') },
750+ { AV_CODEC_ID_AAC, MKTAG('m','p','4','a') },
751+ { AV_CODEC_ID_ALAC, MKTAG('a','l','a','c') },
752+ { AV_CODEC_ID_AC3, MKTAG('a','c','-','3') },
753+ { AV_CODEC_ID_MOV_TEXT, MKTAG('t','x','3','g') },
754+ { AV_CODEC_ID_MOV_TEXT, MKTAG('t','e','x','t') },
755+ { AV_CODEC_ID_NONE, 0 },
756756 };
757757
758758 static int ipod_get_codec_tag(AVFormatContext *s, MOVTrack *track)
@@ -839,13 +839,13 @@ static int mov_get_codec_tag(AVFormatContext *s, MOVTrack *track) · 80 unmodified lines
839839 int tag = track->enc->codec_tag;
840840
841841 if (!tag || (track->enc->strict_std_compliance >= FF_COMPLIANCE_NORMAL &&
842− (track->enc->codec_id == CODEC_ID_DVVIDEO ||
843− track->enc->codec_id == CODEC_ID_RAWVIDEO ||
844− track->enc->codec_id == CODEC_ID_H263 ||
842+ (track->enc->codec_id == AV_CODEC_ID_DVVIDEO ||
843+ track->enc->codec_id == AV_CODEC_ID_RAWVIDEO ||
844+ track->enc->codec_id == AV_CODEC_ID_H263 ||
845845 av_get_bits_per_sample(track->enc->codec_id)))) { // pcm audio
846− if (track->enc->codec_id == CODEC_ID_DVVIDEO)
846+ if (track->enc->codec_id == AV_CODEC_ID_DVVIDEO)
847847 tag = mov_get_dv_codec_tag(s, track);
848− else if (track->enc->codec_id == CODEC_ID_RAWVIDEO)
848+ else if (track->enc->codec_id == AV_CODEC_ID_RAWVIDEO)
849849 tag = mov_get_rawvideo_codec_tag(s, track);
850850 else if (track->enc->codec_type == AVMEDIA_TYPE_VIDEO) {
851851 tag = ff_codec_get_tag(ff_codec_movvideo_tags, track->enc->codec_id);
@@ -873,14 +873,14 @@ static int mov_get_codec_tag(AVFormatContext *s, MOVTrack *track) · 21 unmodified lines
873873 }
874874
875875 static const AVCodecTag codec_3gp_tags[] = {
876− { CODEC_ID_H263, MKTAG('s','2','6','3') },
877− { CODEC_ID_H264, MKTAG('a','v','c','1') },
878− { CODEC_ID_MPEG4, MKTAG('m','p','4','v') },
879− { CODEC_ID_AAC, MKTAG('m','p','4','a') },
880− { CODEC_ID_AMR_NB, MKTAG('s','a','m','r') },
881− { CODEC_ID_AMR_WB, MKTAG('s','a','w','b') },
882− { CODEC_ID_MOV_TEXT, MKTAG('t','x','3','g') },
883− { CODEC_ID_NONE, 0 },
876+ { AV_CODEC_ID_H263, MKTAG('s','2','6','3') },
877+ { AV_CODEC_ID_H264, MKTAG('a','v','c','1') },
878+ { AV_CODEC_ID_MPEG4, MKTAG('m','p','4','v') },
879+ { AV_CODEC_ID_AAC, MKTAG('m','p','4','a') },
880+ { AV_CODEC_ID_AMR_NB, MKTAG('s','a','m','r') },
881+ { AV_CODEC_ID_AMR_WB, MKTAG('s','a','w','b') },
882+ { AV_CODEC_ID_MOV_TEXT, MKTAG('t','x','3','g') },
883+ { AV_CODEC_ID_NONE, 0 },
884884 };
885885
886886 static int mov_find_codec_tag(AVFormatContext *s, MOVTrack *track)
@@ -891,7 +891,7 @@ static int mov_find_codec_tag(AVFormatContext *s, MOVTrack *track) · 4 unmodified lines
891891 tag = mp4_get_codec_tag(s, track);
892892 else if (track->mode == MODE_ISM) {
893893 tag = mp4_get_codec_tag(s, track);
894− if (!tag && track->enc->codec_id == CODEC_ID_WMAPRO)
894+ if (!tag && track->enc->codec_id == AV_CODEC_ID_WMAPRO)
895895 tag = MKTAG('w', 'm', 'a', ' ');
896896 } else if (track->mode == MODE_IPOD)
897897 tag = ipod_get_codec_tag(s, track);
@@ -979,7 +979,7 @@ static int mov_write_video_tag(AVIOContext *pb, MOVTrack *track) · 81 unmodified lines
979979 avio_wb16(pb, 0); /* Codec stream revision (=0) */
980980 if (track->mode == MODE_MOV) {
981981 ffio_wfourcc(pb, "FFMP"); /* Vendor */
982− if(track->enc->codec_id == CODEC_ID_RAWVIDEO) {
982+ if(track->enc->codec_id == AV_CODEC_ID_RAWVIDEO) {
983983 avio_wb32(pb, 0); /* Temporal Quality */
984984 avio_wb32(pb, 0x400); /* Spatial Quality = lossless*/
985985 } else {
@@ -1011,19 +1011,19 @@ static int mov_write_video_tag(AVIOContext *pb, MOVTrack *track) · 25 unmodified lines
10111011 avio_wb16(pb, 0xffff); /* Reserved */
10121012 if(track->tag == MKTAG('m','p','4','v'))
10131013 mov_write_esds_tag(pb, track);
1014− else if(track->enc->codec_id == CODEC_ID_H263)
1014+ else if(track->enc->codec_id == AV_CODEC_ID_H263)
10151015 mov_write_d263_tag(pb);
1016− else if(track->enc->codec_id == CODEC_ID_SVQ3)
1016+ else if(track->enc->codec_id == AV_CODEC_ID_SVQ3)
10171017 mov_write_svq3_tag(pb);
1018− else if(track->enc->codec_id == CODEC_ID_DNXHD)
1018+ else if(track->enc->codec_id == AV_CODEC_ID_DNXHD)
10191019 mov_write_avid_tag(pb, track);
1020− else if(track->enc->codec_id == CODEC_ID_H264) {
1020+ else if(track->enc->codec_id == AV_CODEC_ID_H264) {
10211021 mov_write_avcc_tag(pb, track);
10221022 if(track->mode == MODE_IPOD)
10231023 mov_write_uuid_tag_ipod(pb);
10241024 } else if (track->enc->field_order != AV_FIELD_UNKNOWN)
10251025 mov_write_fiel_tag(pb, track);
1026− else if (track->enc->codec_id == CODEC_ID_VC1 && track->vos_len > 0)
1026+ else if (track->enc->codec_id == AV_CODEC_ID_VC1 && track->vos_len > 0)
10271027 mov_write_dvc1_tag(pb, track);
10281028 else if (track->vos_len > 0)
10291029 mov_write_glbl_tag(pb, track);
@@ -2120,7 +2120,7 @@ static int mov_write_isml_manifest(AVIOContext *pb, MOVMuxContext *mov) · 1090 unmodified lines
21202120 param_write_int(pb, "systemBitrate", track->enc->bit_rate);
21212121 param_write_int(pb, "trackID", track_id);
21222122 if (track->enc->codec_type == AVMEDIA_TYPE_VIDEO) {
2123− if (track->enc->codec_id == CODEC_ID_H264) {
2123+ if (track->enc->codec_id == AV_CODEC_ID_H264) {
21242124 uint8_t *ptr;
21252125 int size = track->enc->extradata_size;
21262126 if (!ff_avc_write_annexb_extradata(track->enc->extradata, &ptr,
@@ -2131,7 +2131,7 @@ static int mov_write_isml_manifest(AVIOContext *pb, MOVMuxContext *mov) · 4 unmodified lines
21312131 av_free(ptr);
21322132 }
21332133 param_write_string(pb, "FourCC", "H264");
2134− } else if (track->enc->codec_id == CODEC_ID_VC1) {
2134+ } else if (track->enc->codec_id == AV_CODEC_ID_VC1) {
21352135 param_write_string(pb, "FourCC", "WVC1");
21362136 param_write_hex(pb, "CodecPrivateData", track->enc->extradata,
21372137 track->enc->extradata_size);
@@ -2141,9 +2141,9 @@ static int mov_write_isml_manifest(AVIOContext *pb, MOVMuxContext *mov) · 3 unmodified lines
21412141 param_write_int(pb, "DisplayWidth", track->enc->width);
21422142 param_write_int(pb, "DisplayHeight", track->enc->height);
21432143 } else {
2144− if (track->enc->codec_id == CODEC_ID_AAC) {
2144+ if (track->enc->codec_id == AV_CODEC_ID_AAC) {
21452145 param_write_string(pb, "FourCC", "AACL");
2146− } else if (track->enc->codec_id == CODEC_ID_WMAPRO) {
2146+ } else if (track->enc->codec_id == AV_CODEC_ID_WMAPRO) {
21472147 param_write_string(pb, "FourCC", "WMAP");
21482148 }
21492149 param_write_hex(pb, "CodecPrivateData", track->enc->extradata,
@@ -2475,7 +2475,7 @@ static int mov_write_ftyp_tag(AVIOContext *pb, AVFormatContext *s) · 325 unmodified lines
24752475 AVStream *st = s->streams[i];
24762476 if (st->codec->codec_type == AVMEDIA_TYPE_VIDEO)
24772477 has_video = 1;
2478− if (st->codec->codec_id == CODEC_ID_H264)
2478+ if (st->codec->codec_id == AV_CODEC_ID_H264)
24792479 has_h264 = 1;
24802480 }
24812481
@@ -2566,7 +2566,7 @@ static void mov_write_uuidprof_tag(AVIOContext *pb, AVFormatContext *s) · 84 unmodified lines
25662566 ffio_wfourcc(pb, "VPRF"); /* video */
25672567 avio_wb32(pb, 0x0);
25682568 avio_wb32(pb, 0x1); /* TrackID */
2569− if (video_codec->codec_id == CODEC_ID_H264) {
2569+ if (video_codec->codec_id == AV_CODEC_ID_H264) {
25702570 ffio_wfourcc(pb, "avc1");
25712571 avio_wb16(pb, 0x014D);
25722572 avio_wb16(pb, 0x0015);
@@ -2816,7 +2816,7 @@ int ff_mov_write_packet(AVFormatContext *s, AVPacket *pkt) · 243 unmodified lines
28162816 }
28172817 }
28182818
2819− if (enc->codec_id == CODEC_ID_AMR_NB) {
2819+ if (enc->codec_id == AV_CODEC_ID_AMR_NB) {
28202820 /* We must find out how many AMR blocks there are in one packet */
28212821 static uint16_t packed_size[16] =
28222822 {13, 14, 16, 18, 20, 21, 27, 32, 6, 0, 0, 0, 0, 0, 0, 1};
@@ -2842,7 +2842,7 @@ int ff_mov_write_packet(AVFormatContext *s, AVPacket *pkt) · 19 unmodified lines
28422842 memcpy(trk->vos_data, enc->extradata, trk->vos_len);
28432843 }
28442844
2845− if (enc->codec_id == CODEC_ID_H264 && trk->vos_len > 0 && *(uint8_t *)trk->vos_data != 1) {
2845+ if (enc->codec_id == AV_CODEC_ID_H264 && trk->vos_len > 0 && *(uint8_t *)trk->vos_data != 1) {
28462846 /* from x264 or from bytestream h264 */
28472847 /* nal reformating needed */
28482848 if (trk->hint_track >= 0 && trk->hint_track < mov->nb_streams) {
@@ -2856,8 +2856,8 @@ int ff_mov_write_packet(AVFormatContext *s, AVPacket *pkt) · 7 unmodified lines
28562856 avio_write(pb, pkt->data, size);
28572857 }
28582858
2859− if ((enc->codec_id == CODEC_ID_DNXHD ||
2860− enc->codec_id == CODEC_ID_AC3) && !trk->vos_len) {
2859+ if ((enc->codec_id == AV_CODEC_ID_DNXHD ||
2860+ enc->codec_id == AV_CODEC_ID_AC3) && !trk->vos_len) {
28612861 /* copy frame to create needed atoms */
28622862 trk->vos_len = size;
28632863 trk->vos_data = av_malloc(size);
@@ -2896,10 +2896,10 @@ int ff_mov_write_packet(AVFormatContext *s, AVPacket *pkt) · 32 unmodified lines
28962896 trk->flags |= MOV_TRACK_CTTS;
28972897 trk->cluster[trk->entry].cts = pkt->pts - pkt->dts;
28982898 trk->cluster[trk->entry].flags = 0;
2899− if (enc->codec_id == CODEC_ID_VC1) {
2899+ if (enc->codec_id == AV_CODEC_ID_VC1) {
29002900 mov_parse_vc1_frame(pkt, trk, mov->fragments);
29012901 } else if (pkt->flags & AV_PKT_FLAG_KEY) {
2902− if (mov->mode == MODE_MOV && enc->codec_id == CODEC_ID_MPEG2VIDEO &&
2902+ if (mov->mode == MODE_MOV && enc->codec_id == AV_CODEC_ID_MPEG2VIDEO &&
29032903 trk->entry > 0) { // force sync sample for the first key frame
29042904 mov_parse_mpeg2_frame(pkt, &trk->cluster[trk->entry].flags);
29052905 if (trk->cluster[trk->entry].flags & MOV_PARTIAL_SYNC_SAMPLE)
@@ -3096,7 +3096,7 @@ static int mov_write_header(AVFormatContext *s) · 190 unmodified lines
30963096 track->timescale = st->codec->sample_rate;
30973097 /* set sample_size for PCM and ADPCM */
30983098 if (av_get_bits_per_sample(st->codec->codec_id) ||
3099− st->codec->codec_id == CODEC_ID_ILBC) {
3099+ st->codec->codec_id == AV_CODEC_ID_ILBC) {
31003100 if (!st->codec->block_align) {
31013101 av_log(s, AV_LOG_ERROR, "track %d: codec block align is not set\n", i);
31023102 goto error;
@@ -3108,7 +3108,7 @@ static int mov_write_header(AVFormatContext *s) · 5 unmodified lines
31083108 track->audio_vbr = 1;
31093109 }
31103110 if (track->mode != MODE_MOV &&
3111− track->enc->codec_id == CODEC_ID_MP3 && track->timescale < 16000) {
3111+ track->enc->codec_id == AV_CODEC_ID_MP3 && track->timescale < 16000) {
31123112 av_log(s, AV_LOG_ERROR, "track %d: muxing mp3 at %dhz is not supported\n",
31133113 i, track->enc->sample_rate);
31143114 goto error;
@@ -3251,9 +3251,9 @@ AVOutputFormat ff_mov_muxer = { · 136 unmodified lines
32513251 .long_name = NULL_IF_CONFIG_SMALL("QuickTime / MOV"),
32523252 .extensions = "mov",
32533253 .priv_data_size = sizeof(MOVMuxContext),
3254− .audio_codec = CODEC_ID_AAC,
3254+ .audio_codec = AV_CODEC_ID_AAC,
32553255 .video_codec = CONFIG_LIBX264_ENCODER ?
3256− CODEC_ID_H264 : CODEC_ID_MPEG4,
3256+ AV_CODEC_ID_H264 : AV_CODEC_ID_MPEG4,
32573257 .write_header = mov_write_header,
32583258 .write_packet = mov_write_packet,
32593259 .write_trailer = mov_write_trailer,
@@ -3271,8 +3271,8 @@ AVOutputFormat ff_tgp_muxer = { · 11 unmodified lines
32713271 .long_name = NULL_IF_CONFIG_SMALL("3GP (3GPP file format)"),
32723272 .extensions = "3gp",
32733273 .priv_data_size = sizeof(MOVMuxContext),
3274− .audio_codec = CODEC_ID_AMR_NB,
3275− .video_codec = CODEC_ID_H263,
3274+ .audio_codec = AV_CODEC_ID_AMR_NB,
3275+ .video_codec = AV_CODEC_ID_H263,
32763276 .write_header = mov_write_header,
32773277 .write_packet = mov_write_packet,
32783278 .write_trailer = mov_write_trailer,
@@ -3289,9 +3289,9 @@ AVOutputFormat ff_mp4_muxer = { · 10 unmodified lines
32893289 .mime_type = "application/mp4",
32903290 .extensions = "mp4",
32913291 .priv_data_size = sizeof(MOVMuxContext),
3292− .audio_codec = CODEC_ID_AAC,
3292+ .audio_codec = AV_CODEC_ID_AAC,
32933293 .video_codec = CONFIG_LIBX264_ENCODER ?
3294− CODEC_ID_H264 : CODEC_ID_MPEG4,
3294+ AV_CODEC_ID_H264 : AV_CODEC_ID_MPEG4,
32953295 .write_header = mov_write_header,
32963296 .write_packet = mov_write_packet,
32973297 .write_trailer = mov_write_trailer,
@@ -3307,9 +3307,9 @@ AVOutputFormat ff_psp_muxer = { · 9 unmodified lines
33073307 .long_name = NULL_IF_CONFIG_SMALL("PSP MP4 (MPEG-4 Part 14)"),
33083308 .extensions = "mp4,psp",
33093309 .priv_data_size = sizeof(MOVMuxContext),
3310− .audio_codec = CODEC_ID_AAC,
3310+ .audio_codec = AV_CODEC_ID_AAC,
33113311 .video_codec = CONFIG_LIBX264_ENCODER ?
3312− CODEC_ID_H264 : CODEC_ID_MPEG4,
3312+ AV_CODEC_ID_H264 : AV_CODEC_ID_MPEG4,
33133313 .write_header = mov_write_header,
33143314 .write_packet = mov_write_packet,
33153315 .write_trailer = mov_write_trailer,
@@ -3325,8 +3325,8 @@ AVOutputFormat ff_tg2_muxer = { · 9 unmodified lines
33253325 .long_name = NULL_IF_CONFIG_SMALL("3GP2 (3GPP2 file format)"),
33263326 .extensions = "3g2",
33273327 .priv_data_size = sizeof(MOVMuxContext),
3328− .audio_codec = CODEC_ID_AMR_NB,
3329− .video_codec = CODEC_ID_H263,
3328+ .audio_codec = AV_CODEC_ID_AMR_NB,
3329+ .video_codec = AV_CODEC_ID_H263,
33303330 .write_header = mov_write_header,
33313331 .write_packet = mov_write_packet,
33323332 .write_trailer = mov_write_trailer,
@@ -3343,8 +3343,8 @@ AVOutputFormat ff_ipod_muxer = { · 10 unmodified lines
33433343 .mime_type = "application/mp4",
33443344 .extensions = "m4v,m4a",
33453345 .priv_data_size = sizeof(MOVMuxContext),
3346− .audio_codec = CODEC_ID_AAC,
3347− .video_codec = CODEC_ID_H264,
3346+ .audio_codec = AV_CODEC_ID_AAC,
3347+ .video_codec = AV_CODEC_ID_H264,
33483348 .write_header = mov_write_header,
33493349 .write_packet = mov_write_packet,
33503350 .write_trailer = mov_write_trailer,
@@ -3361,8 +3361,8 @@ AVOutputFormat ff_ismv_muxer = { · 10 unmodified lines
33613361 .mime_type = "application/mp4",
33623362 .extensions = "ismv,isma",
33633363 .priv_data_size = sizeof(MOVMuxContext),
3364− .audio_codec = CODEC_ID_AAC,
3365− .video_codec = CODEC_ID_H264,
3364+ .audio_codec = AV_CODEC_ID_AAC,
3365+ .video_codec = AV_CODEC_ID_H264,
33663366 .write_header = mov_write_header,
33673367 .write_packet = mov_write_packet,
33683368 .write_trailer = mov_write_trailer,
libavformat/mp3dec.c+1−1
@@ -162,7 +162,7 @@ static int mp3_read_header(AVFormatContext *s) · 161 unmodified lines
162162 return AVERROR(ENOMEM);
163163
164164 st->codec->codec_type = AVMEDIA_TYPE_AUDIO;
165− st->codec->codec_id = CODEC_ID_MP3;
165+ st->codec->codec_id = AV_CODEC_ID_MP3;
166166 st->need_parsing = AVSTREAM_PARSE_FULL;
167167 st->start_time = 0;
168168
libavformat/mp3enc.c+5−5
@@ -193,8 +193,8 @@ AVOutputFormat ff_mp2_muxer = { · 192 unmodified lines
193193 .long_name = NULL_IF_CONFIG_SMALL("MP2 (MPEG audio layer 2)"),
194194 .mime_type = "audio/x-mpeg",
195195 .extensions = "mp2,m2a",
196− .audio_codec = CODEC_ID_MP2,
197− .video_codec = CODEC_ID_NONE,
196+ .audio_codec = AV_CODEC_ID_MP2,
197+ .video_codec = AV_CODEC_ID_NONE,
198198 .write_packet = ff_raw_write_packet,
199199 .write_trailer = mp3_write_trailer,
200200 };
@@ -277,7 +277,7 @@ static int mp3_write_header(struct AVFormatContext *s) · 76 unmodified lines
277277 for (i = 0; i < s->nb_streams; i++) {
278278 AVStream *st = s->streams[i];
279279 if (st->codec->codec_type == AVMEDIA_TYPE_AUDIO) {
280− if (mp3->audio_stream_idx >= 0 || st->codec->codec_id != CODEC_ID_MP3) {
280+ if (mp3->audio_stream_idx >= 0 || st->codec->codec_id != AV_CODEC_ID_MP3) {
281281 av_log(s, AV_LOG_ERROR, "Invalid audio stream. Exactly one MP3 "
282282 "audio stream is required.\n");
283283 return AVERROR(EINVAL);
@@ -313,8 +313,8 @@ AVOutputFormat ff_mp3_muxer = { · 29 unmodified lines
313313 .mime_type = "audio/x-mpeg",
314314 .extensions = "mp3",
315315 .priv_data_size = sizeof(MP3Context),
316− .audio_codec = CODEC_ID_MP3,
317− .video_codec = CODEC_ID_PNG,
316+ .audio_codec = AV_CODEC_ID_MP3,
317+ .video_codec = AV_CODEC_ID_PNG,
318318 .write_header = mp3_write_header,
319319 .write_packet = mp3_write_packet,
320320 .write_trailer = mp3_write_trailer,
libavformat/mpc.c+1−1
@@ -89,7 +89,7 @@ static int mpc_read_header(AVFormatContext *s) · 88 unmodified lines
8989 if (!st)
9090 return AVERROR(ENOMEM);
9191 st->codec->codec_type = AVMEDIA_TYPE_AUDIO;
92− st->codec->codec_id = CODEC_ID_MUSEPACK7;
92+ st->codec->codec_id = AV_CODEC_ID_MUSEPACK7;
9393 st->codec->channels = 2;
9494 st->codec->bits_per_coded_sample = 16;
9595
libavformat/mpc8.c+1−1
@@ -229,7 +229,7 @@ static int mpc8_read_header(AVFormatContext *s) · 228 unmodified lines
229229 if (!st)
230230 return AVERROR(ENOMEM);
231231 st->codec->codec_type = AVMEDIA_TYPE_AUDIO;
232− st->codec->codec_id = CODEC_ID_MUSEPACK8;
232+ st->codec->codec_id = AV_CODEC_ID_MUSEPACK8;
233233 st->codec->bits_per_coded_sample = 16;
234234
235235 st->codec->extradata_size = 2;
libavformat/mpeg.c+24−24
@@ -382,7 +382,7 @@ static int mpegps_read_packet(AVFormatContext *s, · 381 unmodified lines
382382 MpegDemuxContext *m = s->priv_data;
383383 AVStream *st;
384384 int len, startcode, i, es_type, ret;
385− enum CodecID codec_id = CODEC_ID_NONE;
385+ enum AVCodecID codec_id = AV_CODEC_ID_NONE;
386386 enum AVMediaType type;
387387 int64_t pts, dts, dummy_pos; //dummy_pos is needed for the index building to work
388388 uint8_t av_uninit(dvdaudio_substream_type);
@@ -408,26 +408,26 @@ static int mpegps_read_packet(AVFormatContext *s, · 19 unmodified lines
408408 es_type = m->psm_es_type[startcode & 0xff];
409409 if(es_type > 0 && es_type != STREAM_TYPE_PRIVATE_DATA){
410410 if(es_type == STREAM_TYPE_VIDEO_MPEG1){
411− codec_id = CODEC_ID_MPEG2VIDEO;
411+ codec_id = AV_CODEC_ID_MPEG2VIDEO;
412412 type = AVMEDIA_TYPE_VIDEO;
413413 } else if(es_type == STREAM_TYPE_VIDEO_MPEG2){
414− codec_id = CODEC_ID_MPEG2VIDEO;
414+ codec_id = AV_CODEC_ID_MPEG2VIDEO;
415415 type = AVMEDIA_TYPE_VIDEO;
416416 } else if(es_type == STREAM_TYPE_AUDIO_MPEG1 ||
417417 es_type == STREAM_TYPE_AUDIO_MPEG2){
418− codec_id = CODEC_ID_MP3;
418+ codec_id = AV_CODEC_ID_MP3;
419419 type = AVMEDIA_TYPE_AUDIO;
420420 } else if(es_type == STREAM_TYPE_AUDIO_AAC){
421− codec_id = CODEC_ID_AAC;
421+ codec_id = AV_CODEC_ID_AAC;
422422 type = AVMEDIA_TYPE_AUDIO;
423423 } else if(es_type == STREAM_TYPE_VIDEO_MPEG4){
424− codec_id = CODEC_ID_MPEG4;
424+ codec_id = AV_CODEC_ID_MPEG4;
425425 type = AVMEDIA_TYPE_VIDEO;
426426 } else if(es_type == STREAM_TYPE_VIDEO_H264){
427− codec_id = CODEC_ID_H264;
427+ codec_id = AV_CODEC_ID_H264;
428428 type = AVMEDIA_TYPE_VIDEO;
429429 } else if(es_type == STREAM_TYPE_AUDIO_AC3){
430− codec_id = CODEC_ID_AC3;
430+ codec_id = AV_CODEC_ID_AC3;
431431 type = AVMEDIA_TYPE_AUDIO;
432432 } else {
433433 goto skip;
@@ -438,47 +438,47 @@ static int mpegps_read_packet(AVFormatContext *s, · 4 unmodified lines
438438 avio_read(s->pb, buf, 8);
439439 avio_seek(s->pb, -8, SEEK_CUR);
440440 if(!memcmp(buf, avs_seqh, 4) && (buf[6] != 0 || buf[7] != 1))
441− codec_id = CODEC_ID_CAVS;
441+ codec_id = AV_CODEC_ID_CAVS;
442442 else
443− codec_id = CODEC_ID_PROBE;
443+ codec_id = AV_CODEC_ID_PROBE;
444444 type = AVMEDIA_TYPE_VIDEO;
445445 } else if (startcode >= 0x1c0 && startcode <= 0x1df) {
446446 type = AVMEDIA_TYPE_AUDIO;
447− codec_id = m->sofdec > 0 ? CODEC_ID_ADPCM_ADX : CODEC_ID_MP2;
447+ codec_id = m->sofdec > 0 ? AV_CODEC_ID_ADPCM_ADX : AV_CODEC_ID_MP2;
448448 } else if (startcode >= 0x80 && startcode <= 0x87) {
449449 type = AVMEDIA_TYPE_AUDIO;
450− codec_id = CODEC_ID_AC3;
450+ codec_id = AV_CODEC_ID_AC3;
451451 } else if ( ( startcode >= 0x88 && startcode <= 0x8f)
452452 ||( startcode >= 0x98 && startcode <= 0x9f)) {
453453 /* 0x90 - 0x97 is reserved for SDDS in DVD specs */
454454 type = AVMEDIA_TYPE_AUDIO;
455− codec_id = CODEC_ID_DTS;
455+ codec_id = AV_CODEC_ID_DTS;
456456 } else if (startcode >= 0xa0 && startcode <= 0xaf) {
457457 type = AVMEDIA_TYPE_AUDIO;
458− /* 16 bit form will be handled as CODEC_ID_PCM_S16BE */
459− codec_id = CODEC_ID_PCM_DVD;
458+ /* 16 bit form will be handled as AV_CODEC_ID_PCM_S16BE */
459+ codec_id = AV_CODEC_ID_PCM_DVD;
460460 } else if (startcode >= 0xb0 && startcode <= 0xbf) {
461461 type = AVMEDIA_TYPE_AUDIO;
462− codec_id = CODEC_ID_TRUEHD;
462+ codec_id = AV_CODEC_ID_TRUEHD;
463463 } else if (startcode >= 0xc0 && startcode <= 0xcf) {
464464 /* Used for both AC-3 and E-AC-3 in EVOB files */
465465 type = AVMEDIA_TYPE_AUDIO;
466− codec_id = CODEC_ID_AC3;
466+ codec_id = AV_CODEC_ID_AC3;
467467 } else if (startcode >= 0x20 && startcode <= 0x3f) {
468468 type = AVMEDIA_TYPE_SUBTITLE;
469− codec_id = CODEC_ID_DVD_SUBTITLE;
469+ codec_id = AV_CODEC_ID_DVD_SUBTITLE;
470470 } else if (startcode >= 0xfd55 && startcode <= 0xfd5f) {
471471 type = AVMEDIA_TYPE_VIDEO;
472− codec_id = CODEC_ID_VC1;
472+ codec_id = AV_CODEC_ID_VC1;
473473 } else if (startcode == 0x1bd) {
474474 // check dvd audio substream type
475475 type = AVMEDIA_TYPE_AUDIO;
476476 switch(dvdaudio_substream_type & 0xe0) {
477− case 0xa0: codec_id = CODEC_ID_PCM_DVD;
477+ case 0xa0: codec_id = AV_CODEC_ID_PCM_DVD;
478478 break;
479479 case 0x80: if((dvdaudio_substream_type & 0xf8) == 0x88)
480− codec_id = CODEC_ID_DTS;
481− else codec_id = CODEC_ID_AC3;
480+ codec_id = AV_CODEC_ID_DTS;
481+ else codec_id = AV_CODEC_ID_AC3;
482482 break;
483483 default: av_log(s, AV_LOG_ERROR, "Unknown 0x1bd sub-stream\n");
484484 goto skip;
@@ -496,7 +496,7 @@ static int mpegps_read_packet(AVFormatContext *s, · 11 unmodified lines
496496 st->id = startcode;
497497 st->codec->codec_type = type;
498498 st->codec->codec_id = codec_id;
499− if (codec_id != CODEC_ID_PCM_S16BE)
499+ if (codec_id != AV_CODEC_ID_PCM_S16BE)
500500 st->need_parsing = AVSTREAM_PARSE_FULL;
501501 found:
502502 if(st->discard >= AVDISCARD_ALL)
@@ -521,7 +521,7 @@ static int mpegps_read_packet(AVFormatContext *s, · 18 unmodified lines
521521 st->codec->sample_rate *
522522 st->codec->bits_per_coded_sample;
523523 if (st->codec->bits_per_coded_sample == 16)
524− st->codec->codec_id = CODEC_ID_PCM_S16BE;
524+ st->codec->codec_id = AV_CODEC_ID_PCM_S16BE;
525525 else if (st->codec->bits_per_coded_sample == 28)
526526 return AVERROR(EINVAL);
527527 }
libavformat/mpegenc.c+13−13
@@ -343,11 +343,11 @@ static int mpeg_mux_init(AVFormatContext *ctx) · 342 unmodified lines
343343
344344 switch(st->codec->codec_type) {
345345 case AVMEDIA_TYPE_AUDIO:
346− if (st->codec->codec_id == CODEC_ID_AC3) {
346+ if (st->codec->codec_id == AV_CODEC_ID_AC3) {
347347 stream->id = ac3_id++;
348− } else if (st->codec->codec_id == CODEC_ID_DTS) {
348+ } else if (st->codec->codec_id == AV_CODEC_ID_DTS) {
349349 stream->id = dts_id++;
350− } else if (st->codec->codec_id == CODEC_ID_PCM_S16BE) {
350+ } else if (st->codec->codec_id == AV_CODEC_ID_PCM_S16BE) {
351351 stream->id = lpcm_id++;
352352 for(j = 0; j < 4; j++) {
353353 if (lpcm_freq_tab[j] == st->codec->sample_rate)
@@ -1148,8 +1148,8 @@ AVOutputFormat ff_mpeg1system_muxer = { · 794 unmodified lines
11481148 .mime_type = "video/mpeg",
11491149 .extensions = "mpg,mpeg",
11501150 .priv_data_size = sizeof(MpegMuxContext),
1151− .audio_codec = CODEC_ID_MP2,
1152− .video_codec = CODEC_ID_MPEG1VIDEO,
1151+ .audio_codec = AV_CODEC_ID_MP2,
1152+ .video_codec = AV_CODEC_ID_MPEG1VIDEO,
11531153 .write_header = mpeg_mux_init,
11541154 .write_packet = mpeg_mux_write_packet,
11551155 .write_trailer = mpeg_mux_end,
@@ -1163,8 +1163,8 @@ AVOutputFormat ff_mpeg1vcd_muxer = { · 7 unmodified lines
11631163 .long_name = NULL_IF_CONFIG_SMALL("MPEG-1 Systems / MPEG program stream (VCD)"),
11641164 .mime_type = "video/mpeg",
11651165 .priv_data_size = sizeof(MpegMuxContext),
1166− .audio_codec = CODEC_ID_MP2,
1167− .video_codec = CODEC_ID_MPEG1VIDEO,
1166+ .audio_codec = AV_CODEC_ID_MP2,
1167+ .video_codec = AV_CODEC_ID_MPEG1VIDEO,
11681168 .write_header = mpeg_mux_init,
11691169 .write_packet = mpeg_mux_write_packet,
11701170 .write_trailer = mpeg_mux_end,
@@ -1179,8 +1179,8 @@ AVOutputFormat ff_mpeg2vob_muxer = { · 8 unmodified lines
11791179 .mime_type = "video/mpeg",
11801180 .extensions = "vob",
11811181 .priv_data_size = sizeof(MpegMuxContext),
1182− .audio_codec = CODEC_ID_MP2,
1183− .video_codec = CODEC_ID_MPEG2VIDEO,
1182+ .audio_codec = AV_CODEC_ID_MP2,
1183+ .video_codec = AV_CODEC_ID_MPEG2VIDEO,
11841184 .write_header = mpeg_mux_init,
11851185 .write_packet = mpeg_mux_write_packet,
11861186 .write_trailer = mpeg_mux_end,
@@ -1197,8 +1197,8 @@ AVOutputFormat ff_mpeg2svcd_muxer = { · 10 unmodified lines
11971197 .mime_type = "video/mpeg",
11981198 .extensions = "vob",
11991199 .priv_data_size = sizeof(MpegMuxContext),
1200− .audio_codec = CODEC_ID_MP2,
1201− .video_codec = CODEC_ID_MPEG2VIDEO,
1200+ .audio_codec = AV_CODEC_ID_MP2,
1201+ .video_codec = AV_CODEC_ID_MPEG2VIDEO,
12021202 .write_header = mpeg_mux_init,
12031203 .write_packet = mpeg_mux_write_packet,
12041204 .write_trailer = mpeg_mux_end,
@@ -1215,8 +1215,8 @@ AVOutputFormat ff_mpeg2dvd_muxer = { · 10 unmodified lines
12151215 .mime_type = "video/mpeg",
12161216 .extensions = "dvd",
12171217 .priv_data_size = sizeof(MpegMuxContext),
1218− .audio_codec = CODEC_ID_MP2,
1219− .video_codec = CODEC_ID_MPEG2VIDEO,
1218+ .audio_codec = AV_CODEC_ID_MP2,
1219+ .video_codec = AV_CODEC_ID_MPEG2VIDEO,
12201220 .write_header = mpeg_mux_init,
12211221 .write_packet = mpeg_mux_write_packet,
12221222 .write_trailer = mpeg_mux_end,
libavformat/mpegts.c+52−52
@@ -509,60 +509,60 @@ static int parse_section_header(SectionHeader *h, · 508 unmodified lines
509509 typedef struct {
510510 uint32_t stream_type;
511511 enum AVMediaType codec_type;
512− enum CodecID codec_id;
512+ enum AVCodecID codec_id;
513513 } StreamType;
514514
515515 static const StreamType ISO_types[] = {
516− { 0x01, AVMEDIA_TYPE_VIDEO, CODEC_ID_MPEG2VIDEO },
517− { 0x02, AVMEDIA_TYPE_VIDEO, CODEC_ID_MPEG2VIDEO },
518− { 0x03, AVMEDIA_TYPE_AUDIO, CODEC_ID_MP3 },
519− { 0x04, AVMEDIA_TYPE_AUDIO, CODEC_ID_MP3 },
520− { 0x0f, AVMEDIA_TYPE_AUDIO, CODEC_ID_AAC },
521− { 0x10, AVMEDIA_TYPE_VIDEO, CODEC_ID_MPEG4 },
522− { 0x11, AVMEDIA_TYPE_AUDIO, CODEC_ID_AAC_LATM }, /* LATM syntax */
523− { 0x1b, AVMEDIA_TYPE_VIDEO, CODEC_ID_H264 },
524− { 0xd1, AVMEDIA_TYPE_VIDEO, CODEC_ID_DIRAC },
525− { 0xea, AVMEDIA_TYPE_VIDEO, CODEC_ID_VC1 },
516+ { 0x01, AVMEDIA_TYPE_VIDEO, AV_CODEC_ID_MPEG2VIDEO },
517+ { 0x02, AVMEDIA_TYPE_VIDEO, AV_CODEC_ID_MPEG2VIDEO },
518+ { 0x03, AVMEDIA_TYPE_AUDIO, AV_CODEC_ID_MP3 },
519+ { 0x04, AVMEDIA_TYPE_AUDIO, AV_CODEC_ID_MP3 },
520+ { 0x0f, AVMEDIA_TYPE_AUDIO, AV_CODEC_ID_AAC },
521+ { 0x10, AVMEDIA_TYPE_VIDEO, AV_CODEC_ID_MPEG4 },
522+ { 0x11, AVMEDIA_TYPE_AUDIO, AV_CODEC_ID_AAC_LATM }, /* LATM syntax */
523+ { 0x1b, AVMEDIA_TYPE_VIDEO, AV_CODEC_ID_H264 },
524+ { 0xd1, AVMEDIA_TYPE_VIDEO, AV_CODEC_ID_DIRAC },
525+ { 0xea, AVMEDIA_TYPE_VIDEO, AV_CODEC_ID_VC1 },
526526 { 0 },
527527 };
528528
529529 static const StreamType HDMV_types[] = {
530− { 0x80, AVMEDIA_TYPE_AUDIO, CODEC_ID_PCM_BLURAY },
531− { 0x81, AVMEDIA_TYPE_AUDIO, CODEC_ID_AC3 },
532− { 0x82, AVMEDIA_TYPE_AUDIO, CODEC_ID_DTS },
533− { 0x83, AVMEDIA_TYPE_AUDIO, CODEC_ID_TRUEHD },
534− { 0x84, AVMEDIA_TYPE_AUDIO, CODEC_ID_EAC3 },
535− { 0x85, AVMEDIA_TYPE_AUDIO, CODEC_ID_DTS }, /* DTS HD */
536− { 0x86, AVMEDIA_TYPE_AUDIO, CODEC_ID_DTS }, /* DTS HD MASTER*/
537− { 0x90, AVMEDIA_TYPE_SUBTITLE, CODEC_ID_HDMV_PGS_SUBTITLE },
530+ { 0x80, AVMEDIA_TYPE_AUDIO, AV_CODEC_ID_PCM_BLURAY },
531+ { 0x81, AVMEDIA_TYPE_AUDIO, AV_CODEC_ID_AC3 },
532+ { 0x82, AVMEDIA_TYPE_AUDIO, AV_CODEC_ID_DTS },
533+ { 0x83, AVMEDIA_TYPE_AUDIO, AV_CODEC_ID_TRUEHD },
534+ { 0x84, AVMEDIA_TYPE_AUDIO, AV_CODEC_ID_EAC3 },
535+ { 0x85, AVMEDIA_TYPE_AUDIO, AV_CODEC_ID_DTS }, /* DTS HD */
536+ { 0x86, AVMEDIA_TYPE_AUDIO, AV_CODEC_ID_DTS }, /* DTS HD MASTER*/
537+ { 0x90, AVMEDIA_TYPE_SUBTITLE, AV_CODEC_ID_HDMV_PGS_SUBTITLE },
538538 { 0 },
539539 };
540540
541541 /* ATSC ? */
542542 static const StreamType MISC_types[] = {
543− { 0x81, AVMEDIA_TYPE_AUDIO, CODEC_ID_AC3 },
544− { 0x8a, AVMEDIA_TYPE_AUDIO, CODEC_ID_DTS },
543+ { 0x81, AVMEDIA_TYPE_AUDIO, AV_CODEC_ID_AC3 },
544+ { 0x8a, AVMEDIA_TYPE_AUDIO, AV_CODEC_ID_DTS },
545545 { 0 },
546546 };
547547
548548 static const StreamType REGD_types[] = {
549− { MKTAG('d','r','a','c'), AVMEDIA_TYPE_VIDEO, CODEC_ID_DIRAC },
550− { MKTAG('A','C','-','3'), AVMEDIA_TYPE_AUDIO, CODEC_ID_AC3 },
551− { MKTAG('B','S','S','D'), AVMEDIA_TYPE_AUDIO, CODEC_ID_S302M },
552− { MKTAG('D','T','S','1'), AVMEDIA_TYPE_AUDIO, CODEC_ID_DTS },
553− { MKTAG('D','T','S','2'), AVMEDIA_TYPE_AUDIO, CODEC_ID_DTS },
554− { MKTAG('D','T','S','3'), AVMEDIA_TYPE_AUDIO, CODEC_ID_DTS },
555− { MKTAG('V','C','-','1'), AVMEDIA_TYPE_VIDEO, CODEC_ID_VC1 },
549+ { MKTAG('d','r','a','c'), AVMEDIA_TYPE_VIDEO, AV_CODEC_ID_DIRAC },
550+ { MKTAG('A','C','-','3'), AVMEDIA_TYPE_AUDIO, AV_CODEC_ID_AC3 },
551+ { MKTAG('B','S','S','D'), AVMEDIA_TYPE_AUDIO, AV_CODEC_ID_S302M },
552+ { MKTAG('D','T','S','1'), AVMEDIA_TYPE_AUDIO, AV_CODEC_ID_DTS },
553+ { MKTAG('D','T','S','2'), AVMEDIA_TYPE_AUDIO, AV_CODEC_ID_DTS },
554+ { MKTAG('D','T','S','3'), AVMEDIA_TYPE_AUDIO, AV_CODEC_ID_DTS },
555+ { MKTAG('V','C','-','1'), AVMEDIA_TYPE_VIDEO, AV_CODEC_ID_VC1 },
556556 { 0 },
557557 };
558558
559559 /* descriptor present */
560560 static const StreamType DESC_types[] = {
561− { 0x6a, AVMEDIA_TYPE_AUDIO, CODEC_ID_AC3 }, /* AC-3 descriptor */
562− { 0x7a, AVMEDIA_TYPE_AUDIO, CODEC_ID_EAC3 }, /* E-AC-3 descriptor */
563− { 0x7b, AVMEDIA_TYPE_AUDIO, CODEC_ID_DTS },
564− { 0x56, AVMEDIA_TYPE_SUBTITLE, CODEC_ID_DVB_TELETEXT },
565− { 0x59, AVMEDIA_TYPE_SUBTITLE, CODEC_ID_DVB_SUBTITLE }, /* subtitling descriptor */
561+ { 0x6a, AVMEDIA_TYPE_AUDIO, AV_CODEC_ID_AC3 }, /* AC-3 descriptor */
562+ { 0x7a, AVMEDIA_TYPE_AUDIO, AV_CODEC_ID_EAC3 }, /* E-AC-3 descriptor */
563+ { 0x7b, AVMEDIA_TYPE_AUDIO, AV_CODEC_ID_DTS },
564+ { 0x56, AVMEDIA_TYPE_SUBTITLE, AV_CODEC_ID_DVB_TELETEXT },
565+ { 0x59, AVMEDIA_TYPE_SUBTITLE, AV_CODEC_ID_DVB_SUBTITLE }, /* subtitling descriptor */
566566 { 0 },
567567 };
568568
@@ -584,7 +584,7 @@ static int mpegts_set_stream_info(AVStream *st, PESContext *pes, · 15 unmodified lines
584584 avpriv_set_pts_info(st, 33, 1, 90000);
585585 st->priv_data = pes;
586586 st->codec->codec_type = AVMEDIA_TYPE_DATA;
587− st->codec->codec_id = CODEC_ID_NONE;
587+ st->codec->codec_id = AV_CODEC_ID_NONE;
588588 st->need_parsing = AVSTREAM_PARSE_FULL;
589589 pes->st = st;
590590 pes->stream_type = stream_type;
@@ -597,7 +597,7 @@ static int mpegts_set_stream_info(AVStream *st, PESContext *pes, · 6 unmodified lines
597597
598598 mpegts_find_stream_type(st, pes->stream_type, ISO_types);
599599 if (prog_reg_desc == AV_RL32("HDMV") &&
600− st->codec->codec_id == CODEC_ID_NONE) {
600+ st->codec->codec_id == AV_CODEC_ID_NONE) {
601601 mpegts_find_stream_type(st, pes->stream_type, HDMV_types);
602602 if (pes->stream_type == 0x83) {
603603 // HDMV TrueHD streams also contain an AC3 coded version of the
@@ -619,12 +619,12 @@ static int mpegts_set_stream_info(AVStream *st, PESContext *pes, · 15 unmodified lines
619619 avpriv_set_pts_info(sub_st, 33, 1, 90000);
620620 sub_st->priv_data = sub_pes;
621621 sub_st->codec->codec_type = AVMEDIA_TYPE_AUDIO;
622− sub_st->codec->codec_id = CODEC_ID_AC3;
622+ sub_st->codec->codec_id = AV_CODEC_ID_AC3;
623623 sub_st->need_parsing = AVSTREAM_PARSE_FULL;
624624 sub_pes->sub_st = pes->sub_st = sub_st;
625625 }
626626 }
627− if (st->codec->codec_id == CODEC_ID_NONE)
627+ if (st->codec->codec_id == AV_CODEC_ID_NONE)
628628 mpegts_find_stream_type(st, pes->stream_type, MISC_types);
629629
630630 return 0;
@@ -813,10 +813,10 @@ static int mpegts_push_data(MpegTSFilter *filter, · 182 unmodified lines
813813 code != 0x1ff && code != 0x1f2 && /* program_stream_directory, DSMCC_stream */
814814 code != 0x1f8) { /* ITU-T Rec. H.222.1 type E stream */
815815 pes->state = MPEGTS_PESHEADER;
816− if (pes->st->codec->codec_id == CODEC_ID_NONE) {
816+ if (pes->st->codec->codec_id == AV_CODEC_ID_NONE) {
817817 av_dlog(pes->stream, "pid=%x stream_type=%x probing\n",
818818 pes->pid, pes->stream_type);
819− pes->st->codec->codec_id = CODEC_ID_PROBE;
819+ pes->st->codec->codec_id = AV_CODEC_ID_PROBE;
820820 }
821821 } else {
822822 pes->state = MPEGTS_PAYLOAD;
@@ -1218,19 +1218,19 @@ static void m4sl_cb(MpegTSFilter *filter, const uint8_t *section, int section_le · 395 unmodified lines
12181218 ffio_init_context(&pb, mp4_descr[i].dec_config_descr,
12191219 mp4_descr[i].dec_config_descr_len, 0, NULL, NULL, NULL, NULL);
12201220 ff_mp4_read_dec_config_descr(s, st, &pb);
1221− if (st->codec->codec_id == CODEC_ID_AAC &&
1221+ if (st->codec->codec_id == AV_CODEC_ID_AAC &&
12221222 st->codec->extradata_size > 0)
12231223 st->need_parsing = 0;
1224− if (st->codec->codec_id == CODEC_ID_H264 &&
1224+ if (st->codec->codec_id == AV_CODEC_ID_H264 &&
12251225 st->codec->extradata_size > 0)
12261226 st->need_parsing = 0;
12271227
1228− if (st->codec->codec_id <= CODEC_ID_NONE) {
1229− } else if (st->codec->codec_id < CODEC_ID_FIRST_AUDIO) {
1228+ if (st->codec->codec_id <= AV_CODEC_ID_NONE) {
1229+ } else if (st->codec->codec_id < AV_CODEC_ID_FIRST_AUDIO) {
12301230 st->codec->codec_type = AVMEDIA_TYPE_VIDEO;
1231− } else if (st->codec->codec_id < CODEC_ID_FIRST_SUBTITLE) {
1231+ } else if (st->codec->codec_id < AV_CODEC_ID_FIRST_SUBTITLE) {
12321232 st->codec->codec_type = AVMEDIA_TYPE_AUDIO;
1233− } else if (st->codec->codec_id < CODEC_ID_FIRST_UNKNOWN) {
1233+ } else if (st->codec->codec_id < AV_CODEC_ID_FIRST_UNKNOWN) {
12341234 st->codec->codec_type = AVMEDIA_TYPE_SUBTITLE;
12351235 }
12361236 }
@@ -1261,7 +1261,7 @@ int ff_parse_mpeg2_descriptor(AVFormatContext *fc, AVStream *st, int stream_type · 24 unmodified lines
12611261
12621262 av_dlog(fc, "tag: 0x%02x len=%d\n", desc_tag, desc_len);
12631263
1264− if (st->codec->codec_id == CODEC_ID_NONE &&
1264+ if (st->codec->codec_id == AV_CODEC_ID_NONE &&
12651265 stream_type == STREAM_TYPE_PRIVATE_DATA)
12661266 mpegts_find_stream_type(st, desc_tag, DESC_types);
12671267
@@ -1277,22 +1277,22 @@ int ff_parse_mpeg2_descriptor(AVFormatContext *fc, AVStream *st, int stream_type · 9 unmodified lines
12771277 ffio_init_context(&pb, mp4_descr[i].dec_config_descr,
12781278 mp4_descr[i].dec_config_descr_len, 0, NULL, NULL, NULL, NULL);
12791279 ff_mp4_read_dec_config_descr(fc, st, &pb);
1280− if (st->codec->codec_id == CODEC_ID_AAC &&
1280+ if (st->codec->codec_id == AV_CODEC_ID_AAC &&
12811281 st->codec->extradata_size > 0)
12821282 st->need_parsing = 0;
1283− if (st->codec->codec_id == CODEC_ID_MPEG4SYSTEMS)
1283+ if (st->codec->codec_id == AV_CODEC_ID_MPEG4SYSTEMS)
12841284 mpegts_open_section_filter(ts, pid, m4sl_cb, ts, 1);
12851285 }
12861286 break;
12871287 case 0x1F: /* FMC descriptor */
12881288 get16(pp, desc_end);
1289− if (mp4_descr_count > 0 && st->codec->codec_id == CODEC_ID_AAC_LATM &&
1289+ if (mp4_descr_count > 0 && st->codec->codec_id == AV_CODEC_ID_AAC_LATM &&
12901290 mp4_descr->dec_config_descr_len && mp4_descr->es_id == pid) {
12911291 AVIOContext pb;
12921292 ffio_init_context(&pb, mp4_descr->dec_config_descr,
12931293 mp4_descr->dec_config_descr_len, 0, NULL, NULL, NULL, NULL);
12941294 ff_mp4_read_dec_config_descr(fc, st, &pb);
1295− if (st->codec->codec_id == CODEC_ID_AAC &&
1295+ if (st->codec->codec_id == AV_CODEC_ID_AAC &&
12961296 st->codec->extradata_size > 0)
12971297 st->need_parsing = 0;
12981298 }
@@ -1353,7 +1353,7 @@ int ff_parse_mpeg2_descriptor(AVFormatContext *fc, AVStream *st, int stream_type · 54 unmodified lines
13531353 case 0x05: /* registration descriptor */
13541354 st->codec->codec_tag = bytestream_get_le32(pp);
13551355 av_dlog(fc, "reg_desc=%.4s\n", (char*)&st->codec->codec_tag);
1356− if (st->codec->codec_id == CODEC_ID_NONE)
1356+ if (st->codec->codec_id == AV_CODEC_ID_NONE)
13571357 mpegts_find_stream_type(st, st->codec->codec_tag, REGD_types);
13581358 break;
13591359 default:
@@ -1924,7 +1924,7 @@ static int mpegts_read_header(AVFormatContext *s) · 564 unmodified lines
19241924 goto fail;
19251925 avpriv_set_pts_info(st, 60, 1, 27000000);
19261926 st->codec->codec_type = AVMEDIA_TYPE_DATA;
1927− st->codec->codec_id = CODEC_ID_MPEG2TS;
1927+ st->codec->codec_id = AV_CODEC_ID_MPEG2TS;
19281928
19291929 /* we iterate until we find two PCRs to estimate the bitrate */
19301930 pcr_pid = -1;
libavformat/mpegtsenc.c+21−21
@@ -269,30 +269,30 @@ static void mpegts_write_pmt(AVFormatContext *s, MpegTSService *service) · 268 unmodified lines
269269 MpegTSWriteStream *ts_st = st->priv_data;
270270 AVDictionaryEntry *lang = av_dict_get(st->metadata, "language", NULL,0);
271271 switch(st->codec->codec_id) {
272− case CODEC_ID_MPEG1VIDEO:
273− case CODEC_ID_MPEG2VIDEO:
272+ case AV_CODEC_ID_MPEG1VIDEO:
273+ case AV_CODEC_ID_MPEG2VIDEO:
274274 stream_type = STREAM_TYPE_VIDEO_MPEG2;
275275 break;
276− case CODEC_ID_MPEG4:
276+ case AV_CODEC_ID_MPEG4:
277277 stream_type = STREAM_TYPE_VIDEO_MPEG4;
278278 break;
279− case CODEC_ID_H264:
279+ case AV_CODEC_ID_H264:
280280 stream_type = STREAM_TYPE_VIDEO_H264;
281281 break;
282− case CODEC_ID_DIRAC:
282+ case AV_CODEC_ID_DIRAC:
283283 stream_type = STREAM_TYPE_VIDEO_DIRAC;
284284 break;
285− case CODEC_ID_MP2:
286− case CODEC_ID_MP3:
285+ case AV_CODEC_ID_MP2:
286+ case AV_CODEC_ID_MP3:
287287 stream_type = STREAM_TYPE_AUDIO_MPEG1;
288288 break;
289− case CODEC_ID_AAC:
289+ case AV_CODEC_ID_AAC:
290290 stream_type = (ts->flags & MPEGTS_FLAG_AAC_LATM) ? STREAM_TYPE_AUDIO_AAC_LATM : STREAM_TYPE_AUDIO_AAC;
291291 break;
292− case CODEC_ID_AAC_LATM:
292+ case AV_CODEC_ID_AAC_LATM:
293293 stream_type = STREAM_TYPE_AUDIO_AAC_LATM;
294294 break;
295− case CODEC_ID_AC3:
295+ case AV_CODEC_ID_AC3:
296296 stream_type = STREAM_TYPE_AUDIO_AC3;
297297 break;
298298 default:
@@ -556,7 +556,7 @@ static int mpegts_write_header(AVFormatContext *s) · 257 unmodified lines
556556 service->pcr_pid = ts_st->pid;
557557 pcr_st = st;
558558 }
559− if (st->codec->codec_id == CODEC_ID_AAC &&
559+ if (st->codec->codec_id == AV_CODEC_ID_AAC &&
560560 st->codec->extradata_size > 0)
561561 {
562562 AVStream *ast;
@@ -861,14 +861,14 @@ static void mpegts_write_pes(AVFormatContext *s, AVStream *st, · 298 unmodified lines
861861 *q++ = 0x01;
862862 private_code = 0;
863863 if (st->codec->codec_type == AVMEDIA_TYPE_VIDEO) {
864− if (st->codec->codec_id == CODEC_ID_DIRAC) {
864+ if (st->codec->codec_id == AV_CODEC_ID_DIRAC) {
865865 *q++ = 0xfd;
866866 } else
867867 *q++ = 0xe0;
868868 } else if (st->codec->codec_type == AVMEDIA_TYPE_AUDIO &&
869− (st->codec->codec_id == CODEC_ID_MP2 ||
870− st->codec->codec_id == CODEC_ID_MP3 ||
871− st->codec->codec_id == CODEC_ID_AAC)) {
869+ (st->codec->codec_id == AV_CODEC_ID_MP2 ||
870+ st->codec->codec_id == AV_CODEC_ID_MP3 ||
871+ st->codec->codec_id == AV_CODEC_ID_AAC)) {
872872 *q++ = 0xc0;
873873 } else {
874874 *q++ = 0xbd;
@@ -887,7 +887,7 @@ static void mpegts_write_pes(AVFormatContext *s, AVStream *st, · 12 unmodified lines
887887 flags |= 0x40;
888888 }
889889 if (st->codec->codec_type == AVMEDIA_TYPE_VIDEO &&
890− st->codec->codec_id == CODEC_ID_DIRAC) {
890+ st->codec->codec_id == AV_CODEC_ID_DIRAC) {
891891 /* set PES_extension_flag */
892892 pes_extension = 1;
893893 flags |= 0x01;
@@ -921,7 +921,7 @@ static void mpegts_write_pes(AVFormatContext *s, AVStream *st, · 27 unmodified lines
921921 write_pts(q, 1, dts);
922922 q += 5;
923923 }
924− if (pes_extension && st->codec->codec_id == CODEC_ID_DIRAC) {
924+ if (pes_extension && st->codec->codec_id == AV_CODEC_ID_DIRAC) {
925925 flags = 0x01; /* set PES_extension_flag_2 */
926926 *q++ = flags;
927927 *q++ = 0x80 | 0x01; /* marker bit + extension length */
@@ -1005,7 +1005,7 @@ static int mpegts_write_packet_internal(AVFormatContext *s, AVPacket *pkt) · 77 unmodified lines
10051005 }
10061006 ts_st->first_pts_check = 0;
10071007
1008− if (st->codec->codec_id == CODEC_ID_H264) {
1008+ if (st->codec->codec_id == AV_CODEC_ID_H264) {
10091009 const uint8_t *p = buf, *buf_end = p+size;
10101010 uint32_t state = -1;
10111011
@@ -1032,7 +1032,7 @@ static int mpegts_write_packet_internal(AVFormatContext *s, AVPacket *pkt) · 20 unmodified lines
10321032 buf = data;
10331033 size = pkt->size+6;
10341034 }
1035− } else if (st->codec->codec_id == CODEC_ID_AAC) {
1035+ } else if (st->codec->codec_id == AV_CODEC_ID_AAC) {
10361036 if (pkt->size < 2) {
10371037 av_log(s, AV_LOG_ERROR, "AAC packet too short\n");
10381038 return AVERROR(EINVAL);
@@ -1166,8 +1166,8 @@ AVOutputFormat ff_mpegts_muxer = { · 127 unmodified lines
11661166 .mime_type = "video/x-mpegts",
11671167 .extensions = "ts,m2t",
11681168 .priv_data_size = sizeof(MpegTSWrite),
1169− .audio_codec = CODEC_ID_MP2,
1170− .video_codec = CODEC_ID_MPEG2VIDEO,
1169+ .audio_codec = AV_CODEC_ID_MP2,
1170+ .video_codec = AV_CODEC_ID_MPEG2VIDEO,
11711171 .write_header = mpegts_write_header,
11721172 .write_packet = mpegts_write_packet,
11731173 .write_trailer = mpegts_write_end,
libavformat/mpegvideodec.c+1−1
@@ -55,4 +55,4 @@ static int mpegvideo_probe(AVProbeData *p) · 54 unmodified lines
5555 return 0;
5656 }
5757
58−FF_DEF_RAWVIDEO_DEMUXER(mpegvideo, "raw MPEG video", mpegvideo_probe, NULL, CODEC_ID_MPEG1VIDEO)
58+FF_DEF_RAWVIDEO_DEMUXER(mpegvideo, "raw MPEG video", mpegvideo_probe, NULL, AV_CODEC_ID_MPEG1VIDEO)
libavformat/mpjpeg.c+2−2
@@ -58,8 +58,8 @@ AVOutputFormat ff_mpjpeg_muxer = { · 57 unmodified lines
5858 .long_name = NULL_IF_CONFIG_SMALL("MIME multipart JPEG"),
5959 .mime_type = "multipart/x-mixed-replace;boundary=" BOUNDARY_TAG,
6060 .extensions = "mjpg",
61− .audio_codec = CODEC_ID_NONE,
62− .video_codec = CODEC_ID_MJPEG,
61+ .audio_codec = AV_CODEC_ID_NONE,
62+ .video_codec = AV_CODEC_ID_MJPEG,
6363 .write_header = mpjpeg_write_header,
6464 .write_packet = mpjpeg_write_packet,
6565 .write_trailer = mpjpeg_write_trailer,
libavformat/msnwc_tcp.c+1−1
@@ -82,7 +82,7 @@ static int msnwc_tcp_read_header(AVFormatContext *ctx) · 81 unmodified lines
8282
8383 codec = st->codec;
8484 codec->codec_type = AVMEDIA_TYPE_VIDEO;
85− codec->codec_id = CODEC_ID_MIMIC;
85+ codec->codec_id = AV_CODEC_ID_MIMIC;
8686 codec->codec_tag = MKTAG('M', 'L', '2', '0');
8787
8888 avpriv_set_pts_info(st, 32, 1, 1000);
libavformat/mtv.c+2−2
@@ -129,7 +129,7 @@ static int mtv_read_header(AVFormatContext *s) · 128 unmodified lines
129129
130130 avpriv_set_pts_info(st, 64, 1, mtv->video_fps);
131131 st->codec->codec_type = AVMEDIA_TYPE_VIDEO;
132− st->codec->codec_id = CODEC_ID_RAWVIDEO;
132+ st->codec->codec_id = AV_CODEC_ID_RAWVIDEO;
133133 st->codec->pix_fmt = PIX_FMT_RGB565BE;
134134 st->codec->width = mtv->img_width;
135135 st->codec->height = mtv->img_height;
@@ -145,7 +145,7 @@ static int mtv_read_header(AVFormatContext *s) · 9 unmodified lines
145145
146146 avpriv_set_pts_info(st, 64, 1, AUDIO_SAMPLING_RATE);
147147 st->codec->codec_type = AVMEDIA_TYPE_AUDIO;
148− st->codec->codec_id = CODEC_ID_MP3;
148+ st->codec->codec_id = AV_CODEC_ID_MP3;
149149 st->codec->bit_rate = mtv->audio_br;
150150 st->need_parsing = AVSTREAM_PARSE_FULL;
151151
libavformat/mvi.c+2−2
@@ -79,14 +79,14 @@ static int read_header(AVFormatContext *s) · 78 unmodified lines
7979
8080 avpriv_set_pts_info(ast, 64, 1, ast->codec->sample_rate);
8181 ast->codec->codec_type = AVMEDIA_TYPE_AUDIO;
82− ast->codec->codec_id = CODEC_ID_PCM_U8;
82+ ast->codec->codec_id = AV_CODEC_ID_PCM_U8;
8383 ast->codec->channels = 1;
8484 ast->codec->bits_per_coded_sample = 8;
8585 ast->codec->bit_rate = ast->codec->sample_rate * 8;
8686
8787 avpriv_set_pts_info(vst, 64, msecs_per_frame, 1000000);
8888 vst->codec->codec_type = AVMEDIA_TYPE_VIDEO;
89− vst->codec->codec_id = CODEC_ID_MOTIONPIXELS;
89+ vst->codec->codec_id = AV_CODEC_ID_MOTIONPIXELS;
9090
9191 mvi->get_int = (vst->codec->width * vst->codec->height < (1 << 16)) ? avio_rl16 : avio_rl24;
9292
libavformat/mxf.c+19−19
@@ -33,26 +33,26 @@ const MXFCodecUL ff_mxf_data_definition_uls[] = { · 32 unmodified lines
3333
3434 const MXFCodecUL ff_mxf_codec_uls[] = {
3535 /* PictureEssenceCoding */
36− { { 0x06,0x0E,0x2B,0x34,0x04,0x01,0x01,0x03,0x04,0x01,0x02,0x02,0x01,0x01,0x11,0x00 }, 14, CODEC_ID_MPEG2VIDEO }, /* MP@ML Long GoP */
37− { { 0x06,0x0E,0x2B,0x34,0x04,0x01,0x01,0x01,0x04,0x01,0x02,0x02,0x01,0x02,0x01,0x01 }, 14, CODEC_ID_MPEG2VIDEO }, /* D-10 50Mbps PAL */
38− { { 0x06,0x0E,0x2B,0x34,0x04,0x01,0x01,0x03,0x04,0x01,0x02,0x02,0x01,0x03,0x03,0x00 }, 14, CODEC_ID_MPEG2VIDEO }, /* MP@HL Long GoP */
39− { { 0x06,0x0E,0x2B,0x34,0x04,0x01,0x01,0x03,0x04,0x01,0x02,0x02,0x01,0x04,0x02,0x00 }, 14, CODEC_ID_MPEG2VIDEO }, /* 422P@HL I-Frame */
40− { { 0x06,0x0E,0x2B,0x34,0x04,0x01,0x01,0x03,0x04,0x01,0x02,0x02,0x01,0x20,0x02,0x03 }, 14, CODEC_ID_MPEG4 }, /* XDCAM proxy_pal030926.mxf */
41− { { 0x06,0x0E,0x2B,0x34,0x04,0x01,0x01,0x01,0x04,0x01,0x02,0x02,0x02,0x01,0x02,0x00 }, 13, CODEC_ID_DVVIDEO }, /* DV25 IEC PAL */
42− { { 0x06,0x0E,0x2B,0x34,0x04,0x01,0x01,0x07,0x04,0x01,0x02,0x02,0x03,0x01,0x01,0x00 }, 14, CODEC_ID_JPEG2000 }, /* JPEG2000 Codestream */
43− { { 0x06,0x0E,0x2B,0x34,0x04,0x01,0x01,0x01,0x04,0x01,0x02,0x01,0x7F,0x00,0x00,0x00 }, 13, CODEC_ID_RAWVIDEO }, /* Uncompressed */
44− { { 0x06,0x0E,0x2B,0x34,0x04,0x01,0x01,0x01,0x04,0x01,0x02,0x02,0x03,0x02,0x00,0x00 }, 14, CODEC_ID_DNXHD }, /* SMPTE VC-3/DNxHD */
45− { { 0x06,0x0E,0x2B,0x34,0x04,0x01,0x01,0x0A,0x04,0x01,0x02,0x02,0x01,0x32,0x00,0x00 }, 14, CODEC_ID_H264 }, /* H.264/MPEG-4 AVC Intra */
46− { { 0x06,0x0E,0x2B,0x34,0x04,0x01,0x01,0x0A,0x04,0x01,0x02,0x01,0x01,0x02,0x02,0x00 }, 15, CODEC_ID_V210 }, /* V210 */
36+ { { 0x06,0x0E,0x2B,0x34,0x04,0x01,0x01,0x03,0x04,0x01,0x02,0x02,0x01,0x01,0x11,0x00 }, 14, AV_CODEC_ID_MPEG2VIDEO }, /* MP@ML Long GoP */
37+ { { 0x06,0x0E,0x2B,0x34,0x04,0x01,0x01,0x01,0x04,0x01,0x02,0x02,0x01,0x02,0x01,0x01 }, 14, AV_CODEC_ID_MPEG2VIDEO }, /* D-10 50Mbps PAL */
38+ { { 0x06,0x0E,0x2B,0x34,0x04,0x01,0x01,0x03,0x04,0x01,0x02,0x02,0x01,0x03,0x03,0x00 }, 14, AV_CODEC_ID_MPEG2VIDEO }, /* MP@HL Long GoP */
39+ { { 0x06,0x0E,0x2B,0x34,0x04,0x01,0x01,0x03,0x04,0x01,0x02,0x02,0x01,0x04,0x02,0x00 }, 14, AV_CODEC_ID_MPEG2VIDEO }, /* 422P@HL I-Frame */
40+ { { 0x06,0x0E,0x2B,0x34,0x04,0x01,0x01,0x03,0x04,0x01,0x02,0x02,0x01,0x20,0x02,0x03 }, 14, AV_CODEC_ID_MPEG4 }, /* XDCAM proxy_pal030926.mxf */
41+ { { 0x06,0x0E,0x2B,0x34,0x04,0x01,0x01,0x01,0x04,0x01,0x02,0x02,0x02,0x01,0x02,0x00 }, 13, AV_CODEC_ID_DVVIDEO }, /* DV25 IEC PAL */
42+ { { 0x06,0x0E,0x2B,0x34,0x04,0x01,0x01,0x07,0x04,0x01,0x02,0x02,0x03,0x01,0x01,0x00 }, 14, AV_CODEC_ID_JPEG2000 }, /* JPEG2000 Codestream */
43+ { { 0x06,0x0E,0x2B,0x34,0x04,0x01,0x01,0x01,0x04,0x01,0x02,0x01,0x7F,0x00,0x00,0x00 }, 13, AV_CODEC_ID_RAWVIDEO }, /* Uncompressed */
44+ { { 0x06,0x0E,0x2B,0x34,0x04,0x01,0x01,0x01,0x04,0x01,0x02,0x02,0x03,0x02,0x00,0x00 }, 14, AV_CODEC_ID_DNXHD }, /* SMPTE VC-3/DNxHD */
45+ { { 0x06,0x0E,0x2B,0x34,0x04,0x01,0x01,0x0A,0x04,0x01,0x02,0x02,0x01,0x32,0x00,0x00 }, 14, AV_CODEC_ID_H264 }, /* H.264/MPEG-4 AVC Intra */
46+ { { 0x06,0x0E,0x2B,0x34,0x04,0x01,0x01,0x0A,0x04,0x01,0x02,0x01,0x01,0x02,0x02,0x00 }, 15, AV_CODEC_ID_V210 }, /* V210 */
4747 /* SoundEssenceCompression */
48− { { 0x06,0x0E,0x2B,0x34,0x04,0x01,0x01,0x01,0x04,0x02,0x02,0x01,0x00,0x00,0x00,0x00 }, 13, CODEC_ID_PCM_S16LE }, /* Uncompressed */
49− { { 0x06,0x0E,0x2B,0x34,0x04,0x01,0x01,0x01,0x04,0x02,0x02,0x01,0x7F,0x00,0x00,0x00 }, 13, CODEC_ID_PCM_S16LE },
50− { { 0x06,0x0E,0x2B,0x34,0x04,0x01,0x01,0x07,0x04,0x02,0x02,0x01,0x7E,0x00,0x00,0x00 }, 13, CODEC_ID_PCM_S16BE }, /* From Omneon MXF file */
51− { { 0x06,0x0E,0x2B,0x34,0x04,0x01,0x01,0x04,0x04,0x02,0x02,0x02,0x03,0x01,0x01,0x00 }, 15, CODEC_ID_PCM_ALAW }, /* XDCAM Proxy C0023S01.mxf */
52− { { 0x06,0x0E,0x2B,0x34,0x04,0x01,0x01,0x01,0x04,0x02,0x02,0x02,0x03,0x02,0x01,0x00 }, 15, CODEC_ID_AC3 },
53− { { 0x06,0x0E,0x2B,0x34,0x04,0x01,0x01,0x01,0x04,0x02,0x02,0x02,0x03,0x02,0x05,0x00 }, 15, CODEC_ID_MP2 }, /* MP2 or MP3 */
54− //{ { 0x06,0x0E,0x2B,0x34,0x04,0x01,0x01,0x01,0x04,0x02,0x02,0x02,0x03,0x02,0x1C,0x00 }, 15, CODEC_ID_DOLBY_E }, /* Dolby-E */
55− { { 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00 }, 0, CODEC_ID_NONE },
48+ { { 0x06,0x0E,0x2B,0x34,0x04,0x01,0x01,0x01,0x04,0x02,0x02,0x01,0x00,0x00,0x00,0x00 }, 13, AV_CODEC_ID_PCM_S16LE }, /* Uncompressed */
49+ { { 0x06,0x0E,0x2B,0x34,0x04,0x01,0x01,0x01,0x04,0x02,0x02,0x01,0x7F,0x00,0x00,0x00 }, 13, AV_CODEC_ID_PCM_S16LE },
50+ { { 0x06,0x0E,0x2B,0x34,0x04,0x01,0x01,0x07,0x04,0x02,0x02,0x01,0x7E,0x00,0x00,0x00 }, 13, AV_CODEC_ID_PCM_S16BE }, /* From Omneon MXF file */
51+ { { 0x06,0x0E,0x2B,0x34,0x04,0x01,0x01,0x04,0x04,0x02,0x02,0x02,0x03,0x01,0x01,0x00 }, 15, AV_CODEC_ID_PCM_ALAW }, /* XDCAM Proxy C0023S01.mxf */
52+ { { 0x06,0x0E,0x2B,0x34,0x04,0x01,0x01,0x01,0x04,0x02,0x02,0x02,0x03,0x02,0x01,0x00 }, 15, AV_CODEC_ID_AC3 },
53+ { { 0x06,0x0E,0x2B,0x34,0x04,0x01,0x01,0x01,0x04,0x02,0x02,0x02,0x03,0x02,0x05,0x00 }, 15, AV_CODEC_ID_MP2 }, /* MP2 or MP3 */
54+ //{ { 0x06,0x0E,0x2B,0x34,0x04,0x01,0x01,0x01,0x04,0x02,0x02,0x02,0x03,0x02,0x1C,0x00 }, 15, AV_CODEC_ID_DOLBY_E }, /* Dolby-E */
55+ { { 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00 }, 0, AV_CODEC_ID_NONE },
5656 };
5757
5858 const MXFCodecUL ff_mxf_pixel_format_uls[] = {
libavformat/mxfdec.c+28−28
@@ -912,31 +912,31 @@ static void *mxf_resolve_strong_ref(MXFContext *mxf, UID *strong_ref, enum MXFMe · 911 unmodified lines
912912
913913 static const MXFCodecUL mxf_picture_essence_container_uls[] = {
914914 // video essence container uls
915− { { 0x06,0x0E,0x2B,0x34,0x04,0x01,0x01,0x02,0x0D,0x01,0x03,0x01,0x02,0x04,0x60,0x01 }, 14, CODEC_ID_MPEG2VIDEO }, /* MPEG-ES Frame wrapped */
916− { { 0x06,0x0E,0x2B,0x34,0x04,0x01,0x01,0x01,0x0D,0x01,0x03,0x01,0x02,0x02,0x41,0x01 }, 14, CODEC_ID_DVVIDEO }, /* DV 625 25mbps */
917− { { 0x06,0x0E,0x2B,0x34,0x04,0x01,0x01,0x01,0x0D,0x01,0x03,0x01,0x02,0x05,0x00,0x00 }, 14, CODEC_ID_RAWVIDEO }, /* Uncompressed Picture */
918− { { 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00 }, 0, CODEC_ID_NONE },
915+ { { 0x06,0x0E,0x2B,0x34,0x04,0x01,0x01,0x02,0x0D,0x01,0x03,0x01,0x02,0x04,0x60,0x01 }, 14, AV_CODEC_ID_MPEG2VIDEO }, /* MPEG-ES Frame wrapped */
916+ { { 0x06,0x0E,0x2B,0x34,0x04,0x01,0x01,0x01,0x0D,0x01,0x03,0x01,0x02,0x02,0x41,0x01 }, 14, AV_CODEC_ID_DVVIDEO }, /* DV 625 25mbps */
917+ { { 0x06,0x0E,0x2B,0x34,0x04,0x01,0x01,0x01,0x0D,0x01,0x03,0x01,0x02,0x05,0x00,0x00 }, 14, AV_CODEC_ID_RAWVIDEO }, /* Uncompressed Picture */
918+ { { 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00 }, 0, AV_CODEC_ID_NONE },
919919 };
920920
921921 /* EC ULs for intra-only formats */
922922 static const MXFCodecUL mxf_intra_only_essence_container_uls[] = {
923− { { 0x06,0x0E,0x2B,0x34,0x04,0x01,0x01,0x01,0x0D,0x01,0x03,0x01,0x02,0x01,0x00,0x00 }, 14, CODEC_ID_MPEG2VIDEO }, /* MXF-GC SMPTE D-10 Mappings */
924− { { 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00 }, 0, CODEC_ID_NONE },
923+ { { 0x06,0x0E,0x2B,0x34,0x04,0x01,0x01,0x01,0x0D,0x01,0x03,0x01,0x02,0x01,0x00,0x00 }, 14, AV_CODEC_ID_MPEG2VIDEO }, /* MXF-GC SMPTE D-10 Mappings */
924+ { { 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00 }, 0, AV_CODEC_ID_NONE },
925925 };
926926
927927 /* intra-only PictureEssenceCoding ULs, where no corresponding EC UL exists */
928928 static const MXFCodecUL mxf_intra_only_picture_essence_coding_uls[] = {
929− { { 0x06,0x0E,0x2B,0x34,0x04,0x01,0x01,0x0A,0x04,0x01,0x02,0x02,0x01,0x32,0x00,0x00 }, 14, CODEC_ID_H264 }, /* H.264/MPEG-4 AVC Intra Profiles */
930− { { 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00 }, 0, CODEC_ID_NONE },
929+ { { 0x06,0x0E,0x2B,0x34,0x04,0x01,0x01,0x0A,0x04,0x01,0x02,0x02,0x01,0x32,0x00,0x00 }, 14, AV_CODEC_ID_H264 }, /* H.264/MPEG-4 AVC Intra Profiles */
930+ { { 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00 }, 0, AV_CODEC_ID_NONE },
931931 };
932932
933933 static const MXFCodecUL mxf_sound_essence_container_uls[] = {
934934 // sound essence container uls
935− { { 0x06,0x0E,0x2B,0x34,0x04,0x01,0x01,0x01,0x0D,0x01,0x03,0x01,0x02,0x06,0x01,0x00 }, 14, CODEC_ID_PCM_S16LE }, /* BWF Frame wrapped */
936− { { 0x06,0x0E,0x2B,0x34,0x04,0x01,0x01,0x02,0x0D,0x01,0x03,0x01,0x02,0x04,0x40,0x01 }, 14, CODEC_ID_MP2 }, /* MPEG-ES Frame wrapped, 0x40 ??? stream id */
937− { { 0x06,0x0E,0x2B,0x34,0x04,0x01,0x01,0x01,0x0D,0x01,0x03,0x01,0x02,0x01,0x01,0x01 }, 14, CODEC_ID_PCM_S16LE }, /* D-10 Mapping 50Mbps PAL Extended Template */
938− { { 0x06,0x0E,0x2B,0x34,0x01,0x01,0x01,0xFF,0x4B,0x46,0x41,0x41,0x00,0x0D,0x4D,0x4F }, 14, CODEC_ID_PCM_S16LE }, /* 0001GL00.MXF.A1.mxf_opatom.mxf */
939− { { 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00 }, 0, CODEC_ID_NONE },
935+ { { 0x06,0x0E,0x2B,0x34,0x04,0x01,0x01,0x01,0x0D,0x01,0x03,0x01,0x02,0x06,0x01,0x00 }, 14, AV_CODEC_ID_PCM_S16LE }, /* BWF Frame wrapped */
936+ { { 0x06,0x0E,0x2B,0x34,0x04,0x01,0x01,0x02,0x0D,0x01,0x03,0x01,0x02,0x04,0x40,0x01 }, 14, AV_CODEC_ID_MP2 }, /* MPEG-ES Frame wrapped, 0x40 ??? stream id */
937+ { { 0x06,0x0E,0x2B,0x34,0x04,0x01,0x01,0x01,0x0D,0x01,0x03,0x01,0x02,0x01,0x01,0x01 }, 14, AV_CODEC_ID_PCM_S16LE }, /* D-10 Mapping 50Mbps PAL Extended Template */
938+ { { 0x06,0x0E,0x2B,0x34,0x01,0x01,0x01,0xFF,0x4B,0x46,0x41,0x41,0x00,0x0D,0x4D,0x4F }, 14, AV_CODEC_ID_PCM_S16LE }, /* 0001GL00.MXF.A1.mxf_opatom.mxf */
939+ { { 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00 }, 0, AV_CODEC_ID_NONE },
940940 };
941941
942942 static int mxf_get_sorted_table_segments(MXFContext *mxf, int *nb_sorted_segments, MXFIndexTableSegment ***sorted_segments)
@@ -1305,9 +1305,9 @@ finish_decoding_index: · 362 unmodified lines
13051305 static int mxf_is_intra_only(MXFDescriptor *d)
13061306 {
13071307 return mxf_get_codec_ul(mxf_intra_only_essence_container_uls,
1308− &d->essence_container_ul)->id != CODEC_ID_NONE ||
1308+ &d->essence_container_ul)->id != AV_CODEC_ID_NONE ||
13091309 mxf_get_codec_ul(mxf_intra_only_picture_essence_coding_uls,
1310− &d->essence_codec_ul)->id != CODEC_ID_NONE;
1310+ &d->essence_codec_ul)->id != AV_CODEC_ID_NONE;
13111311 }
13121312
13131313 static int mxf_parse_structural_metadata(MXFContext *mxf)
@@ -1468,7 +1468,7 @@ static int mxf_parse_structural_metadata(MXFContext *mxf) · 154 unmodified lines
14681468 if (st->codec->codec_type == AVMEDIA_TYPE_VIDEO) {
14691469 source_track->intra_only = mxf_is_intra_only(descriptor);
14701470 container_ul = mxf_get_codec_ul(mxf_picture_essence_container_uls, essence_container_ul);
1471− if (st->codec->codec_id == CODEC_ID_NONE)
1471+ if (st->codec->codec_id == AV_CODEC_ID_NONE)
14721472 st->codec->codec_id = container_ul->id;
14731473 st->codec->width = descriptor->width;
14741474 /* Field height, not frame height */
@@ -1499,7 +1499,7 @@ static int mxf_parse_structural_metadata(MXFContext *mxf) · 24 unmodified lines
14991499 "Unknown frame layout type: %d\n",
15001500 descriptor->frame_layout);
15011501 }
1502− if (st->codec->codec_id == CODEC_ID_RAWVIDEO) {
1502+ if (st->codec->codec_id == AV_CODEC_ID_RAWVIDEO) {
15031503 st->codec->pix_fmt = descriptor->pix_fmt;
15041504 if (st->codec->pix_fmt == PIX_FMT_NONE) {
15051505 pix_fmt_ul = mxf_get_codec_ul(ff_mxf_pixel_format_uls,
@@ -1519,7 +1519,7 @@ static int mxf_parse_structural_metadata(MXFContext *mxf) · 13 unmodified lines
15191519 st->need_parsing = AVSTREAM_PARSE_HEADERS;
15201520 } else if (st->codec->codec_type == AVMEDIA_TYPE_AUDIO) {
15211521 container_ul = mxf_get_codec_ul(mxf_sound_essence_container_uls, essence_container_ul);
1522− if (st->codec->codec_id == CODEC_ID_NONE)
1522+ if (st->codec->codec_id == AV_CODEC_ID_NONE)
15231523 st->codec->codec_id = container_ul->id;
15241524 st->codec->channels = descriptor->channels;
15251525 st->codec->bits_per_coded_sample = descriptor->bits_per_sample;
@@ -1527,18 +1527,18 @@ static int mxf_parse_structural_metadata(MXFContext *mxf) · 1 unmodified line
15271527 if (descriptor->sample_rate.den > 0)
15281528 st->codec->sample_rate = descriptor->sample_rate.num / descriptor->sample_rate.den;
15291529
1530− /* TODO: implement CODEC_ID_RAWAUDIO */
1531− if (st->codec->codec_id == CODEC_ID_PCM_S16LE) {
1530+ /* TODO: implement AV_CODEC_ID_RAWAUDIO */
1531+ if (st->codec->codec_id == AV_CODEC_ID_PCM_S16LE) {
15321532 if (descriptor->bits_per_sample > 16 && descriptor->bits_per_sample <= 24)
1533− st->codec->codec_id = CODEC_ID_PCM_S24LE;
1533+ st->codec->codec_id = AV_CODEC_ID_PCM_S24LE;
15341534 else if (descriptor->bits_per_sample == 32)
1535− st->codec->codec_id = CODEC_ID_PCM_S32LE;
1536− } else if (st->codec->codec_id == CODEC_ID_PCM_S16BE) {
1535+ st->codec->codec_id = AV_CODEC_ID_PCM_S32LE;
1536+ } else if (st->codec->codec_id == AV_CODEC_ID_PCM_S16BE) {
15371537 if (descriptor->bits_per_sample > 16 && descriptor->bits_per_sample <= 24)
1538− st->codec->codec_id = CODEC_ID_PCM_S24BE;
1538+ st->codec->codec_id = AV_CODEC_ID_PCM_S24BE;
15391539 else if (descriptor->bits_per_sample == 32)
1540− st->codec->codec_id = CODEC_ID_PCM_S32BE;
1541− } else if (st->codec->codec_id == CODEC_ID_MP2) {
1540+ st->codec->codec_id = AV_CODEC_ID_PCM_S32BE;
1541+ } else if (st->codec->codec_id == AV_CODEC_ID_MP2) {
15421542 st->need_parsing = AVSTREAM_PARSE_FULL;
15431543 }
15441544 }
@@ -1779,10 +1779,10 @@ static inline void compute_partition_essence_offset(AVFormatContext *s, · 234 unmodified lines
17791779 }
17801780 }
17811781
1782−static int is_pcm(enum CodecID codec_id)
1782+static int is_pcm(enum AVCodecID codec_id)
17831783 {
17841784 /* we only care about "normal" PCM codecs until we get samples */
1785− return codec_id >= CODEC_ID_PCM_S16LE && codec_id < CODEC_ID_PCM_S24DAUD;
1785+ return codec_id >= AV_CODEC_ID_PCM_S16LE && codec_id < AV_CODEC_ID_PCM_S24DAUD;
17861786 }
17871787
17881788 /**
libavformat/mxfenc.c+14−14
@@ -82,13 +82,13 @@ typedef struct { · 81 unmodified lines
8282 } MXFContainerEssenceEntry;
8383
8484 static const struct {
85− enum CodecID id;
85+ enum AVCodecID id;
8686 int index;
8787 } mxf_essence_mappings[] = {
88− { CODEC_ID_MPEG2VIDEO, 0 },
89− { CODEC_ID_PCM_S24LE, 1 },
90− { CODEC_ID_PCM_S16LE, 1 },
91− { CODEC_ID_NONE }
88+ { AV_CODEC_ID_MPEG2VIDEO, 0 },
89+ { AV_CODEC_ID_PCM_S24LE, 1 },
90+ { AV_CODEC_ID_PCM_S16LE, 1 },
91+ { AV_CODEC_ID_NONE }
9292 };
9393
9494 static void mxf_write_wav_desc(AVFormatContext *s, AVStream *st);
@@ -366,7 +366,7 @@ static void klv_encode_ber4_length(AVIOContext *pb, int len) · 271 unmodified lines
366366 /*
367367 * Get essence container ul index
368368 */
369−static int mxf_get_essence_container_ul_index(enum CodecID id)
369+static int mxf_get_essence_container_ul_index(enum AVCodecID id)
370370 {
371371 int i;
372372 for (i = 0; mxf_essence_mappings[i].id; i++)
@@ -1476,8 +1476,8 @@ static int mxf_write_header(AVFormatContext *s) · 1103 unmodified lines
14761476 av_log(s, AV_LOG_ERROR, "MXF D-10 only support one audio track\n");
14771477 return -1;
14781478 }
1479− if (st->codec->codec_id != CODEC_ID_PCM_S16LE &&
1480− st->codec->codec_id != CODEC_ID_PCM_S24LE) {
1479+ if (st->codec->codec_id != AV_CODEC_ID_PCM_S16LE &&
1480+ st->codec->codec_id != AV_CODEC_ID_PCM_S24LE) {
14811481 av_log(s, AV_LOG_ERROR, "MXF D-10 only support 16 or 24 bits le audio\n");
14821482 }
14831483 sc->index = ((MXFStreamContext*)s->streams[0]->priv_data)->index + 1;
@@ -1652,7 +1652,7 @@ static void mxf_write_d10_audio_packet(AVFormatContext *s, AVStream *st, AVPacke · 168 unmodified lines
16521652 while (samples < end) {
16531653 for (i = 0; i < st->codec->channels; i++) {
16541654 uint32_t sample;
1655− if (st->codec->codec_id == CODEC_ID_PCM_S24LE) {
1655+ if (st->codec->codec_id == AV_CODEC_ID_PCM_S24LE) {
16561656 sample = AV_RL24(samples)<< 4;
16571657 samples += 3;
16581658 } else {
@@ -1683,7 +1683,7 @@ static int mxf_write_packet(AVFormatContext *s, AVPacket *pkt) · 24 unmodified lines
16831683 }
16841684 }
16851685
1686− if (st->codec->codec_id == CODEC_ID_MPEG2VIDEO) {
1686+ if (st->codec->codec_id == AV_CODEC_ID_MPEG2VIDEO) {
16871687 if (!mxf_parse_mpeg2_frame(s, st, pkt, &ie)) {
16881688 av_log(s, AV_LOG_ERROR, "could not get mpeg2 profile and level\n");
16891689 return -1;
@@ -1894,8 +1894,8 @@ AVOutputFormat ff_mxf_muxer = { · 204 unmodified lines
18941894 .mime_type = "application/mxf",
18951895 .extensions = "mxf",
18961896 .priv_data_size = sizeof(MXFContext),
1897− .audio_codec = CODEC_ID_PCM_S16LE,
1898− .video_codec = CODEC_ID_MPEG2VIDEO,
1897+ .audio_codec = AV_CODEC_ID_PCM_S16LE,
1898+ .video_codec = AV_CODEC_ID_MPEG2VIDEO,
18991899 .write_header = mxf_write_header,
19001900 .write_packet = mxf_write_packet,
19011901 .write_trailer = mxf_write_footer,
@@ -1908,8 +1908,8 @@ AVOutputFormat ff_mxf_d10_muxer = { · 6 unmodified lines
19081908 .long_name = NULL_IF_CONFIG_SMALL("MXF (Material eXchange Format) D-10 Mapping"),
19091909 .mime_type = "application/mxf",
19101910 .priv_data_size = sizeof(MXFContext),
1911− .audio_codec = CODEC_ID_PCM_S16LE,
1912− .video_codec = CODEC_ID_MPEG2VIDEO,
1911+ .audio_codec = AV_CODEC_ID_PCM_S16LE,
1912+ .video_codec = AV_CODEC_ID_MPEG2VIDEO,
19131913 .write_header = mxf_write_header,
19141914 .write_packet = mxf_write_packet,
19151915 .write_trailer = mxf_write_footer,
libavformat/mxg.c+2−2
@@ -47,14 +47,14 @@ static int mxg_read_header(AVFormatContext *s) · 46 unmodified lines
4747 if (!video_st)
4848 return AVERROR(ENOMEM);
4949 video_st->codec->codec_type = AVMEDIA_TYPE_VIDEO;
50− video_st->codec->codec_id = CODEC_ID_MXPEG;
50+ video_st->codec->codec_id = AV_CODEC_ID_MXPEG;
5151 avpriv_set_pts_info(video_st, 64, 1, 1000000);
5252
5353 audio_st = avformat_new_stream(s, NULL);
5454 if (!audio_st)
5555 return AVERROR(ENOMEM);
5656 audio_st->codec->codec_type = AVMEDIA_TYPE_AUDIO;
57− audio_st->codec->codec_id = CODEC_ID_PCM_ALAW;
57+ audio_st->codec->codec_id = AV_CODEC_ID_PCM_ALAW;
5858 audio_st->codec->channels = 1;
5959 audio_st->codec->sample_rate = 8000;
6060 audio_st->codec->bits_per_coded_sample = 8;
libavformat/ncdec.c+1−1
@@ -52,7 +52,7 @@ static int nc_read_header(AVFormatContext *s) · 51 unmodified lines
5252 return AVERROR(ENOMEM);
5353
5454 st->codec->codec_type = AVMEDIA_TYPE_VIDEO;
55− st->codec->codec_id = CODEC_ID_MPEG4;
55+ st->codec->codec_id = AV_CODEC_ID_MPEG4;
5656 st->need_parsing = AVSTREAM_PARSE_FULL;
5757
5858 avpriv_set_pts_info(st, 64, 1, 100);
libavformat/nsvdec.c+21−21
@@ -187,31 +187,31 @@ typedef struct { · 186 unmodified lines
187187 } NSVContext;
188188
189189 static const AVCodecTag nsv_codec_video_tags[] = {
190− { CODEC_ID_VP3, MKTAG('V', 'P', '3', ' ') },
191− { CODEC_ID_VP3, MKTAG('V', 'P', '3', '0') },
192− { CODEC_ID_VP3, MKTAG('V', 'P', '3', '1') },
193− { CODEC_ID_VP5, MKTAG('V', 'P', '5', ' ') },
194− { CODEC_ID_VP5, MKTAG('V', 'P', '5', '0') },
195− { CODEC_ID_VP6, MKTAG('V', 'P', '6', ' ') },
196− { CODEC_ID_VP6, MKTAG('V', 'P', '6', '0') },
197− { CODEC_ID_VP6, MKTAG('V', 'P', '6', '1') },
198− { CODEC_ID_VP6, MKTAG('V', 'P', '6', '2') },
190+ { AV_CODEC_ID_VP3, MKTAG('V', 'P', '3', ' ') },
191+ { AV_CODEC_ID_VP3, MKTAG('V', 'P', '3', '0') },
192+ { AV_CODEC_ID_VP3, MKTAG('V', 'P', '3', '1') },
193+ { AV_CODEC_ID_VP5, MKTAG('V', 'P', '5', ' ') },
194+ { AV_CODEC_ID_VP5, MKTAG('V', 'P', '5', '0') },
195+ { AV_CODEC_ID_VP6, MKTAG('V', 'P', '6', ' ') },
196+ { AV_CODEC_ID_VP6, MKTAG('V', 'P', '6', '0') },
197+ { AV_CODEC_ID_VP6, MKTAG('V', 'P', '6', '1') },
198+ { AV_CODEC_ID_VP6, MKTAG('V', 'P', '6', '2') },
199199 /*
200− { CODEC_ID_VP4, MKTAG('V', 'P', '4', ' ') },
201− { CODEC_ID_VP4, MKTAG('V', 'P', '4', '0') },
200+ { AV_CODEC_ID_VP4, MKTAG('V', 'P', '4', ' ') },
201+ { AV_CODEC_ID_VP4, MKTAG('V', 'P', '4', '0') },
202202 */
203− { CODEC_ID_MPEG4, MKTAG('X', 'V', 'I', 'D') }, /* cf sample xvid decoder from nsv_codec_sdk.zip */
204− { CODEC_ID_RAWVIDEO, MKTAG('R', 'G', 'B', '3') },
205− { CODEC_ID_NONE, 0 },
203+ { AV_CODEC_ID_MPEG4, MKTAG('X', 'V', 'I', 'D') }, /* cf sample xvid decoder from nsv_codec_sdk.zip */
204+ { AV_CODEC_ID_RAWVIDEO, MKTAG('R', 'G', 'B', '3') },
205+ { AV_CODEC_ID_NONE, 0 },
206206 };
207207
208208 static const AVCodecTag nsv_codec_audio_tags[] = {
209− { CODEC_ID_MP3, MKTAG('M', 'P', '3', ' ') },
210− { CODEC_ID_AAC, MKTAG('A', 'A', 'C', ' ') },
211− { CODEC_ID_AAC, MKTAG('A', 'A', 'C', 'P') },
212− { CODEC_ID_SPEEX, MKTAG('S', 'P', 'X', ' ') },
213− { CODEC_ID_PCM_U16LE, MKTAG('P', 'C', 'M', ' ') },
214− { CODEC_ID_NONE, 0 },
209+ { AV_CODEC_ID_MP3, MKTAG('M', 'P', '3', ' ') },
210+ { AV_CODEC_ID_AAC, MKTAG('A', 'A', 'C', ' ') },
211+ { AV_CODEC_ID_AAC, MKTAG('A', 'A', 'C', 'P') },
212+ { AV_CODEC_ID_SPEEX, MKTAG('S', 'P', 'X', ' ') },
213+ { AV_CODEC_ID_PCM_U16LE, MKTAG('P', 'C', 'M', ' ') },
214+ { AV_CODEC_ID_NONE, 0 },
215215 };
216216
217217 //static int nsv_load_index(AVFormatContext *s);
@@ -656,7 +656,7 @@ null_chunk_retry: · 438 unmodified lines
656656 }
657657 bps /= channels; // ???
658658 if (bps == 8)
659− st[NSV_ST_AUDIO]->codec->codec_id = CODEC_ID_PCM_U8;
659+ st[NSV_ST_AUDIO]->codec->codec_id = AV_CODEC_ID_PCM_U8;
660660 samplerate /= 4;/* UGH ??? XXX */
661661 channels = 1;
662662 st[NSV_ST_AUDIO]->codec->channels = channels;
libavformat/nullenc.c+2−2
@@ -29,8 +29,8 @@ static int null_write_packet(struct AVFormatContext *s, AVPacket *pkt) · 28 unmodified lines
2929 AVOutputFormat ff_null_muxer = {
3030 .name = "null",
3131 .long_name = NULL_IF_CONFIG_SMALL("raw null video"),
32− .audio_codec = AV_NE(CODEC_ID_PCM_S16BE, CODEC_ID_PCM_S16LE),
33− .video_codec = CODEC_ID_RAWVIDEO,
32+ .audio_codec = AV_NE(AV_CODEC_ID_PCM_S16BE, AV_CODEC_ID_PCM_S16LE),
33+ .video_codec = AV_CODEC_ID_RAWVIDEO,
3434 .write_packet = null_write_packet,
3535 .flags = AVFMT_NOFILE | AVFMT_NOTIMESTAMPS | AVFMT_RAWPICTURE,
3636 };
libavformat/nut.c+59−59
@@ -25,68 +25,68 @@ · 24 unmodified lines
2525 #include "internal.h"
2626
2727 const AVCodecTag ff_nut_subtitle_tags[] = {
28− { CODEC_ID_TEXT , MKTAG('U', 'T', 'F', '8') },
29− { CODEC_ID_SSA , MKTAG('S', 'S', 'A', 0 ) },
30− { CODEC_ID_DVD_SUBTITLE, MKTAG('D', 'V', 'D', 'S') },
31− { CODEC_ID_DVB_SUBTITLE, MKTAG('D', 'V', 'B', 'S') },
32− { CODEC_ID_NONE , 0 }
28+ { AV_CODEC_ID_TEXT , MKTAG('U', 'T', 'F', '8') },
29+ { AV_CODEC_ID_SSA , MKTAG('S', 'S', 'A', 0 ) },
30+ { AV_CODEC_ID_DVD_SUBTITLE, MKTAG('D', 'V', 'D', 'S') },
31+ { AV_CODEC_ID_DVB_SUBTITLE, MKTAG('D', 'V', 'B', 'S') },
32+ { AV_CODEC_ID_NONE , 0 }
3333 };
3434
3535 const AVCodecTag ff_nut_video_tags[] = {
36− { CODEC_ID_RAWVIDEO, MKTAG('R', 'G', 'B', 15 ) },
37− { CODEC_ID_RAWVIDEO, MKTAG('B', 'G', 'R', 15 ) },
38− { CODEC_ID_RAWVIDEO, MKTAG('R', 'G', 'B', 16 ) },
39− { CODEC_ID_RAWVIDEO, MKTAG('B', 'G', 'R', 16 ) },
40− { CODEC_ID_RAWVIDEO, MKTAG(15 , 'B', 'G', 'R') },
41− { CODEC_ID_RAWVIDEO, MKTAG(15 , 'R', 'G', 'B') },
42− { CODEC_ID_RAWVIDEO, MKTAG(16 , 'B', 'G', 'R') },
43− { CODEC_ID_RAWVIDEO, MKTAG(16 , 'R', 'G', 'B') },
44− { CODEC_ID_RAWVIDEO, MKTAG('R', 'G', 'B', 12 ) },
45− { CODEC_ID_RAWVIDEO, MKTAG('B', 'G', 'R', 12 ) },
46− { CODEC_ID_RAWVIDEO, MKTAG(12 , 'B', 'G', 'R') },
47− { CODEC_ID_RAWVIDEO, MKTAG(12 , 'R', 'G', 'B') },
48− { CODEC_ID_RAWVIDEO, MKTAG('R', 'G', 'B', 'A') },
49− { CODEC_ID_RAWVIDEO, MKTAG('B', 'G', 'R', 'A') },
50− { CODEC_ID_RAWVIDEO, MKTAG('A', 'B', 'G', 'R') },
51− { CODEC_ID_RAWVIDEO, MKTAG('A', 'R', 'G', 'B') },
52− { CODEC_ID_RAWVIDEO, MKTAG('R', 'G', 'B', 24 ) },
53− { CODEC_ID_RAWVIDEO, MKTAG('B', 'G', 'R', 24 ) },
54− { CODEC_ID_RAWVIDEO, MKTAG('4', '1', '1', 'P') },
55− { CODEC_ID_RAWVIDEO, MKTAG('4', '2', '2', 'P') },
56− { CODEC_ID_RAWVIDEO, MKTAG('4', '2', '2', 'P') },
57− { CODEC_ID_RAWVIDEO, MKTAG('4', '4', '0', 'P') },
58− { CODEC_ID_RAWVIDEO, MKTAG('4', '4', '0', 'P') },
59− { CODEC_ID_RAWVIDEO, MKTAG('4', '4', '4', 'P') },
60− { CODEC_ID_RAWVIDEO, MKTAG('4', '4', '4', 'P') },
61− { CODEC_ID_RAWVIDEO, MKTAG('B', '1', 'W', '0') },
62− { CODEC_ID_RAWVIDEO, MKTAG('B', '0', 'W', '1') },
63− { CODEC_ID_RAWVIDEO, MKTAG('B', 'G', 'R', 8 ) },
64− { CODEC_ID_RAWVIDEO, MKTAG('R', 'G', 'B', 8 ) },
65− { CODEC_ID_RAWVIDEO, MKTAG('B', 'G', 'R', 4 ) },
66− { CODEC_ID_RAWVIDEO, MKTAG('R', 'G', 'B', 4 ) },
67− { CODEC_ID_RAWVIDEO, MKTAG('B', '4', 'B', 'Y') },
68− { CODEC_ID_RAWVIDEO, MKTAG('R', '4', 'B', 'Y') },
69− { CODEC_ID_RAWVIDEO, MKTAG('B', 'G', 'R', 48 ) },
70− { CODEC_ID_RAWVIDEO, MKTAG('R', 'G', 'B', 48 ) },
71− { CODEC_ID_RAWVIDEO, MKTAG(48 , 'B', 'G', 'R') },
72− { CODEC_ID_RAWVIDEO, MKTAG(48 , 'R', 'G', 'B') },
73− { CODEC_ID_RAWVIDEO, MKTAG('Y', '3', 11 , 10 ) },
74− { CODEC_ID_RAWVIDEO, MKTAG(10 , 11 , '3', 'Y') },
75− { CODEC_ID_RAWVIDEO, MKTAG('Y', '3', 10 , 10 ) },
76− { CODEC_ID_RAWVIDEO, MKTAG(10 , 10 , '3', 'Y') },
77− { CODEC_ID_RAWVIDEO, MKTAG('Y', '3', 0 , 10 ) },
78− { CODEC_ID_RAWVIDEO, MKTAG(10 , 0 , '3', 'Y') },
79− { CODEC_ID_RAWVIDEO, MKTAG('Y', '1', 0 , 16 ) },
80− { CODEC_ID_RAWVIDEO, MKTAG(16 , 0 , '1', 'Y') },
81− { CODEC_ID_RAWVIDEO, MKTAG('Y', '3', 11 , 16 ) },
82− { CODEC_ID_RAWVIDEO, MKTAG(16 , 11 , '3', 'Y') },
83− { CODEC_ID_RAWVIDEO, MKTAG('Y', '3', 10 , 16 ) },
84− { CODEC_ID_RAWVIDEO, MKTAG(16 , 10 , '3', 'Y') },
85− { CODEC_ID_RAWVIDEO, MKTAG('Y', '3', 0 , 16 ) },
86− { CODEC_ID_RAWVIDEO, MKTAG(16 , 0 , '3', 'Y') },
87− { CODEC_ID_RAWVIDEO, MKTAG('Y', '4', 11 , 8 ) },
88− { CODEC_ID_RAWVIDEO, MKTAG('Y', '2', 0 , 8 ) },
89− { CODEC_ID_NONE , 0 }
36+ { AV_CODEC_ID_RAWVIDEO, MKTAG('R', 'G', 'B', 15 ) },
37+ { AV_CODEC_ID_RAWVIDEO, MKTAG('B', 'G', 'R', 15 ) },
38+ { AV_CODEC_ID_RAWVIDEO, MKTAG('R', 'G', 'B', 16 ) },
39+ { AV_CODEC_ID_RAWVIDEO, MKTAG('B', 'G', 'R', 16 ) },
40+ { AV_CODEC_ID_RAWVIDEO, MKTAG(15 , 'B', 'G', 'R') },
41+ { AV_CODEC_ID_RAWVIDEO, MKTAG(15 , 'R', 'G', 'B') },
42+ { AV_CODEC_ID_RAWVIDEO, MKTAG(16 , 'B', 'G', 'R') },
43+ { AV_CODEC_ID_RAWVIDEO, MKTAG(16 , 'R', 'G', 'B') },
44+ { AV_CODEC_ID_RAWVIDEO, MKTAG('R', 'G', 'B', 12 ) },
45+ { AV_CODEC_ID_RAWVIDEO, MKTAG('B', 'G', 'R', 12 ) },
46+ { AV_CODEC_ID_RAWVIDEO, MKTAG(12 , 'B', 'G', 'R') },
47+ { AV_CODEC_ID_RAWVIDEO, MKTAG(12 , 'R', 'G', 'B') },
48+ { AV_CODEC_ID_RAWVIDEO, MKTAG('R', 'G', 'B', 'A') },
49+ { AV_CODEC_ID_RAWVIDEO, MKTAG('B', 'G', 'R', 'A') },
50+ { AV_CODEC_ID_RAWVIDEO, MKTAG('A', 'B', 'G', 'R') },
51+ { AV_CODEC_ID_RAWVIDEO, MKTAG('A', 'R', 'G', 'B') },
52+ { AV_CODEC_ID_RAWVIDEO, MKTAG('R', 'G', 'B', 24 ) },
53+ { AV_CODEC_ID_RAWVIDEO, MKTAG('B', 'G', 'R', 24 ) },
54+ { AV_CODEC_ID_RAWVIDEO, MKTAG('4', '1', '1', 'P') },
55+ { AV_CODEC_ID_RAWVIDEO, MKTAG('4', '2', '2', 'P') },
56+ { AV_CODEC_ID_RAWVIDEO, MKTAG('4', '2', '2', 'P') },
57+ { AV_CODEC_ID_RAWVIDEO, MKTAG('4', '4', '0', 'P') },
58+ { AV_CODEC_ID_RAWVIDEO, MKTAG('4', '4', '0', 'P') },
59+ { AV_CODEC_ID_RAWVIDEO, MKTAG('4', '4', '4', 'P') },
60+ { AV_CODEC_ID_RAWVIDEO, MKTAG('4', '4', '4', 'P') },
61+ { AV_CODEC_ID_RAWVIDEO, MKTAG('B', '1', 'W', '0') },
62+ { AV_CODEC_ID_RAWVIDEO, MKTAG('B', '0', 'W', '1') },
63+ { AV_CODEC_ID_RAWVIDEO, MKTAG('B', 'G', 'R', 8 ) },
64+ { AV_CODEC_ID_RAWVIDEO, MKTAG('R', 'G', 'B', 8 ) },
65+ { AV_CODEC_ID_RAWVIDEO, MKTAG('B', 'G', 'R', 4 ) },
66+ { AV_CODEC_ID_RAWVIDEO, MKTAG('R', 'G', 'B', 4 ) },
67+ { AV_CODEC_ID_RAWVIDEO, MKTAG('B', '4', 'B', 'Y') },
68+ { AV_CODEC_ID_RAWVIDEO, MKTAG('R', '4', 'B', 'Y') },
69+ { AV_CODEC_ID_RAWVIDEO, MKTAG('B', 'G', 'R', 48 ) },
70+ { AV_CODEC_ID_RAWVIDEO, MKTAG('R', 'G', 'B', 48 ) },
71+ { AV_CODEC_ID_RAWVIDEO, MKTAG(48 , 'B', 'G', 'R') },
72+ { AV_CODEC_ID_RAWVIDEO, MKTAG(48 , 'R', 'G', 'B') },
73+ { AV_CODEC_ID_RAWVIDEO, MKTAG('Y', '3', 11 , 10 ) },
74+ { AV_CODEC_ID_RAWVIDEO, MKTAG(10 , 11 , '3', 'Y') },
75+ { AV_CODEC_ID_RAWVIDEO, MKTAG('Y', '3', 10 , 10 ) },
76+ { AV_CODEC_ID_RAWVIDEO, MKTAG(10 , 10 , '3', 'Y') },
77+ { AV_CODEC_ID_RAWVIDEO, MKTAG('Y', '3', 0 , 10 ) },
78+ { AV_CODEC_ID_RAWVIDEO, MKTAG(10 , 0 , '3', 'Y') },
79+ { AV_CODEC_ID_RAWVIDEO, MKTAG('Y', '1', 0 , 16 ) },
80+ { AV_CODEC_ID_RAWVIDEO, MKTAG(16 , 0 , '1', 'Y') },
81+ { AV_CODEC_ID_RAWVIDEO, MKTAG('Y', '3', 11 , 16 ) },
82+ { AV_CODEC_ID_RAWVIDEO, MKTAG(16 , 11 , '3', 'Y') },
83+ { AV_CODEC_ID_RAWVIDEO, MKTAG('Y', '3', 10 , 16 ) },
84+ { AV_CODEC_ID_RAWVIDEO, MKTAG(16 , 10 , '3', 'Y') },
85+ { AV_CODEC_ID_RAWVIDEO, MKTAG('Y', '3', 0 , 16 ) },
86+ { AV_CODEC_ID_RAWVIDEO, MKTAG(16 , 0 , '3', 'Y') },
87+ { AV_CODEC_ID_RAWVIDEO, MKTAG('Y', '4', 11 , 8 ) },
88+ { AV_CODEC_ID_RAWVIDEO, MKTAG('Y', '2', 0 , 8 ) },
89+ { AV_CODEC_ID_NONE , 0 }
9090 };
9191
9292 void ff_nut_reset_ts(NUTContext *nut, AVRational time_base, int64_t val){
libavformat/nutdec.c+1−1
@@ -379,7 +379,7 @@ static int decode_stream_header(NUTContext *nut) · 378 unmodified lines
379379 av_log(s, AV_LOG_ERROR, "unknown stream class (%d)\n", class);
380380 return -1;
381381 }
382− if (class < 3 && st->codec->codec_id == CODEC_ID_NONE)
382+ if (class < 3 && st->codec->codec_id == AV_CODEC_ID_NONE)
383383 av_log(s, AV_LOG_ERROR,
384384 "Unknown codec tag '0x%04x' for stream number %d\n",
385385 (unsigned int) tmp, stream_id);
libavformat/nutenc.c+9−9
@@ -36,20 +36,20 @@ static int find_expected_header(AVCodecContext *c, int size, int key_frame, uint · 35 unmodified lines
3636
3737 AV_WB24(out, 1);
3838
39− if(c->codec_id == CODEC_ID_MPEG4){
39+ if(c->codec_id == AV_CODEC_ID_MPEG4){
4040 if(key_frame){
4141 return 3;
4242 }else{
4343 out[3]= 0xB6;
4444 return 4;
4545 }
46− }else if(c->codec_id == CODEC_ID_MPEG1VIDEO || c->codec_id == CODEC_ID_MPEG2VIDEO){
46+ }else if(c->codec_id == AV_CODEC_ID_MPEG1VIDEO || c->codec_id == AV_CODEC_ID_MPEG2VIDEO){
4747 return 3;
48− }else if(c->codec_id == CODEC_ID_H264){
48+ }else if(c->codec_id == AV_CODEC_ID_H264){
4949 return 3;
50− }else if(c->codec_id == CODEC_ID_MP3 || c->codec_id == CODEC_ID_MP2){
50+ }else if(c->codec_id == AV_CODEC_ID_MP3 || c->codec_id == AV_CODEC_ID_MP2){
5151 int lsf, mpeg25, sample_rate_index, bitrate_index, frame_size;
52− int layer= c->codec_id == CODEC_ID_MP3 ? 3 : 2;
52+ int layer= c->codec_id == AV_CODEC_ID_MP3 ? 3 : 2;
5353 unsigned int header= 0xFFF00000;
5454
5555 lsf = sample_rate < (24000+32000)/2;
@@ -208,7 +208,7 @@ static void build_frame_code(AVFormatContext *s){ · 152 unmodified lines
208208 pred_table[2]=1;
209209 pred_table[3]=3;
210210 pred_table[4]=4;
211− }else if(codec->codec_id == CODEC_ID_VORBIS){
211+ }else if(codec->codec_id == AV_CODEC_ID_VORBIS){
212212 pred_count=3;
213213 pred_table[0]=2;
214214 pred_table[1]=9;
@@ -866,9 +866,9 @@ AVOutputFormat ff_nut_muxer = { · 651 unmodified lines
866866 .mime_type = "video/x-nut",
867867 .extensions = "nut",
868868 .priv_data_size = sizeof(NUTContext),
869− .audio_codec = CONFIG_LIBVORBIS ? CODEC_ID_VORBIS :
870− CONFIG_LIBMP3LAME ? CODEC_ID_MP3 : CODEC_ID_MP2,
871− .video_codec = CODEC_ID_MPEG4,
869+ .audio_codec = CONFIG_LIBVORBIS ? AV_CODEC_ID_VORBIS :
870+ CONFIG_LIBMP3LAME ? AV_CODEC_ID_MP3 : AV_CODEC_ID_MP2,
871+ .video_codec = AV_CODEC_ID_MPEG4,
872872 .write_header = nut_write_header,
873873 .write_packet = nut_write_packet,
874874 .write_trailer = nut_write_trailer,
libavformat/nuv.c+4−4
@@ -90,7 +90,7 @@ static int get_codec_data(AVIOContext *pb, AVStream *vst, · 89 unmodified lines
9090 vst->codec->codec_id =
9191 ff_codec_get_id(ff_codec_bmp_tags, vst->codec->codec_tag);
9292 if (vst->codec->codec_tag == MKTAG('R', 'J', 'P', 'G'))
93− vst->codec->codec_id = CODEC_ID_NUV;
93+ vst->codec->codec_id = AV_CODEC_ID_NUV;
9494 } else
9595 avio_skip(pb, 4);
9696
@@ -158,7 +158,7 @@ static int nuv_header(AVFormatContext *s) { · 61 unmodified lines
158158 if (!vst)
159159 return AVERROR(ENOMEM);
160160 vst->codec->codec_type = AVMEDIA_TYPE_VIDEO;
161− vst->codec->codec_id = CODEC_ID_NUV;
161+ vst->codec->codec_id = AV_CODEC_ID_NUV;
162162 vst->codec->width = width;
163163 vst->codec->height = height;
164164 vst->codec->bits_per_coded_sample = 10;
@@ -177,7 +177,7 @@ static int nuv_header(AVFormatContext *s) { · 12 unmodified lines
177177 if (!ast)
178178 return AVERROR(ENOMEM);
179179 ast->codec->codec_type = AVMEDIA_TYPE_AUDIO;
180− ast->codec->codec_id = CODEC_ID_PCM_S16LE;
180+ ast->codec->codec_id = AV_CODEC_ID_PCM_S16LE;
181181 ast->codec->channels = 2;
182182 ast->codec->sample_rate = 44100;
183183 ast->codec->bit_rate = 2 * 2 * 44100 * 8;
@@ -188,7 +188,7 @@ static int nuv_header(AVFormatContext *s) { · 4 unmodified lines
188188 ctx->a_id = -1;
189189
190190 get_codec_data(pb, vst, ast, is_mythtv);
191− ctx->rtjpg_video = vst && vst->codec->codec_id == CODEC_ID_NUV;
191+ ctx->rtjpg_video = vst && vst->codec->codec_id == AV_CODEC_ID_NUV;
192192 return 0;
193193 }
194194
libavformat/oggenc.c+17−17
@@ -202,7 +202,7 @@ static int ogg_buffer_data(AVFormatContext *s, AVStream *st, · 201 unmodified lines
202202 int i, segments, len, flush = 0;
203203
204204 // Handles VFR by flushing page because this frame needs to have a timestamp
205− if (st->codec->codec_id == CODEC_ID_THEORA && !header &&
205+ if (st->codec->codec_id == AV_CODEC_ID_THEORA && !header &&
206206 ogg_granule_to_timestamp(oggstream, granule) >
207207 ogg_granule_to_timestamp(oggstream, oggstream->last_granule) + 1) {
208208 if (oggstream->page.granule != -1)
@@ -349,10 +349,10 @@ static int ogg_write_header(AVFormatContext *s) · 140 unmodified lines
349349 avpriv_set_pts_info(st, 64, 1, st->codec->sample_rate);
350350 else if (st->codec->codec_type == AVMEDIA_TYPE_VIDEO)
351351 avpriv_set_pts_info(st, 64, st->codec->time_base.num, st->codec->time_base.den);
352− if (st->codec->codec_id != CODEC_ID_VORBIS &&
353− st->codec->codec_id != CODEC_ID_THEORA &&
354− st->codec->codec_id != CODEC_ID_SPEEX &&
355− st->codec->codec_id != CODEC_ID_FLAC) {
352+ if (st->codec->codec_id != AV_CODEC_ID_VORBIS &&
353+ st->codec->codec_id != AV_CODEC_ID_THEORA &&
354+ st->codec->codec_id != AV_CODEC_ID_SPEEX &&
355+ st->codec->codec_id != AV_CODEC_ID_FLAC) {
356356 av_log(s, AV_LOG_ERROR, "Unsupported codec id in stream %d\n", i);
357357 return -1;
358358 }
@@ -376,7 +376,7 @@ static int ogg_write_header(AVFormatContext *s) · 17 unmodified lines
376376 oggstream->serial_num = serial_num;
377377
378378 st->priv_data = oggstream;
379− if (st->codec->codec_id == CODEC_ID_FLAC) {
379+ if (st->codec->codec_id == AV_CODEC_ID_FLAC) {
380380 int err = ogg_build_flac_headers(st->codec, oggstream,
381381 st->codec->flags & CODEC_FLAG_BITEXACT,
382382 &s->metadata);
@@ -385,7 +385,7 @@ static int ogg_write_header(AVFormatContext *s) · 2 unmodified lines
385385 av_freep(&st->priv_data);
386386 return err;
387387 }
388− } else if (st->codec->codec_id == CODEC_ID_SPEEX) {
388+ } else if (st->codec->codec_id == AV_CODEC_ID_SPEEX) {
389389 int err = ogg_build_speex_headers(st->codec, oggstream,
390390 st->codec->flags & CODEC_FLAG_BITEXACT,
391391 &s->metadata);
@@ -396,12 +396,12 @@ static int ogg_write_header(AVFormatContext *s) · 4 unmodified lines
396396 }
397397 } else {
398398 uint8_t *p;
399− const char *cstr = st->codec->codec_id == CODEC_ID_VORBIS ? "vorbis" : "theora";
400− int header_type = st->codec->codec_id == CODEC_ID_VORBIS ? 3 : 0x81;
401− int framing_bit = st->codec->codec_id == CODEC_ID_VORBIS ? 1 : 0;
399+ const char *cstr = st->codec->codec_id == AV_CODEC_ID_VORBIS ? "vorbis" : "theora";
400+ int header_type = st->codec->codec_id == AV_CODEC_ID_VORBIS ? 3 : 0x81;
401+ int framing_bit = st->codec->codec_id == AV_CODEC_ID_VORBIS ? 1 : 0;
402402
403403 if (avpriv_split_xiph_headers(st->codec->extradata, st->codec->extradata_size,
404− st->codec->codec_id == CODEC_ID_VORBIS ? 30 : 42,
404+ st->codec->codec_id == AV_CODEC_ID_VORBIS ? 30 : 42,
405405 oggstream->header, oggstream->header_len) < 0) {
406406 av_log(s, AV_LOG_ERROR, "Extradata corrupted\n");
407407 av_freep(&st->priv_data);
@@ -418,7 +418,7 @@ static int ogg_write_header(AVFormatContext *s) · 10 unmodified lines
418418 bytestream_put_byte(&p, header_type);
419419 bytestream_put_buffer(&p, cstr, 6);
420420
421− if (st->codec->codec_id == CODEC_ID_THEORA) {
421+ if (st->codec->codec_id == AV_CODEC_ID_THEORA) {
422422 /** KFGSHIFT is the width of the less significant section of the granule position
423423 The less significant section is the frame count since the last keyframe */
424424 oggstream->kfgshift = ((oggstream->header[0][40]&3)<<3)|(oggstream->header[0][41]>>5);
@@ -478,7 +478,7 @@ static int ogg_write_packet(AVFormatContext *s, AVPacket *pkt) · 53 unmodified lines
478478 int ret;
479479 int64_t granule;
480480
481− if (st->codec->codec_id == CODEC_ID_THEORA) {
481+ if (st->codec->codec_id == AV_CODEC_ID_THEORA) {
482482 int64_t pts = oggstream->vrev < 1 ? pkt->pts : pkt->pts + pkt->duration;
483483 int pframe_count;
484484 if (pkt->flags & AV_PKT_FLAG_KEY)
@@ -517,8 +517,8 @@ static int ogg_write_trailer(AVFormatContext *s) · 32 unmodified lines
517517 for (i = 0; i < s->nb_streams; i++) {
518518 AVStream *st = s->streams[i];
519519 OGGStreamContext *oggstream = st->priv_data;
520− if (st->codec->codec_id == CODEC_ID_FLAC ||
521− st->codec->codec_id == CODEC_ID_SPEEX) {
520+ if (st->codec->codec_id == AV_CODEC_ID_FLAC ||
521+ st->codec->codec_id == AV_CODEC_ID_SPEEX) {
522522 av_free(oggstream->header[0]);
523523 }
524524 av_freep(&oggstream->header[1]);
@@ -533,8 +533,8 @@ AVOutputFormat ff_ogg_muxer = { · 8 unmodified lines
533533 .mime_type = "application/ogg",
534534 .extensions = "ogg,ogv,spx",
535535 .priv_data_size = sizeof(OGGContext),
536− .audio_codec = CODEC_ID_FLAC,
537− .video_codec = CODEC_ID_THEORA,
536+ .audio_codec = AV_CODEC_ID_FLAC,
537+ .video_codec = AV_CODEC_ID_THEORA,
538538 .write_header = ogg_write_header,
539539 .write_packet = ogg_write_packet,
540540 .write_trailer = ogg_write_trailer,
libavformat/oggparsecelt.c+1−1
@@ -65,7 +65,7 @@ static int celt_header(AVFormatContext *s, int idx) · 64 unmodified lines
6565 av_free(os->private);
6666 av_free(st->codec->extradata);
6767 st->codec->codec_type = AVMEDIA_TYPE_AUDIO;
68− st->codec->codec_id = CODEC_ID_CELT;
68+ st->codec->codec_id = AV_CODEC_ID_CELT;
6969 st->codec->sample_rate = sample_rate;
7070 st->codec->channels = nb_channels;
7171 st->codec->frame_size = frame_size;
libavformat/oggparsedirac.c+3−3
@@ -33,7 +33,7 @@ static int dirac_header(AVFormatContext *s, int idx) · 32 unmodified lines
3333 GetBitContext gb;
3434
3535 // already parsed the header
36− if (st->codec->codec_id == CODEC_ID_DIRAC)
36+ if (st->codec->codec_id == AV_CODEC_ID_DIRAC)
3737 return 0;
3838
3939 init_get_bits(&gb, os->buf + os->pstart + 13, (os->psize - 13) * 8);
@@ -41,7 +41,7 @@ static int dirac_header(AVFormatContext *s, int idx) · 1 unmodified line
4141 return -1;
4242
4343 st->codec->codec_type = AVMEDIA_TYPE_VIDEO;
44− st->codec->codec_id = CODEC_ID_DIRAC;
44+ st->codec->codec_id = AV_CODEC_ID_DIRAC;
4545 // dirac in ogg always stores timestamps as though the video were interlaced
4646 avpriv_set_pts_info(st, 64, st->codec->time_base.num, 2*st->codec->time_base.den);
4747 return 1;
@@ -79,7 +79,7 @@ static int old_dirac_header(AVFormatContext *s, int idx) · 31 unmodified lines
7979 return 0;
8080
8181 st->codec->codec_type = AVMEDIA_TYPE_VIDEO;
82− st->codec->codec_id = CODEC_ID_DIRAC;
82+ st->codec->codec_id = AV_CODEC_ID_DIRAC;
8383 avpriv_set_pts_info(st, 64, AV_RB32(buf+12), AV_RB32(buf+8));
8484 return 1;
8585 }
libavformat/oggparseflac.c+2−2
@@ -59,7 +59,7 @@ flac_header (AVFormatContext * s, int idx) · 58 unmodified lines
5959 avpriv_flac_parse_streaminfo(st->codec, &si, streaminfo_start);
6060
6161 st->codec->codec_type = AVMEDIA_TYPE_AUDIO;
62− st->codec->codec_id = CODEC_ID_FLAC;
62+ st->codec->codec_id = AV_CODEC_ID_FLAC;
6363 st->need_parsing = AVSTREAM_PARSE_HEADERS;
6464
6565 st->codec->extradata =
@@ -80,7 +80,7 @@ old_flac_header (AVFormatContext * s, int idx) · 14 unmodified lines
8080 {
8181 AVStream *st = s->streams[idx];
8282 st->codec->codec_type = AVMEDIA_TYPE_AUDIO;
83− st->codec->codec_id = CODEC_ID_FLAC;
83+ st->codec->codec_id = AV_CODEC_ID_FLAC;
8484
8585 return 0;
8686 }
libavformat/oggparseogm.c+1−1
@@ -56,7 +56,7 @@ ogm_header(AVFormatContext *s, int idx) · 55 unmodified lines
5656 st->codec->codec_tag = tag;
5757 } else if (*p == 't') {
5858 st->codec->codec_type = AVMEDIA_TYPE_SUBTITLE;
59− st->codec->codec_id = CODEC_ID_TEXT;
59+ st->codec->codec_id = AV_CODEC_ID_TEXT;
6060 p += 12;
6161 } else {
6262 uint8_t acid[5];
libavformat/oggparsespeex.c+1−1
@@ -55,7 +55,7 @@ static int speex_header(AVFormatContext *s, int idx) { · 54 unmodified lines
5555 if (spxp->seq == 0) {
5656 int frames_per_packet;
5757 st->codec->codec_type = AVMEDIA_TYPE_AUDIO;
58− st->codec->codec_id = CODEC_ID_SPEEX;
58+ st->codec->codec_id = AV_CODEC_ID_SPEEX;
5959
6060 st->codec->sample_rate = AV_RL32(p + 36);
6161 st->codec->channels = AV_RL32(p + 48);
libavformat/oggparsetheora.c+1−1
@@ -107,7 +107,7 @@ theora_header (AVFormatContext * s, int idx) · 106 unmodified lines
107107 thp->gpmask = (1 << thp->gpshift) - 1;
108108
109109 st->codec->codec_type = AVMEDIA_TYPE_VIDEO;
110− st->codec->codec_id = CODEC_ID_THEORA;
110+ st->codec->codec_id = AV_CODEC_ID_THEORA;
111111 st->need_parsing = AVSTREAM_PARSE_HEADERS;
112112
113113 } else if (os->buf[os->pstart] == 0x83) {
libavformat/oggparsevorbis.c+1−1
@@ -254,7 +254,7 @@ vorbis_header (AVFormatContext * s, int idx) · 253 unmodified lines
254254 return -1;
255255
256256 st->codec->codec_type = AVMEDIA_TYPE_AUDIO;
257− st->codec->codec_id = CODEC_ID_VORBIS;
257+ st->codec->codec_id = AV_CODEC_ID_VORBIS;
258258
259259 if (srate > 0) {
260260 st->codec->sample_rate = srate;
libavformat/oma.c+4−4
@@ -25,9 +25,9 @@ · 24 unmodified lines
2525 const uint16_t ff_oma_srate_tab[6] = { 320, 441, 480, 882, 960, 0 };
2626
2727 const AVCodecTag ff_oma_codec_tags[] = {
28− { CODEC_ID_ATRAC3, OMA_CODECID_ATRAC3 },
29− { CODEC_ID_ATRAC3P, OMA_CODECID_ATRAC3P },
30− { CODEC_ID_MP3, OMA_CODECID_MP3 },
31− { CODEC_ID_PCM_S16BE, OMA_CODECID_LPCM },
28+ { AV_CODEC_ID_ATRAC3, OMA_CODECID_ATRAC3 },
29+ { AV_CODEC_ID_ATRAC3P, OMA_CODECID_ATRAC3P },
30+ { AV_CODEC_ID_MP3, OMA_CODECID_MP3 },
31+ { AV_CODEC_ID_PCM_S16BE, OMA_CODECID_LPCM },
3232 { 0 },
3333 };
libavformat/omaenc.c+1−1
@@ -98,7 +98,7 @@ AVOutputFormat ff_oma_muxer = { · 97 unmodified lines
9898 .long_name = NULL_IF_CONFIG_SMALL("Sony OpenMG audio"),
9999 .mime_type = "audio/x-oma",
100100 .extensions = "oma",
101− .audio_codec = CODEC_ID_ATRAC3,
101+ .audio_codec = AV_CODEC_ID_ATRAC3,
102102 .write_header = oma_write_header,
103103 .write_packet = ff_raw_write_packet,
104104 .codec_tag = (const AVCodecTag* const []){ff_oma_codec_tags, 0},
libavformat/output-example.c+6−6
@@ -58,7 +58,7 @@ static int audio_input_frame_size; · 57 unmodified lines
5858 /*
5959 * add an audio output stream
6060 */
61−static AVStream *add_audio_stream(AVFormatContext *oc, enum CodecID codec_id)
61+static AVStream *add_audio_stream(AVFormatContext *oc, enum AVCodecID codec_id)
6262 {
6363 AVCodecContext *c;
6464 AVStream *st;
@@ -182,7 +182,7 @@ static uint8_t *video_outbuf; · 117 unmodified lines
182182 static int frame_count, video_outbuf_size;
183183
184184 /* Add a video output stream. */
185−static AVStream *add_video_stream(AVFormatContext *oc, enum CodecID codec_id)
185+static AVStream *add_video_stream(AVFormatContext *oc, enum AVCodecID codec_id)
186186 {
187187 AVCodecContext *c;
188188 AVStream *st;
@@ -216,11 +216,11 @@ static AVStream *add_video_stream(AVFormatContext *oc, enum CodecID codec_id) · 27 unmodified lines
216216 c->time_base.num = 1;
217217 c->gop_size = 12; /* emit one intra frame every twelve frames at most */
218218 c->pix_fmt = STREAM_PIX_FMT;
219− if (c->codec_id == CODEC_ID_MPEG2VIDEO) {
219+ if (c->codec_id == AV_CODEC_ID_MPEG2VIDEO) {
220220 /* just for testing, we also add B frames */
221221 c->max_b_frames = 2;
222222 }
223− if (c->codec_id == CODEC_ID_MPEG1VIDEO) {
223+ if (c->codec_id == AV_CODEC_ID_MPEG1VIDEO) {
224224 /* Needed to avoid using macroblocks in which some coeffs overflow.
225225 * This does not happen with normal video, it just happens here as
226226 * the motion of the chroma plane does not match the luma plane. */
@@ -460,10 +460,10 @@ int main(int argc, char **argv) · 233 unmodified lines
460460 * and initialize the codecs. */
461461 video_st = NULL;
462462 audio_st = NULL;
463− if (fmt->video_codec != CODEC_ID_NONE) {
463+ if (fmt->video_codec != AV_CODEC_ID_NONE) {
464464 video_st = add_video_stream(oc, fmt->video_codec);
465465 }
466− if (fmt->audio_codec != CODEC_ID_NONE) {
466+ if (fmt->audio_codec != AV_CODEC_ID_NONE) {
467467 audio_st = add_audio_stream(oc, fmt->audio_codec);
468468 }
469469
libavformat/pcmdec.c+20−20
@@ -75,61 +75,61 @@ AVInputFormat ff_pcm_ ## name_ ## _demuxer = { \ · 74 unmodified lines
7575 };
7676
7777 PCMDEF(f64be, "PCM 64-bit floating-point big-endian",
78− NULL, CODEC_ID_PCM_F64BE)
78+ NULL, AV_CODEC_ID_PCM_F64BE)
7979
8080 PCMDEF(f64le, "PCM 64-bit floating-point little-endian",
81− NULL, CODEC_ID_PCM_F64LE)
81+ NULL, AV_CODEC_ID_PCM_F64LE)
8282
8383 PCMDEF(f32be, "PCM 32-bit floating-point big-endian",
84− NULL, CODEC_ID_PCM_F32BE)
84+ NULL, AV_CODEC_ID_PCM_F32BE)
8585
8686 PCMDEF(f32le, "PCM 32-bit floating-point little-endian",
87− NULL, CODEC_ID_PCM_F32LE)
87+ NULL, AV_CODEC_ID_PCM_F32LE)
8888
8989 PCMDEF(s32be, "PCM signed 32-bit big-endian",
90− NULL, CODEC_ID_PCM_S32BE)
90+ NULL, AV_CODEC_ID_PCM_S32BE)
9191
9292 PCMDEF(s32le, "PCM signed 32-bit little-endian",
93− NULL, CODEC_ID_PCM_S32LE)
93+ NULL, AV_CODEC_ID_PCM_S32LE)
9494
9595 PCMDEF(s24be, "PCM signed 24-bit big-endian",
96− NULL, CODEC_ID_PCM_S24BE)
96+ NULL, AV_CODEC_ID_PCM_S24BE)
9797
9898 PCMDEF(s24le, "PCM signed 24-bit little-endian",
99− NULL, CODEC_ID_PCM_S24LE)
99+ NULL, AV_CODEC_ID_PCM_S24LE)
100100
101101 PCMDEF(s16be, "PCM signed 16-bit big-endian",
102− AV_NE("sw", NULL), CODEC_ID_PCM_S16BE)
102+ AV_NE("sw", NULL), AV_CODEC_ID_PCM_S16BE)
103103
104104 PCMDEF(s16le, "PCM signed 16-bit little-endian",
105− AV_NE(NULL, "sw"), CODEC_ID_PCM_S16LE)
105+ AV_NE(NULL, "sw"), AV_CODEC_ID_PCM_S16LE)
106106
107107 PCMDEF(s8, "PCM signed 8-bit",
108− "sb", CODEC_ID_PCM_S8)
108+ "sb", AV_CODEC_ID_PCM_S8)
109109
110110 PCMDEF(u32be, "PCM unsigned 32-bit big-endian",
111− NULL, CODEC_ID_PCM_U32BE)
111+ NULL, AV_CODEC_ID_PCM_U32BE)
112112
113113 PCMDEF(u32le, "PCM unsigned 32-bit little-endian",
114− NULL, CODEC_ID_PCM_U32LE)
114+ NULL, AV_CODEC_ID_PCM_U32LE)
115115
116116 PCMDEF(u24be, "PCM unsigned 24-bit big-endian",
117− NULL, CODEC_ID_PCM_U24BE)
117+ NULL, AV_CODEC_ID_PCM_U24BE)
118118
119119 PCMDEF(u24le, "PCM unsigned 24-bit little-endian",
120− NULL, CODEC_ID_PCM_U24LE)
120+ NULL, AV_CODEC_ID_PCM_U24LE)
121121
122122 PCMDEF(u16be, "PCM unsigned 16-bit big-endian",
123− AV_NE("uw", NULL), CODEC_ID_PCM_U16BE)
123+ AV_NE("uw", NULL), AV_CODEC_ID_PCM_U16BE)
124124
125125 PCMDEF(u16le, "PCM unsigned 16-bit little-endian",
126− AV_NE(NULL, "uw"), CODEC_ID_PCM_U16LE)
126+ AV_NE(NULL, "uw"), AV_CODEC_ID_PCM_U16LE)
127127
128128 PCMDEF(u8, "PCM unsigned 8-bit",
129− "ub", CODEC_ID_PCM_U8)
129+ "ub", AV_CODEC_ID_PCM_U8)
130130
131131 PCMDEF(alaw, "PCM A-law",
132− "al", CODEC_ID_PCM_ALAW)
132+ "al", AV_CODEC_ID_PCM_ALAW)
133133
134134 PCMDEF(mulaw, "PCM mu-law",
135− "ul", CODEC_ID_PCM_MULAW)
135+ "ul", AV_CODEC_ID_PCM_MULAW)
libavformat/pcmenc.c+21−21
@@ -28,67 +28,67 @@ AVOutputFormat ff_pcm_ ## name_ ## _muxer = { \ · 27 unmodified lines
2828 .long_name = NULL_IF_CONFIG_SMALL(long_name_), \
2929 .extensions = ext, \
3030 .audio_codec = codec, \
31− .video_codec = CODEC_ID_NONE, \
31+ .video_codec = AV_CODEC_ID_NONE, \
3232 .write_packet = ff_raw_write_packet, \
3333 .flags = AVFMT_NOTIMESTAMPS, \
3434 };
3535
3636 PCMDEF(f64be, "PCM 64-bit floating-point big-endian",
37− NULL, CODEC_ID_PCM_F64BE)
37+ NULL, AV_CODEC_ID_PCM_F64BE)
3838
3939 PCMDEF(f64le, "PCM 64-bit floating-point little-endian",
40− NULL, CODEC_ID_PCM_F64LE)
40+ NULL, AV_CODEC_ID_PCM_F64LE)
4141
4242 PCMDEF(f32be, "PCM 32-bit floating-point big-endian",
43− NULL, CODEC_ID_PCM_F32BE)
43+ NULL, AV_CODEC_ID_PCM_F32BE)
4444
4545 PCMDEF(f32le, "PCM 32-bit floating-point little-endian",
46− NULL, CODEC_ID_PCM_F32LE)
46+ NULL, AV_CODEC_ID_PCM_F32LE)
4747
4848 PCMDEF(s32be, "PCM signed 32-bit big-endian",
49− NULL, CODEC_ID_PCM_S32BE)
49+ NULL, AV_CODEC_ID_PCM_S32BE)
5050
5151 PCMDEF(s32le, "PCM signed 32-bit little-endian",
52− NULL, CODEC_ID_PCM_S32LE)
52+ NULL, AV_CODEC_ID_PCM_S32LE)
5353
5454 PCMDEF(s24be, "PCM signed 24-bit big-endian",
55− NULL, CODEC_ID_PCM_S24BE)
55+ NULL, AV_CODEC_ID_PCM_S24BE)
5656
5757 PCMDEF(s24le, "PCM signed 24-bit little-endian",
58− NULL, CODEC_ID_PCM_S24LE)
58+ NULL, AV_CODEC_ID_PCM_S24LE)
5959
6060 PCMDEF(s16be, "PCM signed 16-bit big-endian",
61− AV_NE("sw", NULL), CODEC_ID_PCM_S16BE)
61+ AV_NE("sw", NULL), AV_CODEC_ID_PCM_S16BE)
6262
6363 PCMDEF(s16le, "PCM signed 16-bit little-endian",
64− AV_NE(NULL, "sw"), CODEC_ID_PCM_S16LE)
64+ AV_NE(NULL, "sw"), AV_CODEC_ID_PCM_S16LE)
6565
6666 PCMDEF(s8, "PCM signed 8-bit",
67− "sb", CODEC_ID_PCM_S8)
67+ "sb", AV_CODEC_ID_PCM_S8)
6868
6969 PCMDEF(u32be, "PCM unsigned 32-bit big-endian",
70− NULL, CODEC_ID_PCM_U32BE)
70+ NULL, AV_CODEC_ID_PCM_U32BE)
7171
7272 PCMDEF(u32le, "PCM unsigned 32-bit little-endian",
73− NULL, CODEC_ID_PCM_U32LE)
73+ NULL, AV_CODEC_ID_PCM_U32LE)
7474
7575 PCMDEF(u24be, "PCM unsigned 24-bit big-endian",
76− NULL, CODEC_ID_PCM_U24BE)
76+ NULL, AV_CODEC_ID_PCM_U24BE)
7777
7878 PCMDEF(u24le, "PCM unsigned 24-bit little-endian",
79− NULL, CODEC_ID_PCM_U24LE)
79+ NULL, AV_CODEC_ID_PCM_U24LE)
8080
8181 PCMDEF(u16be, "PCM unsigned 16-bit big-endian",
82− AV_NE("uw", NULL), CODEC_ID_PCM_U16BE)
82+ AV_NE("uw", NULL), AV_CODEC_ID_PCM_U16BE)
8383
8484 PCMDEF(u16le, "PCM unsigned 16-bit little-endian",
85− AV_NE(NULL, "uw"), CODEC_ID_PCM_U16LE)
85+ AV_NE(NULL, "uw"), AV_CODEC_ID_PCM_U16LE)
8686
8787 PCMDEF(u8, "PCM unsigned 8-bit",
88− "ub", CODEC_ID_PCM_U8)
88+ "ub", AV_CODEC_ID_PCM_U8)
8989
9090 PCMDEF(alaw, "PCM A-law",
91− "al", CODEC_ID_PCM_ALAW)
91+ "al", AV_CODEC_ID_PCM_ALAW)
9292
9393 PCMDEF(mulaw, "PCM mu-law",
94− "ul", CODEC_ID_PCM_MULAW)
94+ "ul", AV_CODEC_ID_PCM_MULAW)
libavformat/pmpdec.c+5−5
@@ -45,7 +45,7 @@ static int pmp_header(AVFormatContext *s) · 44 unmodified lines
4545 AVIOContext *pb = s->pb;
4646 int tb_num, tb_den;
4747 int index_cnt;
48− int audio_codec_id = CODEC_ID_NONE;
48+ int audio_codec_id = AV_CODEC_ID_NONE;
4949 int srate, channels;
5050 int i;
5151 uint64_t pos;
@@ -56,10 +56,10 @@ static int pmp_header(AVFormatContext *s) · 4 unmodified lines
5656 avio_skip(pb, 8);
5757 switch (avio_rl32(pb)) {
5858 case 0:
59− vst->codec->codec_id = CODEC_ID_MPEG4;
59+ vst->codec->codec_id = AV_CODEC_ID_MPEG4;
6060 break;
6161 case 1:
62− vst->codec->codec_id = CODEC_ID_H264;
62+ vst->codec->codec_id = AV_CODEC_ID_H264;
6363 break;
6464 default:
6565 av_log(s, AV_LOG_ERROR, "Unsupported video format\n");
@@ -77,11 +77,11 @@ static int pmp_header(AVFormatContext *s) · 11 unmodified lines
7777
7878 switch (avio_rl32(pb)) {
7979 case 0:
80− audio_codec_id = CODEC_ID_MP3;
80+ audio_codec_id = AV_CODEC_ID_MP3;
8181 break;
8282 case 1:
8383 av_log(s, AV_LOG_WARNING, "AAC is not yet correctly supported\n");
84− audio_codec_id = CODEC_ID_AAC;
84+ audio_codec_id = AV_CODEC_ID_AAC;
8585 break;
8686 default:
8787 av_log(s, AV_LOG_ERROR, "Unsupported audio format\n");
libavformat/psxstr.c+2−2
@@ -170,7 +170,7 @@ static int str_read_packet(AVFormatContext *s, · 169 unmodified lines
170170 str->channels[channel].video_stream_index = st->index;
171171
172172 st->codec->codec_type = AVMEDIA_TYPE_VIDEO;
173− st->codec->codec_id = CODEC_ID_MDEC;
173+ st->codec->codec_id = AV_CODEC_ID_MDEC;
174174 st->codec->codec_tag = 0; /* no fourcc */
175175 st->codec->width = AV_RL16(&sector[0x28]);
176176 st->codec->height = AV_RL16(&sector[0x2A]);
@@ -217,7 +217,7 @@ static int str_read_packet(AVFormatContext *s, · 40 unmodified lines
217217 str->channels[channel].audio_stream_index = st->index;
218218
219219 st->codec->codec_type = AVMEDIA_TYPE_AUDIO;
220− st->codec->codec_id = CODEC_ID_ADPCM_XA;
220+ st->codec->codec_id = AV_CODEC_ID_ADPCM_XA;
221221 st->codec->codec_tag = 0; /* no fourcc */
222222 st->codec->channels = (fmt&1)?2:1;
223223 st->codec->sample_rate = (fmt&4)?18900:37800;
libavformat/pva.c+2−2
@@ -47,7 +47,7 @@ static int pva_read_header(AVFormatContext *s) { · 46 unmodified lines
4747 if (!(st = avformat_new_stream(s, NULL)))
4848 return AVERROR(ENOMEM);
4949 st->codec->codec_type = AVMEDIA_TYPE_VIDEO;
50− st->codec->codec_id = CODEC_ID_MPEG2VIDEO;
50+ st->codec->codec_id = AV_CODEC_ID_MPEG2VIDEO;
5151 st->need_parsing = AVSTREAM_PARSE_FULL;
5252 avpriv_set_pts_info(st, 32, 1, 90000);
5353 av_add_index_entry(st, 0, 0, 0, 0, AVINDEX_KEYFRAME);
@@ -55,7 +55,7 @@ static int pva_read_header(AVFormatContext *s) { · 1 unmodified line
5555 if (!(st = avformat_new_stream(s, NULL)))
5656 return AVERROR(ENOMEM);
5757 st->codec->codec_type = AVMEDIA_TYPE_AUDIO;
58− st->codec->codec_id = CODEC_ID_MP2;
58+ st->codec->codec_id = AV_CODEC_ID_MP2;
5959 st->need_parsing = AVSTREAM_PARSE_FULL;
6060 avpriv_set_pts_info(st, 33, 1, 90000);
6161 av_add_index_entry(st, 0, 0, 0, 0, AVINDEX_KEYFRAME);
libavformat/qcp.c+1−1
@@ -98,7 +98,7 @@ static int qcp_read_header(AVFormatContext *s) · 97 unmodified lines
9898 st->codec->channels = 1;
9999 avio_read(pb, buf, 16);
100100 if (is_qcelp_13k_guid(buf)) {
101− st->codec->codec_id = CODEC_ID_QCELP;
101+ st->codec->codec_id = AV_CODEC_ID_QCELP;
102102 } else if (!memcmp(buf, guid_evrc, 16)) {
103103 av_log(s, AV_LOG_ERROR, "EVRC codec is not supported.\n");
104104 return AVERROR_PATCHWELCOME;
libavformat/r3d.c+2−2
@@ -62,7 +62,7 @@ static int r3d_read_red1(AVFormatContext *s) · 61 unmodified lines
6262 if (!st)
6363 return AVERROR(ENOMEM);
6464 st->codec->codec_type = AVMEDIA_TYPE_VIDEO;
65− st->codec->codec_id = CODEC_ID_JPEG2000;
65+ st->codec->codec_id = AV_CODEC_ID_JPEG2000;
6666
6767 tmp = avio_r8(s->pb); // major version
6868 tmp2 = avio_r8(s->pb); // minor version
@@ -101,7 +101,7 @@ static int r3d_read_red1(AVFormatContext *s) · 32 unmodified lines
101101 if (!ast)
102102 return AVERROR(ENOMEM);
103103 ast->codec->codec_type = AVMEDIA_TYPE_AUDIO;
104− ast->codec->codec_id = CODEC_ID_PCM_S32BE;
104+ ast->codec->codec_id = AV_CODEC_ID_PCM_S32BE;
105105 ast->codec->channels = tmp;
106106 avpriv_set_pts_info(ast, 32, 1, st->time_base.den);
107107 }
libavformat/rawdec.c+10−10
@@ -32,14 +32,14 @@ · 31 unmodified lines
3232 int ff_raw_read_header(AVFormatContext *s)
3333 {
3434 AVStream *st;
35− enum CodecID id;
35+ enum AVCodecID id;
3636
3737 st = avformat_new_stream(s, NULL);
3838 if (!st)
3939 return AVERROR(ENOMEM);
4040
4141 id = s->iformat->raw_codec_id;
42− if (id == CODEC_ID_RAWVIDEO) {
42+ if (id == AV_CODEC_ID_RAWVIDEO) {
4343 st->codec->codec_type = AVMEDIA_TYPE_VIDEO;
4444 } else {
4545 st->codec->codec_type = AVMEDIA_TYPE_AUDIO;
@@ -52,7 +52,7 @@ int ff_raw_read_header(AVFormatContext *s) · 6 unmodified lines
5252
5353 st->codec->channels = 1;
5454
55− if (id == CODEC_ID_ADPCM_G722)
55+ if (id == AV_CODEC_ID_ADPCM_G722)
5656 st->codec->sample_rate = 16000;
5757
5858 if (s1 && s1->sample_rate)
@@ -185,7 +185,7 @@ AVInputFormat ff_g722_demuxer = { · 126 unmodified lines
185185 .read_packet = ff_raw_read_partial_packet,
186186 .flags = AVFMT_GENERIC_INDEX,
187187 .extensions = "g722,722",
188− .raw_codec_id = CODEC_ID_ADPCM_G722,
188+ .raw_codec_id = AV_CODEC_ID_ADPCM_G722,
189189 };
190190 #endif
191191
@@ -197,12 +197,12 @@ AVInputFormat ff_latm_demuxer = { · 5 unmodified lines
197197 .read_packet = ff_raw_read_partial_packet,
198198 .flags = AVFMT_GENERIC_INDEX,
199199 .extensions = "latm",
200− .raw_codec_id = CODEC_ID_AAC_LATM,
200+ .raw_codec_id = AV_CODEC_ID_AAC_LATM,
201201 };
202202 #endif
203203
204204 #if CONFIG_MJPEG_DEMUXER
205−FF_DEF_RAWVIDEO_DEMUXER(mjpeg, "raw MJPEG video", NULL, "mjpg,mjpeg", CODEC_ID_MJPEG)
205+FF_DEF_RAWVIDEO_DEMUXER(mjpeg, "raw MJPEG video", NULL, "mjpg,mjpeg", AV_CODEC_ID_MJPEG)
206206 #endif
207207
208208 #if CONFIG_MLP_DEMUXER
@@ -213,7 +213,7 @@ AVInputFormat ff_mlp_demuxer = { · 4 unmodified lines
213213 .read_packet = ff_raw_read_partial_packet,
214214 .flags = AVFMT_GENERIC_INDEX,
215215 .extensions = "mlp",
216− .raw_codec_id = CODEC_ID_MLP,
216+ .raw_codec_id = AV_CODEC_ID_MLP,
217217 };
218218 #endif
219219
@@ -225,7 +225,7 @@ AVInputFormat ff_truehd_demuxer = { · 5 unmodified lines
225225 .read_packet = ff_raw_read_partial_packet,
226226 .flags = AVFMT_GENERIC_INDEX,
227227 .extensions = "thd",
228− .raw_codec_id = CODEC_ID_TRUEHD,
228+ .raw_codec_id = AV_CODEC_ID_TRUEHD,
229229 };
230230 #endif
231231
@@ -237,10 +237,10 @@ AVInputFormat ff_shorten_demuxer = { · 5 unmodified lines
237237 .read_packet = ff_raw_read_partial_packet,
238238 .flags = AVFMT_NOBINSEARCH | AVFMT_NOGENSEARCH | AVFMT_NO_BYTE_SEEK,
239239 .extensions = "shn",
240− .raw_codec_id = CODEC_ID_SHORTEN,
240+ .raw_codec_id = AV_CODEC_ID_SHORTEN,
241241 };
242242 #endif
243243
244244 #if CONFIG_VC1_DEMUXER
245−FF_DEF_RAWVIDEO_DEMUXER(vc1, "raw VC-1", NULL, "vc1", CODEC_ID_VC1)
245+FF_DEF_RAWVIDEO_DEMUXER(vc1, "raw VC-1", NULL, "vc1", AV_CODEC_ID_VC1)
246246 #endif
libavformat/rawenc.c+37−37
@@ -38,8 +38,8 @@ AVOutputFormat ff_ac3_muxer = { · 37 unmodified lines
3838 .long_name = NULL_IF_CONFIG_SMALL("raw AC-3"),
3939 .mime_type = "audio/x-ac3",
4040 .extensions = "ac3",
41− .audio_codec = CODEC_ID_AC3,
42− .video_codec = CODEC_ID_NONE,
41+ .audio_codec = AV_CODEC_ID_AC3,
42+ .video_codec = AV_CODEC_ID_NONE,
4343 .write_packet = ff_raw_write_packet,
4444 .flags = AVFMT_NOTIMESTAMPS,
4545 };
@@ -50,8 +50,8 @@ AVOutputFormat ff_adx_muxer = { · 4 unmodified lines
5050 .name = "adx",
5151 .long_name = NULL_IF_CONFIG_SMALL("CRI ADX"),
5252 .extensions = "adx",
53− .audio_codec = CODEC_ID_ADPCM_ADX,
54− .video_codec = CODEC_ID_NONE,
53+ .audio_codec = AV_CODEC_ID_ADPCM_ADX,
54+ .video_codec = AV_CODEC_ID_NONE,
5555 .write_packet = ff_raw_write_packet,
5656 .flags = AVFMT_NOTIMESTAMPS,
5757 };
@@ -62,8 +62,8 @@ AVOutputFormat ff_cavsvideo_muxer = { · 4 unmodified lines
6262 .name = "cavsvideo",
6363 .long_name = NULL_IF_CONFIG_SMALL("raw Chinese AVS (Audio Video Standard) video"),
6464 .extensions = "cavs",
65− .audio_codec = CODEC_ID_NONE,
66− .video_codec = CODEC_ID_CAVS,
65+ .audio_codec = AV_CODEC_ID_NONE,
66+ .video_codec = AV_CODEC_ID_CAVS,
6767 .write_packet = ff_raw_write_packet,
6868 .flags = AVFMT_NOTIMESTAMPS,
6969 };
@@ -74,8 +74,8 @@ AVOutputFormat ff_dirac_muxer = { · 4 unmodified lines
7474 .name = "dirac",
7575 .long_name = NULL_IF_CONFIG_SMALL("raw Dirac"),
7676 .extensions = "drc",
77− .audio_codec = CODEC_ID_NONE,
78− .video_codec = CODEC_ID_DIRAC,
77+ .audio_codec = AV_CODEC_ID_NONE,
78+ .video_codec = AV_CODEC_ID_DIRAC,
7979 .write_packet = ff_raw_write_packet,
8080 .flags = AVFMT_NOTIMESTAMPS,
8181 };
@@ -86,8 +86,8 @@ AVOutputFormat ff_dnxhd_muxer = { · 4 unmodified lines
8686 .name = "dnxhd",
8787 .long_name = NULL_IF_CONFIG_SMALL("raw DNxHD (SMPTE VC-3)"),
8888 .extensions = "dnxhd",
89− .audio_codec = CODEC_ID_NONE,
90− .video_codec = CODEC_ID_DNXHD,
89+ .audio_codec = AV_CODEC_ID_NONE,
90+ .video_codec = AV_CODEC_ID_DNXHD,
9191 .write_packet = ff_raw_write_packet,
9292 .flags = AVFMT_NOTIMESTAMPS,
9393 };
@@ -99,8 +99,8 @@ AVOutputFormat ff_dts_muxer = { · 5 unmodified lines
9999 .long_name = NULL_IF_CONFIG_SMALL("raw DTS"),
100100 .mime_type = "audio/x-dca",
101101 .extensions = "dts",
102− .audio_codec = CODEC_ID_DTS,
103− .video_codec = CODEC_ID_NONE,
102+ .audio_codec = AV_CODEC_ID_DTS,
103+ .video_codec = AV_CODEC_ID_NONE,
104104 .write_packet = ff_raw_write_packet,
105105 .flags = AVFMT_NOTIMESTAMPS,
106106 };
@@ -112,8 +112,8 @@ AVOutputFormat ff_eac3_muxer = { · 5 unmodified lines
112112 .long_name = NULL_IF_CONFIG_SMALL("raw E-AC-3"),
113113 .mime_type = "audio/x-eac3",
114114 .extensions = "eac3",
115− .audio_codec = CODEC_ID_EAC3,
116− .video_codec = CODEC_ID_NONE,
115+ .audio_codec = AV_CODEC_ID_EAC3,
116+ .video_codec = AV_CODEC_ID_NONE,
117117 .write_packet = ff_raw_write_packet,
118118 .flags = AVFMT_NOTIMESTAMPS,
119119 };
@@ -125,8 +125,8 @@ AVOutputFormat ff_g722_muxer = { · 5 unmodified lines
125125 .long_name = NULL_IF_CONFIG_SMALL("raw G.722"),
126126 .mime_type = "audio/G722",
127127 .extensions = "g722",
128− .audio_codec = CODEC_ID_ADPCM_G722,
129− .video_codec = CODEC_ID_NONE,
128+ .audio_codec = AV_CODEC_ID_ADPCM_G722,
129+ .video_codec = AV_CODEC_ID_NONE,
130130 .write_packet = ff_raw_write_packet,
131131 .flags = AVFMT_NOTIMESTAMPS,
132132 };
@@ -138,8 +138,8 @@ AVOutputFormat ff_h261_muxer = { · 5 unmodified lines
138138 .long_name = NULL_IF_CONFIG_SMALL("raw H.261"),
139139 .mime_type = "video/x-h261",
140140 .extensions = "h261",
141− .audio_codec = CODEC_ID_NONE,
142− .video_codec = CODEC_ID_H261,
141+ .audio_codec = AV_CODEC_ID_NONE,
142+ .video_codec = AV_CODEC_ID_H261,
143143 .write_packet = ff_raw_write_packet,
144144 .flags = AVFMT_NOTIMESTAMPS,
145145 };
@@ -151,8 +151,8 @@ AVOutputFormat ff_h263_muxer = { · 5 unmodified lines
151151 .long_name = NULL_IF_CONFIG_SMALL("raw H.263"),
152152 .mime_type = "video/x-h263",
153153 .extensions = "h263",
154− .audio_codec = CODEC_ID_NONE,
155− .video_codec = CODEC_ID_H263,
154+ .audio_codec = AV_CODEC_ID_NONE,
155+ .video_codec = AV_CODEC_ID_H263,
156156 .write_packet = ff_raw_write_packet,
157157 .flags = AVFMT_NOTIMESTAMPS,
158158 };
@@ -163,8 +163,8 @@ AVOutputFormat ff_h264_muxer = { · 4 unmodified lines
163163 .name = "h264",
164164 .long_name = NULL_IF_CONFIG_SMALL("raw H.264 video"),
165165 .extensions = "h264",
166− .audio_codec = CODEC_ID_NONE,
167− .video_codec = CODEC_ID_H264,
166+ .audio_codec = AV_CODEC_ID_NONE,
167+ .video_codec = AV_CODEC_ID_H264,
168168 .write_packet = ff_raw_write_packet,
169169 .flags = AVFMT_NOTIMESTAMPS,
170170 };
@@ -175,8 +175,8 @@ AVOutputFormat ff_m4v_muxer = { · 4 unmodified lines
175175 .name = "m4v",
176176 .long_name = NULL_IF_CONFIG_SMALL("raw MPEG-4 video"),
177177 .extensions = "m4v",
178− .audio_codec = CODEC_ID_NONE,
179− .video_codec = CODEC_ID_MPEG4,
178+ .audio_codec = AV_CODEC_ID_NONE,
179+ .video_codec = AV_CODEC_ID_MPEG4,
180180 .write_packet = ff_raw_write_packet,
181181 .flags = AVFMT_NOTIMESTAMPS,
182182 };
@@ -188,8 +188,8 @@ AVOutputFormat ff_mjpeg_muxer = { · 5 unmodified lines
188188 .long_name = NULL_IF_CONFIG_SMALL("raw MJPEG video"),
189189 .mime_type = "video/x-mjpeg",
190190 .extensions = "mjpg,mjpeg",
191− .audio_codec = CODEC_ID_NONE,
192− .video_codec = CODEC_ID_MJPEG,
191+ .audio_codec = AV_CODEC_ID_NONE,
192+ .video_codec = AV_CODEC_ID_MJPEG,
193193 .write_packet = ff_raw_write_packet,
194194 .flags = AVFMT_NOTIMESTAMPS,
195195 };
@@ -200,8 +200,8 @@ AVOutputFormat ff_mlp_muxer = { · 4 unmodified lines
200200 .name = "mlp",
201201 .long_name = NULL_IF_CONFIG_SMALL("raw MLP"),
202202 .extensions = "mlp",
203− .audio_codec = CODEC_ID_MLP,
204− .video_codec = CODEC_ID_NONE,
203+ .audio_codec = AV_CODEC_ID_MLP,
204+ .video_codec = AV_CODEC_ID_NONE,
205205 .write_packet = ff_raw_write_packet,
206206 .flags = AVFMT_NOTIMESTAMPS,
207207 };
@@ -213,8 +213,8 @@ AVOutputFormat ff_mpeg1video_muxer = { · 5 unmodified lines
213213 .long_name = NULL_IF_CONFIG_SMALL("raw MPEG-1 video"),
214214 .mime_type = "video/x-mpeg",
215215 .extensions = "mpg,mpeg,m1v",
216− .audio_codec = CODEC_ID_NONE,
217− .video_codec = CODEC_ID_MPEG1VIDEO,
216+ .audio_codec = AV_CODEC_ID_NONE,
217+ .video_codec = AV_CODEC_ID_MPEG1VIDEO,
218218 .write_packet = ff_raw_write_packet,
219219 .flags = AVFMT_NOTIMESTAMPS,
220220 };
@@ -225,8 +225,8 @@ AVOutputFormat ff_mpeg2video_muxer = { · 4 unmodified lines
225225 .name = "mpeg2video",
226226 .long_name = NULL_IF_CONFIG_SMALL("raw MPEG-2 video"),
227227 .extensions = "m2v",
228− .audio_codec = CODEC_ID_NONE,
229− .video_codec = CODEC_ID_MPEG2VIDEO,
228+ .audio_codec = AV_CODEC_ID_NONE,
229+ .video_codec = AV_CODEC_ID_MPEG2VIDEO,
230230 .write_packet = ff_raw_write_packet,
231231 .flags = AVFMT_NOTIMESTAMPS,
232232 };
@@ -237,8 +237,8 @@ AVOutputFormat ff_rawvideo_muxer = { · 4 unmodified lines
237237 .name = "rawvideo",
238238 .long_name = NULL_IF_CONFIG_SMALL("raw video"),
239239 .extensions = "yuv,rgb",
240− .audio_codec = CODEC_ID_NONE,
241− .video_codec = CODEC_ID_RAWVIDEO,
240+ .audio_codec = AV_CODEC_ID_NONE,
241+ .video_codec = AV_CODEC_ID_RAWVIDEO,
242242 .write_packet = ff_raw_write_packet,
243243 .flags = AVFMT_NOTIMESTAMPS,
244244 };
@@ -252,7 +252,7 @@ AVOutputFormat ff_srt_muxer = { · 7 unmodified lines
252252 .extensions = "srt",
253253 .write_packet = ff_raw_write_packet,
254254 .flags = AVFMT_NOTIMESTAMPS,
255− .subtitle_codec = CODEC_ID_SRT,
255+ .subtitle_codec = AV_CODEC_ID_SRT,
256256 };
257257 #endif
258258
@@ -261,8 +261,8 @@ AVOutputFormat ff_truehd_muxer = { · 2 unmodified lines
261261 .name = "truehd",
262262 .long_name = NULL_IF_CONFIG_SMALL("raw TrueHD"),
263263 .extensions = "thd",
264− .audio_codec = CODEC_ID_TRUEHD,
265− .video_codec = CODEC_ID_NONE,
264+ .audio_codec = AV_CODEC_ID_TRUEHD,
265+ .video_codec = AV_CODEC_ID_NONE,
266266 .write_packet = ff_raw_write_packet,
267267 .flags = AVFMT_NOTIMESTAMPS,
268268 };
libavformat/rawvideodec.c+1−1
@@ -68,6 +68,6 @@ AVInputFormat ff_rawvideo_demuxer = { · 67 unmodified lines
6868 .read_packet = rawvideo_read_packet,
6969 .flags = AVFMT_GENERIC_INDEX,
7070 .extensions = "yuv,cif,qcif,rgb",
71− .raw_codec_id = CODEC_ID_RAWVIDEO,
71+ .raw_codec_id = AV_CODEC_ID_RAWVIDEO,
7272 .priv_class = &rawvideo_demuxer_class,
7373 };
libavformat/rdt.c+3−3
@@ -309,7 +309,7 @@ rdt_parse_packet (AVFormatContext *ctx, PayloadContext *rdt, AVStream *st, · 308 unmodified lines
309309 if (res < 0)
310310 return res;
311311 if (res > 0) {
312− if (st->codec->codec_id == CODEC_ID_AAC) {
312+ if (st->codec->codec_id == AV_CODEC_ID_AAC) {
313313 memcpy (rdt->buffer, buf + pos, len - pos);
314314 rdt->rmctx->pb = avio_alloc_context (rdt->buffer, len - pos, 0,
315315 NULL, NULL, NULL, NULL);
@@ -322,7 +322,7 @@ get_cache: · 6 unmodified lines
322322 ff_rm_retrieve_cache (rdt->rmctx, rdt->rmctx->pb,
323323 st, rdt->rmst[st->index], pkt);
324324 if (rdt->audio_pkt_cnt == 0 &&
325− st->codec->codec_id == CODEC_ID_AAC)
325+ st->codec->codec_id == AV_CODEC_ID_AAC)
326326 av_freep(&rdt->rmctx->pb);
327327 }
328328 pkt->stream_index = st->index;
@@ -551,7 +551,7 @@ rdt_free_context (PayloadContext *rdt) · 222 unmodified lines
551551 static RTPDynamicProtocolHandler ff_rdt_ ## n ## _handler = { \
552552 .enc_name = s, \
553553 .codec_type = t, \
554− .codec_id = CODEC_ID_NONE, \
554+ .codec_id = AV_CODEC_ID_NONE, \
555555 .parse_sdp_a_line = rdt_parse_sdp_line, \
556556 .alloc = rdt_new_context, \
557557 .free = rdt_free_context, \
libavformat/riff.c+339−339
@@ -29,325 +29,325 @@ · 28 unmodified lines
2929 /* Note: when encoding, the first matching tag is used, so order is
3030 important if multiple tags possible for a given codec. */
3131 const AVCodecTag ff_codec_bmp_tags[] = {
32− { CODEC_ID_H264, MKTAG('H', '2', '6', '4') },
33− { CODEC_ID_H264, MKTAG('h', '2', '6', '4') },
34− { CODEC_ID_H264, MKTAG('X', '2', '6', '4') },
35− { CODEC_ID_H264, MKTAG('x', '2', '6', '4') },
36− { CODEC_ID_H264, MKTAG('a', 'v', 'c', '1') },
37− { CODEC_ID_H264, MKTAG('D', 'A', 'V', 'C') },
38− { CODEC_ID_H264, MKTAG('V', 'S', 'S', 'H') },
39− { CODEC_ID_H263, MKTAG('H', '2', '6', '3') },
40− { CODEC_ID_H263, MKTAG('X', '2', '6', '3') },
41− { CODEC_ID_H263, MKTAG('T', '2', '6', '3') },
42− { CODEC_ID_H263, MKTAG('L', '2', '6', '3') },
43− { CODEC_ID_H263, MKTAG('V', 'X', '1', 'K') },
44− { CODEC_ID_H263, MKTAG('Z', 'y', 'G', 'o') },
45− { CODEC_ID_H263, MKTAG('M', '2', '6', '3') },
46− { CODEC_ID_H263P, MKTAG('H', '2', '6', '3') },
47− { CODEC_ID_H263I, MKTAG('I', '2', '6', '3') }, /* intel h263 */
48− { CODEC_ID_H261, MKTAG('H', '2', '6', '1') },
49− { CODEC_ID_H263P, MKTAG('U', '2', '6', '3') },
50− { CODEC_ID_H263P, MKTAG('v', 'i', 'v', '1') },
51− { CODEC_ID_MPEG4, MKTAG('F', 'M', 'P', '4') },
52− { CODEC_ID_MPEG4, MKTAG('D', 'I', 'V', 'X') },
53− { CODEC_ID_MPEG4, MKTAG('D', 'X', '5', '0') },
54− { CODEC_ID_MPEG4, MKTAG('X', 'V', 'I', 'D') },
55− { CODEC_ID_MPEG4, MKTAG('M', 'P', '4', 'S') },
56− { CODEC_ID_MPEG4, MKTAG('M', '4', 'S', '2') },
57− { CODEC_ID_MPEG4, MKTAG( 4 , 0 , 0 , 0 ) }, /* some broken avi use this */
58− { CODEC_ID_MPEG4, MKTAG('D', 'I', 'V', '1') },
59− { CODEC_ID_MPEG4, MKTAG('B', 'L', 'Z', '0') },
60− { CODEC_ID_MPEG4, MKTAG('m', 'p', '4', 'v') },
61− { CODEC_ID_MPEG4, MKTAG('U', 'M', 'P', '4') },
62− { CODEC_ID_MPEG4, MKTAG('W', 'V', '1', 'F') },
63− { CODEC_ID_MPEG4, MKTAG('S', 'E', 'D', 'G') },
64− { CODEC_ID_MPEG4, MKTAG('R', 'M', 'P', '4') },
65− { CODEC_ID_MPEG4, MKTAG('3', 'I', 'V', '2') },
66− { CODEC_ID_MPEG4, MKTAG('W', 'A', 'W', 'V') }, /* WaWv MPEG-4 Video Codec */
67− { CODEC_ID_MPEG4, MKTAG('F', 'F', 'D', 'S') },
68− { CODEC_ID_MPEG4, MKTAG('F', 'V', 'F', 'W') },
69− { CODEC_ID_MPEG4, MKTAG('D', 'C', 'O', 'D') },
70− { CODEC_ID_MPEG4, MKTAG('M', 'V', 'X', 'M') },
71− { CODEC_ID_MPEG4, MKTAG('P', 'M', '4', 'V') },
72− { CODEC_ID_MPEG4, MKTAG('S', 'M', 'P', '4') },
73− { CODEC_ID_MPEG4, MKTAG('D', 'X', 'G', 'M') },
74− { CODEC_ID_MPEG4, MKTAG('V', 'I', 'D', 'M') },
75− { CODEC_ID_MPEG4, MKTAG('M', '4', 'T', '3') },
76− { CODEC_ID_MPEG4, MKTAG('G', 'E', 'O', 'X') },
77− { CODEC_ID_MPEG4, MKTAG('H', 'D', 'X', '4') }, /* flipped video */
78− { CODEC_ID_MPEG4, MKTAG('D', 'M', 'K', '2') },
79− { CODEC_ID_MPEG4, MKTAG('D', 'I', 'G', 'I') },
80− { CODEC_ID_MPEG4, MKTAG('I', 'N', 'M', 'C') },
81− { CODEC_ID_MPEG4, MKTAG('E', 'P', 'H', 'V') }, /* Ephv MPEG-4 */
82− { CODEC_ID_MPEG4, MKTAG('E', 'M', '4', 'A') },
83− { CODEC_ID_MPEG4, MKTAG('M', '4', 'C', 'C') }, /* Divio MPEG-4 */
84− { CODEC_ID_MPEG4, MKTAG('S', 'N', '4', '0') },
85− { CODEC_ID_MPEG4, MKTAG('V', 'S', 'P', 'X') },
86− { CODEC_ID_MPEG4, MKTAG('U', 'L', 'D', 'X') },
87− { CODEC_ID_MPEG4, MKTAG('G', 'E', 'O', 'V') },
88− { CODEC_ID_MPEG4, MKTAG('S', 'I', 'P', 'P') }, /* Samsung SHR-6040 */
89− { CODEC_ID_MPEG4, MKTAG('X', 'V', 'I', 'X') },
90− { CODEC_ID_MPEG4, MKTAG('D', 'r', 'e', 'X') },
91− { CODEC_ID_MSMPEG4V3, MKTAG('M', 'P', '4', '3') },
92− { CODEC_ID_MSMPEG4V3, MKTAG('D', 'I', 'V', '3') },
93− { CODEC_ID_MSMPEG4V3, MKTAG('M', 'P', 'G', '3') },
94− { CODEC_ID_MSMPEG4V3, MKTAG('D', 'I', 'V', '5') },
95− { CODEC_ID_MSMPEG4V3, MKTAG('D', 'I', 'V', '6') },
96− { CODEC_ID_MSMPEG4V3, MKTAG('D', 'I', 'V', '4') },
97− { CODEC_ID_MSMPEG4V3, MKTAG('D', 'V', 'X', '3') },
98− { CODEC_ID_MSMPEG4V3, MKTAG('A', 'P', '4', '1') },
99− { CODEC_ID_MSMPEG4V3, MKTAG('C', 'O', 'L', '1') },
100− { CODEC_ID_MSMPEG4V3, MKTAG('C', 'O', 'L', '0') },
101− { CODEC_ID_MSMPEG4V2, MKTAG('M', 'P', '4', '2') },
102− { CODEC_ID_MSMPEG4V2, MKTAG('D', 'I', 'V', '2') },
103− { CODEC_ID_MSMPEG4V1, MKTAG('M', 'P', 'G', '4') },
104− { CODEC_ID_MSMPEG4V1, MKTAG('M', 'P', '4', '1') },
105− { CODEC_ID_WMV1, MKTAG('W', 'M', 'V', '1') },
106− { CODEC_ID_WMV2, MKTAG('W', 'M', 'V', '2') },
107− { CODEC_ID_DVVIDEO, MKTAG('d', 'v', 's', 'd') },
108− { CODEC_ID_DVVIDEO, MKTAG('d', 'v', 'h', 'd') },
109− { CODEC_ID_DVVIDEO, MKTAG('d', 'v', 'h', '1') },
110− { CODEC_ID_DVVIDEO, MKTAG('d', 'v', 's', 'l') },
111− { CODEC_ID_DVVIDEO, MKTAG('d', 'v', '2', '5') },
112− { CODEC_ID_DVVIDEO, MKTAG('d', 'v', '5', '0') },
113− { CODEC_ID_DVVIDEO, MKTAG('c', 'd', 'v', 'c') }, /* Canopus DV */
114− { CODEC_ID_DVVIDEO, MKTAG('C', 'D', 'V', 'H') }, /* Canopus DV */
115− { CODEC_ID_DVVIDEO, MKTAG('C', 'D', 'V', '5') }, /* Canopus DV */
116− { CODEC_ID_DVVIDEO, MKTAG('d', 'v', 'c', ' ') },
117− { CODEC_ID_DVVIDEO, MKTAG('d', 'v', 'c', 's') },
118− { CODEC_ID_DVVIDEO, MKTAG('d', 'v', 'h', '1') },
119− { CODEC_ID_MPEG1VIDEO, MKTAG('m', 'p', 'g', '1') },
120− { CODEC_ID_MPEG1VIDEO, MKTAG('m', 'p', 'g', '2') },
121− { CODEC_ID_MPEG2VIDEO, MKTAG('m', 'p', 'g', '2') },
122− { CODEC_ID_MPEG2VIDEO, MKTAG('M', 'P', 'E', 'G') },
123− { CODEC_ID_MPEG1VIDEO, MKTAG('P', 'I', 'M', '1') },
124− { CODEC_ID_MPEG2VIDEO, MKTAG('P', 'I', 'M', '2') },
125− { CODEC_ID_MPEG1VIDEO, MKTAG('V', 'C', 'R', '2') },
126− { CODEC_ID_MPEG1VIDEO, MKTAG( 1 , 0 , 0 , 16) },
127− { CODEC_ID_MPEG2VIDEO, MKTAG( 2 , 0 , 0 , 16) },
128− { CODEC_ID_MPEG4, MKTAG( 4 , 0 , 0 , 16) },
129− { CODEC_ID_MPEG2VIDEO, MKTAG('D', 'V', 'R', ' ') },
130− { CODEC_ID_MPEG2VIDEO, MKTAG('M', 'M', 'E', 'S') },
131− { CODEC_ID_MPEG2VIDEO, MKTAG('L', 'M', 'P', '2') }, /* Lead MPEG2 in avi */
132− { CODEC_ID_MPEG2VIDEO, MKTAG('s', 'l', 'i', 'f') },
133− { CODEC_ID_MPEG2VIDEO, MKTAG('E', 'M', '2', 'V') },
134− { CODEC_ID_MPEG2VIDEO, MKTAG('M', '7', '0', '1') }, /* Matrox MPEG2 intra-only */
135− { CODEC_ID_MPEG2VIDEO, MKTAG('m', 'p', 'g', 'v') },
136− { CODEC_ID_MJPEG, MKTAG('M', 'J', 'P', 'G') },
137− { CODEC_ID_MJPEG, MKTAG('L', 'J', 'P', 'G') },
138− { CODEC_ID_MJPEG, MKTAG('d', 'm', 'b', '1') },
139− { CODEC_ID_MJPEG, MKTAG('m', 'j', 'p', 'a') },
140− { CODEC_ID_LJPEG, MKTAG('L', 'J', 'P', 'G') },
141− { CODEC_ID_MJPEG, MKTAG('J', 'P', 'G', 'L') }, /* Pegasus lossless JPEG */
142− { CODEC_ID_JPEGLS, MKTAG('M', 'J', 'L', 'S') }, /* JPEG-LS custom FOURCC for avi - encoder */
143− { CODEC_ID_JPEGLS, MKTAG('M', 'J', 'P', 'G') },
144− { CODEC_ID_MJPEG, MKTAG('M', 'J', 'L', 'S') }, /* JPEG-LS custom FOURCC for avi - decoder */
145− { CODEC_ID_MJPEG, MKTAG('j', 'p', 'e', 'g') },
146− { CODEC_ID_MJPEG, MKTAG('I', 'J', 'P', 'G') },
147− { CODEC_ID_MJPEG, MKTAG('A', 'V', 'R', 'n') },
148− { CODEC_ID_MJPEG, MKTAG('A', 'C', 'D', 'V') },
149− { CODEC_ID_MJPEG, MKTAG('Q', 'I', 'V', 'G') },
150− { CODEC_ID_MJPEG, MKTAG('S', 'L', 'M', 'J') }, /* SL M-JPEG */
151− { CODEC_ID_MJPEG, MKTAG('C', 'J', 'P', 'G') }, /* Creative Webcam JPEG */
152− { CODEC_ID_MJPEG, MKTAG('I', 'J', 'L', 'V') }, /* Intel JPEG Library Video Codec */
153− { CODEC_ID_MJPEG, MKTAG('M', 'V', 'J', 'P') }, /* Midvid JPEG Video Codec */
154− { CODEC_ID_MJPEG, MKTAG('A', 'V', 'I', '1') },
155− { CODEC_ID_MJPEG, MKTAG('A', 'V', 'I', '2') },
156− { CODEC_ID_MJPEG, MKTAG('M', 'T', 'S', 'J') },
157− { CODEC_ID_MJPEG, MKTAG('Z', 'J', 'P', 'G') }, /* Paradigm Matrix M-JPEG Codec */
158− { CODEC_ID_MJPEG, MKTAG('M', 'M', 'J', 'P') },
159− { CODEC_ID_HUFFYUV, MKTAG('H', 'F', 'Y', 'U') },
160− { CODEC_ID_FFVHUFF, MKTAG('F', 'F', 'V', 'H') },
161− { CODEC_ID_CYUV, MKTAG('C', 'Y', 'U', 'V') },
162− { CODEC_ID_RAWVIDEO, MKTAG( 0 , 0 , 0 , 0 ) },
163− { CODEC_ID_RAWVIDEO, MKTAG( 3 , 0 , 0 , 0 ) },
164− { CODEC_ID_RAWVIDEO, MKTAG('I', '4', '2', '0') },
165− { CODEC_ID_RAWVIDEO, MKTAG('Y', 'U', 'Y', '2') },
166− { CODEC_ID_RAWVIDEO, MKTAG('Y', '4', '2', '2') },
167− { CODEC_ID_RAWVIDEO, MKTAG('V', '4', '2', '2') },
168− { CODEC_ID_RAWVIDEO, MKTAG('Y', 'U', 'N', 'V') },
169− { CODEC_ID_RAWVIDEO, MKTAG('U', 'Y', 'N', 'V') },
170− { CODEC_ID_RAWVIDEO, MKTAG('U', 'Y', 'N', 'Y') },
171− { CODEC_ID_RAWVIDEO, MKTAG('u', 'y', 'v', '1') },
172− { CODEC_ID_RAWVIDEO, MKTAG('2', 'V', 'u', '1') },
173− { CODEC_ID_RAWVIDEO, MKTAG('2', 'v', 'u', 'y') },
174− { CODEC_ID_RAWVIDEO, MKTAG('y', 'u', 'v', 's') },
175− { CODEC_ID_RAWVIDEO, MKTAG('y', 'u', 'v', '2') },
176− { CODEC_ID_RAWVIDEO, MKTAG('P', '4', '2', '2') },
177− { CODEC_ID_RAWVIDEO, MKTAG('Y', 'V', '1', '2') },
178− { CODEC_ID_RAWVIDEO, MKTAG('Y', 'V', '1', '6') },
179− { CODEC_ID_RAWVIDEO, MKTAG('Y', 'V', '2', '4') },
180− { CODEC_ID_RAWVIDEO, MKTAG('U', 'Y', 'V', 'Y') },
181− { CODEC_ID_RAWVIDEO, MKTAG('V', 'Y', 'U', 'Y') },
182− { CODEC_ID_RAWVIDEO, MKTAG('I', 'Y', 'U', 'V') },
183− { CODEC_ID_RAWVIDEO, MKTAG('Y', '8', '0', '0') },
184− { CODEC_ID_RAWVIDEO, MKTAG('Y', '8', ' ', ' ') },
185− { CODEC_ID_RAWVIDEO, MKTAG('H', 'D', 'Y', 'C') },
186− { CODEC_ID_RAWVIDEO, MKTAG('Y', 'V', 'U', '9') },
187− { CODEC_ID_RAWVIDEO, MKTAG('V', 'D', 'T', 'Z') }, /* SoftLab-NSK VideoTizer */
188− { CODEC_ID_RAWVIDEO, MKTAG('Y', '4', '1', '1') },
189− { CODEC_ID_RAWVIDEO, MKTAG('N', 'V', '1', '2') },
190− { CODEC_ID_RAWVIDEO, MKTAG('N', 'V', '2', '1') },
191− { CODEC_ID_RAWVIDEO, MKTAG('Y', '4', '1', 'B') },
192− { CODEC_ID_RAWVIDEO, MKTAG('Y', '4', '2', 'B') },
193− { CODEC_ID_RAWVIDEO, MKTAG('Y', 'U', 'V', '9') },
194− { CODEC_ID_RAWVIDEO, MKTAG('Y', 'V', 'U', '9') },
195− { CODEC_ID_RAWVIDEO, MKTAG('a', 'u', 'v', '2') },
196− { CODEC_ID_FRWU, MKTAG('F', 'R', 'W', 'U') },
197− { CODEC_ID_R10K, MKTAG('R', '1', '0', 'k') },
198− { CODEC_ID_R210, MKTAG('r', '2', '1', '0') },
199− { CODEC_ID_V210, MKTAG('v', '2', '1', '0') },
200− { CODEC_ID_V410, MKTAG('v', '4', '1', '0') },
201− { CODEC_ID_INDEO3, MKTAG('I', 'V', '3', '1') },
202− { CODEC_ID_INDEO3, MKTAG('I', 'V', '3', '2') },
203− { CODEC_ID_INDEO4, MKTAG('I', 'V', '4', '1') },
204− { CODEC_ID_INDEO5, MKTAG('I', 'V', '5', '0') },
205− { CODEC_ID_VP3, MKTAG('V', 'P', '3', '1') },
206− { CODEC_ID_VP3, MKTAG('V', 'P', '3', '0') },
207− { CODEC_ID_VP5, MKTAG('V', 'P', '5', '0') },
208− { CODEC_ID_VP6, MKTAG('V', 'P', '6', '0') },
209− { CODEC_ID_VP6, MKTAG('V', 'P', '6', '1') },
210− { CODEC_ID_VP6, MKTAG('V', 'P', '6', '2') },
211− { CODEC_ID_VP6F, MKTAG('V', 'P', '6', 'F') },
212− { CODEC_ID_VP6F, MKTAG('F', 'L', 'V', '4') },
213− { CODEC_ID_VP8, MKTAG('V', 'P', '8', '0') },
214− { CODEC_ID_ASV1, MKTAG('A', 'S', 'V', '1') },
215− { CODEC_ID_ASV2, MKTAG('A', 'S', 'V', '2') },
216− { CODEC_ID_VCR1, MKTAG('V', 'C', 'R', '1') },
217− { CODEC_ID_FFV1, MKTAG('F', 'F', 'V', '1') },
218− { CODEC_ID_XAN_WC4, MKTAG('X', 'x', 'a', 'n') },
219− { CODEC_ID_MIMIC, MKTAG('L', 'M', '2', '0') },
220− { CODEC_ID_MSRLE, MKTAG('m', 'r', 'l', 'e') },
221− { CODEC_ID_MSRLE, MKTAG( 1 , 0 , 0 , 0 ) },
222− { CODEC_ID_MSRLE, MKTAG( 2 , 0 , 0 , 0 ) },
223− { CODEC_ID_MSVIDEO1, MKTAG('M', 'S', 'V', 'C') },
224− { CODEC_ID_MSVIDEO1, MKTAG('m', 's', 'v', 'c') },
225− { CODEC_ID_MSVIDEO1, MKTAG('C', 'R', 'A', 'M') },
226− { CODEC_ID_MSVIDEO1, MKTAG('c', 'r', 'a', 'm') },
227− { CODEC_ID_MSVIDEO1, MKTAG('W', 'H', 'A', 'M') },
228− { CODEC_ID_MSVIDEO1, MKTAG('w', 'h', 'a', 'm') },
229− { CODEC_ID_CINEPAK, MKTAG('c', 'v', 'i', 'd') },
230− { CODEC_ID_TRUEMOTION1, MKTAG('D', 'U', 'C', 'K') },
231− { CODEC_ID_TRUEMOTION1, MKTAG('P', 'V', 'E', 'Z') },
232− { CODEC_ID_MSZH, MKTAG('M', 'S', 'Z', 'H') },
233− { CODEC_ID_ZLIB, MKTAG('Z', 'L', 'I', 'B') },
234− { CODEC_ID_SNOW, MKTAG('S', 'N', 'O', 'W') },
235− { CODEC_ID_4XM, MKTAG('4', 'X', 'M', 'V') },
236− { CODEC_ID_FLV1, MKTAG('F', 'L', 'V', '1') },
237− { CODEC_ID_FLASHSV, MKTAG('F', 'S', 'V', '1') },
238− { CODEC_ID_SVQ1, MKTAG('s', 'v', 'q', '1') },
239− { CODEC_ID_TSCC, MKTAG('t', 's', 'c', 'c') },
240− { CODEC_ID_ULTI, MKTAG('U', 'L', 'T', 'I') },
241− { CODEC_ID_VIXL, MKTAG('V', 'I', 'X', 'L') },
242− { CODEC_ID_QPEG, MKTAG('Q', 'P', 'E', 'G') },
243− { CODEC_ID_QPEG, MKTAG('Q', '1', '.', '0') },
244− { CODEC_ID_QPEG, MKTAG('Q', '1', '.', '1') },
245− { CODEC_ID_WMV3, MKTAG('W', 'M', 'V', '3') },
246− { CODEC_ID_WMV3IMAGE, MKTAG('W', 'M', 'V', 'P') },
247− { CODEC_ID_VC1, MKTAG('W', 'V', 'C', '1') },
248− { CODEC_ID_VC1, MKTAG('W', 'M', 'V', 'A') },
249− { CODEC_ID_VC1IMAGE, MKTAG('W', 'V', 'P', '2') },
250− { CODEC_ID_LOCO, MKTAG('L', 'O', 'C', 'O') },
251− { CODEC_ID_WNV1, MKTAG('W', 'N', 'V', '1') },
252− { CODEC_ID_AASC, MKTAG('A', 'A', 'S', 'C') },
253− { CODEC_ID_INDEO2, MKTAG('R', 'T', '2', '1') },
254− { CODEC_ID_FRAPS, MKTAG('F', 'P', 'S', '1') },
255− { CODEC_ID_THEORA, MKTAG('t', 'h', 'e', 'o') },
256− { CODEC_ID_TRUEMOTION2, MKTAG('T', 'M', '2', '0') },
257− { CODEC_ID_CSCD, MKTAG('C', 'S', 'C', 'D') },
258− { CODEC_ID_ZMBV, MKTAG('Z', 'M', 'B', 'V') },
259− { CODEC_ID_KMVC, MKTAG('K', 'M', 'V', 'C') },
260− { CODEC_ID_CAVS, MKTAG('C', 'A', 'V', 'S') },
261− { CODEC_ID_JPEG2000, MKTAG('m', 'j', 'p', '2') },
262− { CODEC_ID_JPEG2000, MKTAG('M', 'J', '2', 'C') },
263− { CODEC_ID_JPEG2000, MKTAG('L', 'J', '2', 'C') },
264− { CODEC_ID_JPEG2000, MKTAG('L', 'J', '2', 'K') },
265− { CODEC_ID_VMNC, MKTAG('V', 'M', 'n', 'c') },
266− { CODEC_ID_TARGA, MKTAG('t', 'g', 'a', ' ') },
267− { CODEC_ID_PNG, MKTAG('M', 'P', 'N', 'G') },
268− { CODEC_ID_PNG, MKTAG('P', 'N', 'G', '1') },
269− { CODEC_ID_CLJR, MKTAG('C', 'L', 'J', 'R') },
270− { CODEC_ID_DIRAC, MKTAG('d', 'r', 'a', 'c') },
271− { CODEC_ID_RPZA, MKTAG('a', 'z', 'p', 'r') },
272− { CODEC_ID_RPZA, MKTAG('R', 'P', 'Z', 'A') },
273− { CODEC_ID_RPZA, MKTAG('r', 'p', 'z', 'a') },
274− { CODEC_ID_SP5X, MKTAG('S', 'P', '5', '4') },
275− { CODEC_ID_AURA, MKTAG('A', 'U', 'R', 'A') },
276− { CODEC_ID_AURA2, MKTAG('A', 'U', 'R', '2') },
277− { CODEC_ID_DPX, MKTAG('d', 'p', 'x', ' ') },
278− { CODEC_ID_KGV1, MKTAG('K', 'G', 'V', '1') },
279− { CODEC_ID_LAGARITH, MKTAG('L', 'A', 'G', 'S') },
280− { CODEC_ID_UTVIDEO, MKTAG('U', 'L', 'R', 'A') },
281− { CODEC_ID_UTVIDEO, MKTAG('U', 'L', 'R', 'G') },
282− { CODEC_ID_UTVIDEO, MKTAG('U', 'L', 'Y', '0') },
283− { CODEC_ID_UTVIDEO, MKTAG('U', 'L', 'Y', '2') },
284− { CODEC_ID_VBLE, MKTAG('V', 'B', 'L', 'E') },
285− { CODEC_ID_DXTORY, MKTAG('x', 't', 'o', 'r') },
286− { CODEC_ID_ZEROCODEC, MKTAG('Z', 'E', 'C', 'O') },
287− { CODEC_ID_MSS1, MKTAG('M', 'S', 'S', '1') },
288− { CODEC_ID_MSA1, MKTAG('M', 'S', 'A', '1') },
289− { CODEC_ID_TSCC2, MKTAG('T', 'S', 'C', '2') },
290− { CODEC_ID_MTS2, MKTAG('M', 'T', 'S', '2') },
291− { CODEC_ID_CLLC, MKTAG('C', 'L', 'L', 'C') },
292− { CODEC_ID_NONE, 0 }
32+ { AV_CODEC_ID_H264, MKTAG('H', '2', '6', '4') },
33+ { AV_CODEC_ID_H264, MKTAG('h', '2', '6', '4') },
34+ { AV_CODEC_ID_H264, MKTAG('X', '2', '6', '4') },
35+ { AV_CODEC_ID_H264, MKTAG('x', '2', '6', '4') },
36+ { AV_CODEC_ID_H264, MKTAG('a', 'v', 'c', '1') },
37+ { AV_CODEC_ID_H264, MKTAG('D', 'A', 'V', 'C') },
38+ { AV_CODEC_ID_H264, MKTAG('V', 'S', 'S', 'H') },
39+ { AV_CODEC_ID_H263, MKTAG('H', '2', '6', '3') },
40+ { AV_CODEC_ID_H263, MKTAG('X', '2', '6', '3') },
41+ { AV_CODEC_ID_H263, MKTAG('T', '2', '6', '3') },
42+ { AV_CODEC_ID_H263, MKTAG('L', '2', '6', '3') },
43+ { AV_CODEC_ID_H263, MKTAG('V', 'X', '1', 'K') },
44+ { AV_CODEC_ID_H263, MKTAG('Z', 'y', 'G', 'o') },
45+ { AV_CODEC_ID_H263, MKTAG('M', '2', '6', '3') },
46+ { AV_CODEC_ID_H263P, MKTAG('H', '2', '6', '3') },
47+ { AV_CODEC_ID_H263I, MKTAG('I', '2', '6', '3') }, /* intel h263 */
48+ { AV_CODEC_ID_H261, MKTAG('H', '2', '6', '1') },
49+ { AV_CODEC_ID_H263P, MKTAG('U', '2', '6', '3') },
50+ { AV_CODEC_ID_H263P, MKTAG('v', 'i', 'v', '1') },
51+ { AV_CODEC_ID_MPEG4, MKTAG('F', 'M', 'P', '4') },
52+ { AV_CODEC_ID_MPEG4, MKTAG('D', 'I', 'V', 'X') },
53+ { AV_CODEC_ID_MPEG4, MKTAG('D', 'X', '5', '0') },
54+ { AV_CODEC_ID_MPEG4, MKTAG('X', 'V', 'I', 'D') },
55+ { AV_CODEC_ID_MPEG4, MKTAG('M', 'P', '4', 'S') },
56+ { AV_CODEC_ID_MPEG4, MKTAG('M', '4', 'S', '2') },
57+ { AV_CODEC_ID_MPEG4, MKTAG( 4 , 0 , 0 , 0 ) }, /* some broken avi use this */
58+ { AV_CODEC_ID_MPEG4, MKTAG('D', 'I', 'V', '1') },
59+ { AV_CODEC_ID_MPEG4, MKTAG('B', 'L', 'Z', '0') },
60+ { AV_CODEC_ID_MPEG4, MKTAG('m', 'p', '4', 'v') },
61+ { AV_CODEC_ID_MPEG4, MKTAG('U', 'M', 'P', '4') },
62+ { AV_CODEC_ID_MPEG4, MKTAG('W', 'V', '1', 'F') },
63+ { AV_CODEC_ID_MPEG4, MKTAG('S', 'E', 'D', 'G') },
64+ { AV_CODEC_ID_MPEG4, MKTAG('R', 'M', 'P', '4') },
65+ { AV_CODEC_ID_MPEG4, MKTAG('3', 'I', 'V', '2') },
66+ { AV_CODEC_ID_MPEG4, MKTAG('W', 'A', 'W', 'V') }, /* WaWv MPEG-4 Video Codec */
67+ { AV_CODEC_ID_MPEG4, MKTAG('F', 'F', 'D', 'S') },
68+ { AV_CODEC_ID_MPEG4, MKTAG('F', 'V', 'F', 'W') },
69+ { AV_CODEC_ID_MPEG4, MKTAG('D', 'C', 'O', 'D') },
70+ { AV_CODEC_ID_MPEG4, MKTAG('M', 'V', 'X', 'M') },
71+ { AV_CODEC_ID_MPEG4, MKTAG('P', 'M', '4', 'V') },
72+ { AV_CODEC_ID_MPEG4, MKTAG('S', 'M', 'P', '4') },
73+ { AV_CODEC_ID_MPEG4, MKTAG('D', 'X', 'G', 'M') },
74+ { AV_CODEC_ID_MPEG4, MKTAG('V', 'I', 'D', 'M') },
75+ { AV_CODEC_ID_MPEG4, MKTAG('M', '4', 'T', '3') },
76+ { AV_CODEC_ID_MPEG4, MKTAG('G', 'E', 'O', 'X') },
77+ { AV_CODEC_ID_MPEG4, MKTAG('H', 'D', 'X', '4') }, /* flipped video */
78+ { AV_CODEC_ID_MPEG4, MKTAG('D', 'M', 'K', '2') },
79+ { AV_CODEC_ID_MPEG4, MKTAG('D', 'I', 'G', 'I') },
80+ { AV_CODEC_ID_MPEG4, MKTAG('I', 'N', 'M', 'C') },
81+ { AV_CODEC_ID_MPEG4, MKTAG('E', 'P', 'H', 'V') }, /* Ephv MPEG-4 */
82+ { AV_CODEC_ID_MPEG4, MKTAG('E', 'M', '4', 'A') },
83+ { AV_CODEC_ID_MPEG4, MKTAG('M', '4', 'C', 'C') }, /* Divio MPEG-4 */
84+ { AV_CODEC_ID_MPEG4, MKTAG('S', 'N', '4', '0') },
85+ { AV_CODEC_ID_MPEG4, MKTAG('V', 'S', 'P', 'X') },
86+ { AV_CODEC_ID_MPEG4, MKTAG('U', 'L', 'D', 'X') },
87+ { AV_CODEC_ID_MPEG4, MKTAG('G', 'E', 'O', 'V') },
88+ { AV_CODEC_ID_MPEG4, MKTAG('S', 'I', 'P', 'P') }, /* Samsung SHR-6040 */
89+ { AV_CODEC_ID_MPEG4, MKTAG('X', 'V', 'I', 'X') },
90+ { AV_CODEC_ID_MPEG4, MKTAG('D', 'r', 'e', 'X') },
91+ { AV_CODEC_ID_MSMPEG4V3, MKTAG('M', 'P', '4', '3') },
92+ { AV_CODEC_ID_MSMPEG4V3, MKTAG('D', 'I', 'V', '3') },
93+ { AV_CODEC_ID_MSMPEG4V3, MKTAG('M', 'P', 'G', '3') },
94+ { AV_CODEC_ID_MSMPEG4V3, MKTAG('D', 'I', 'V', '5') },
95+ { AV_CODEC_ID_MSMPEG4V3, MKTAG('D', 'I', 'V', '6') },
96+ { AV_CODEC_ID_MSMPEG4V3, MKTAG('D', 'I', 'V', '4') },
97+ { AV_CODEC_ID_MSMPEG4V3, MKTAG('D', 'V', 'X', '3') },
98+ { AV_CODEC_ID_MSMPEG4V3, MKTAG('A', 'P', '4', '1') },
99+ { AV_CODEC_ID_MSMPEG4V3, MKTAG('C', 'O', 'L', '1') },
100+ { AV_CODEC_ID_MSMPEG4V3, MKTAG('C', 'O', 'L', '0') },
101+ { AV_CODEC_ID_MSMPEG4V2, MKTAG('M', 'P', '4', '2') },
102+ { AV_CODEC_ID_MSMPEG4V2, MKTAG('D', 'I', 'V', '2') },
103+ { AV_CODEC_ID_MSMPEG4V1, MKTAG('M', 'P', 'G', '4') },
104+ { AV_CODEC_ID_MSMPEG4V1, MKTAG('M', 'P', '4', '1') },
105+ { AV_CODEC_ID_WMV1, MKTAG('W', 'M', 'V', '1') },
106+ { AV_CODEC_ID_WMV2, MKTAG('W', 'M', 'V', '2') },
107+ { AV_CODEC_ID_DVVIDEO, MKTAG('d', 'v', 's', 'd') },
108+ { AV_CODEC_ID_DVVIDEO, MKTAG('d', 'v', 'h', 'd') },
109+ { AV_CODEC_ID_DVVIDEO, MKTAG('d', 'v', 'h', '1') },
110+ { AV_CODEC_ID_DVVIDEO, MKTAG('d', 'v', 's', 'l') },
111+ { AV_CODEC_ID_DVVIDEO, MKTAG('d', 'v', '2', '5') },
112+ { AV_CODEC_ID_DVVIDEO, MKTAG('d', 'v', '5', '0') },
113+ { AV_CODEC_ID_DVVIDEO, MKTAG('c', 'd', 'v', 'c') }, /* Canopus DV */
114+ { AV_CODEC_ID_DVVIDEO, MKTAG('C', 'D', 'V', 'H') }, /* Canopus DV */
115+ { AV_CODEC_ID_DVVIDEO, MKTAG('C', 'D', 'V', '5') }, /* Canopus DV */
116+ { AV_CODEC_ID_DVVIDEO, MKTAG('d', 'v', 'c', ' ') },
117+ { AV_CODEC_ID_DVVIDEO, MKTAG('d', 'v', 'c', 's') },
118+ { AV_CODEC_ID_DVVIDEO, MKTAG('d', 'v', 'h', '1') },
119+ { AV_CODEC_ID_MPEG1VIDEO, MKTAG('m', 'p', 'g', '1') },
120+ { AV_CODEC_ID_MPEG1VIDEO, MKTAG('m', 'p', 'g', '2') },
121+ { AV_CODEC_ID_MPEG2VIDEO, MKTAG('m', 'p', 'g', '2') },
122+ { AV_CODEC_ID_MPEG2VIDEO, MKTAG('M', 'P', 'E', 'G') },
123+ { AV_CODEC_ID_MPEG1VIDEO, MKTAG('P', 'I', 'M', '1') },
124+ { AV_CODEC_ID_MPEG2VIDEO, MKTAG('P', 'I', 'M', '2') },
125+ { AV_CODEC_ID_MPEG1VIDEO, MKTAG('V', 'C', 'R', '2') },
126+ { AV_CODEC_ID_MPEG1VIDEO, MKTAG( 1 , 0 , 0 , 16) },
127+ { AV_CODEC_ID_MPEG2VIDEO, MKTAG( 2 , 0 , 0 , 16) },
128+ { AV_CODEC_ID_MPEG4, MKTAG( 4 , 0 , 0 , 16) },
129+ { AV_CODEC_ID_MPEG2VIDEO, MKTAG('D', 'V', 'R', ' ') },
130+ { AV_CODEC_ID_MPEG2VIDEO, MKTAG('M', 'M', 'E', 'S') },
131+ { AV_CODEC_ID_MPEG2VIDEO, MKTAG('L', 'M', 'P', '2') }, /* Lead MPEG2 in avi */
132+ { AV_CODEC_ID_MPEG2VIDEO, MKTAG('s', 'l', 'i', 'f') },
133+ { AV_CODEC_ID_MPEG2VIDEO, MKTAG('E', 'M', '2', 'V') },
134+ { AV_CODEC_ID_MPEG2VIDEO, MKTAG('M', '7', '0', '1') }, /* Matrox MPEG2 intra-only */
135+ { AV_CODEC_ID_MPEG2VIDEO, MKTAG('m', 'p', 'g', 'v') },
136+ { AV_CODEC_ID_MJPEG, MKTAG('M', 'J', 'P', 'G') },
137+ { AV_CODEC_ID_MJPEG, MKTAG('L', 'J', 'P', 'G') },
138+ { AV_CODEC_ID_MJPEG, MKTAG('d', 'm', 'b', '1') },
139+ { AV_CODEC_ID_MJPEG, MKTAG('m', 'j', 'p', 'a') },
140+ { AV_CODEC_ID_LJPEG, MKTAG('L', 'J', 'P', 'G') },
141+ { AV_CODEC_ID_MJPEG, MKTAG('J', 'P', 'G', 'L') }, /* Pegasus lossless JPEG */
142+ { AV_CODEC_ID_JPEGLS, MKTAG('M', 'J', 'L', 'S') }, /* JPEG-LS custom FOURCC for avi - encoder */
143+ { AV_CODEC_ID_JPEGLS, MKTAG('M', 'J', 'P', 'G') },
144+ { AV_CODEC_ID_MJPEG, MKTAG('M', 'J', 'L', 'S') }, /* JPEG-LS custom FOURCC for avi - decoder */
145+ { AV_CODEC_ID_MJPEG, MKTAG('j', 'p', 'e', 'g') },
146+ { AV_CODEC_ID_MJPEG, MKTAG('I', 'J', 'P', 'G') },
147+ { AV_CODEC_ID_MJPEG, MKTAG('A', 'V', 'R', 'n') },
148+ { AV_CODEC_ID_MJPEG, MKTAG('A', 'C', 'D', 'V') },
149+ { AV_CODEC_ID_MJPEG, MKTAG('Q', 'I', 'V', 'G') },
150+ { AV_CODEC_ID_MJPEG, MKTAG('S', 'L', 'M', 'J') }, /* SL M-JPEG */
151+ { AV_CODEC_ID_MJPEG, MKTAG('C', 'J', 'P', 'G') }, /* Creative Webcam JPEG */
152+ { AV_CODEC_ID_MJPEG, MKTAG('I', 'J', 'L', 'V') }, /* Intel JPEG Library Video Codec */
153+ { AV_CODEC_ID_MJPEG, MKTAG('M', 'V', 'J', 'P') }, /* Midvid JPEG Video Codec */
154+ { AV_CODEC_ID_MJPEG, MKTAG('A', 'V', 'I', '1') },
155+ { AV_CODEC_ID_MJPEG, MKTAG('A', 'V', 'I', '2') },
156+ { AV_CODEC_ID_MJPEG, MKTAG('M', 'T', 'S', 'J') },
157+ { AV_CODEC_ID_MJPEG, MKTAG('Z', 'J', 'P', 'G') }, /* Paradigm Matrix M-JPEG Codec */
158+ { AV_CODEC_ID_MJPEG, MKTAG('M', 'M', 'J', 'P') },
159+ { AV_CODEC_ID_HUFFYUV, MKTAG('H', 'F', 'Y', 'U') },
160+ { AV_CODEC_ID_FFVHUFF, MKTAG('F', 'F', 'V', 'H') },
161+ { AV_CODEC_ID_CYUV, MKTAG('C', 'Y', 'U', 'V') },
162+ { AV_CODEC_ID_RAWVIDEO, MKTAG( 0 , 0 , 0 , 0 ) },
163+ { AV_CODEC_ID_RAWVIDEO, MKTAG( 3 , 0 , 0 , 0 ) },
164+ { AV_CODEC_ID_RAWVIDEO, MKTAG('I', '4', '2', '0') },
165+ { AV_CODEC_ID_RAWVIDEO, MKTAG('Y', 'U', 'Y', '2') },
166+ { AV_CODEC_ID_RAWVIDEO, MKTAG('Y', '4', '2', '2') },
167+ { AV_CODEC_ID_RAWVIDEO, MKTAG('V', '4', '2', '2') },
168+ { AV_CODEC_ID_RAWVIDEO, MKTAG('Y', 'U', 'N', 'V') },
169+ { AV_CODEC_ID_RAWVIDEO, MKTAG('U', 'Y', 'N', 'V') },
170+ { AV_CODEC_ID_RAWVIDEO, MKTAG('U', 'Y', 'N', 'Y') },
171+ { AV_CODEC_ID_RAWVIDEO, MKTAG('u', 'y', 'v', '1') },
172+ { AV_CODEC_ID_RAWVIDEO, MKTAG('2', 'V', 'u', '1') },
173+ { AV_CODEC_ID_RAWVIDEO, MKTAG('2', 'v', 'u', 'y') },
174+ { AV_CODEC_ID_RAWVIDEO, MKTAG('y', 'u', 'v', 's') },
175+ { AV_CODEC_ID_RAWVIDEO, MKTAG('y', 'u', 'v', '2') },
176+ { AV_CODEC_ID_RAWVIDEO, MKTAG('P', '4', '2', '2') },
177+ { AV_CODEC_ID_RAWVIDEO, MKTAG('Y', 'V', '1', '2') },
178+ { AV_CODEC_ID_RAWVIDEO, MKTAG('Y', 'V', '1', '6') },
179+ { AV_CODEC_ID_RAWVIDEO, MKTAG('Y', 'V', '2', '4') },
180+ { AV_CODEC_ID_RAWVIDEO, MKTAG('U', 'Y', 'V', 'Y') },
181+ { AV_CODEC_ID_RAWVIDEO, MKTAG('V', 'Y', 'U', 'Y') },
182+ { AV_CODEC_ID_RAWVIDEO, MKTAG('I', 'Y', 'U', 'V') },
183+ { AV_CODEC_ID_RAWVIDEO, MKTAG('Y', '8', '0', '0') },
184+ { AV_CODEC_ID_RAWVIDEO, MKTAG('Y', '8', ' ', ' ') },
185+ { AV_CODEC_ID_RAWVIDEO, MKTAG('H', 'D', 'Y', 'C') },
186+ { AV_CODEC_ID_RAWVIDEO, MKTAG('Y', 'V', 'U', '9') },
187+ { AV_CODEC_ID_RAWVIDEO, MKTAG('V', 'D', 'T', 'Z') }, /* SoftLab-NSK VideoTizer */
188+ { AV_CODEC_ID_RAWVIDEO, MKTAG('Y', '4', '1', '1') },
189+ { AV_CODEC_ID_RAWVIDEO, MKTAG('N', 'V', '1', '2') },
190+ { AV_CODEC_ID_RAWVIDEO, MKTAG('N', 'V', '2', '1') },
191+ { AV_CODEC_ID_RAWVIDEO, MKTAG('Y', '4', '1', 'B') },
192+ { AV_CODEC_ID_RAWVIDEO, MKTAG('Y', '4', '2', 'B') },
193+ { AV_CODEC_ID_RAWVIDEO, MKTAG('Y', 'U', 'V', '9') },
194+ { AV_CODEC_ID_RAWVIDEO, MKTAG('Y', 'V', 'U', '9') },
195+ { AV_CODEC_ID_RAWVIDEO, MKTAG('a', 'u', 'v', '2') },
196+ { AV_CODEC_ID_FRWU, MKTAG('F', 'R', 'W', 'U') },
197+ { AV_CODEC_ID_R10K, MKTAG('R', '1', '0', 'k') },
198+ { AV_CODEC_ID_R210, MKTAG('r', '2', '1', '0') },
199+ { AV_CODEC_ID_V210, MKTAG('v', '2', '1', '0') },
200+ { AV_CODEC_ID_V410, MKTAG('v', '4', '1', '0') },
201+ { AV_CODEC_ID_INDEO3, MKTAG('I', 'V', '3', '1') },
202+ { AV_CODEC_ID_INDEO3, MKTAG('I', 'V', '3', '2') },
203+ { AV_CODEC_ID_INDEO4, MKTAG('I', 'V', '4', '1') },
204+ { AV_CODEC_ID_INDEO5, MKTAG('I', 'V', '5', '0') },
205+ { AV_CODEC_ID_VP3, MKTAG('V', 'P', '3', '1') },
206+ { AV_CODEC_ID_VP3, MKTAG('V', 'P', '3', '0') },
207+ { AV_CODEC_ID_VP5, MKTAG('V', 'P', '5', '0') },
208+ { AV_CODEC_ID_VP6, MKTAG('V', 'P', '6', '0') },
209+ { AV_CODEC_ID_VP6, MKTAG('V', 'P', '6', '1') },
210+ { AV_CODEC_ID_VP6, MKTAG('V', 'P', '6', '2') },
211+ { AV_CODEC_ID_VP6F, MKTAG('V', 'P', '6', 'F') },
212+ { AV_CODEC_ID_VP6F, MKTAG('F', 'L', 'V', '4') },
213+ { AV_CODEC_ID_VP8, MKTAG('V', 'P', '8', '0') },
214+ { AV_CODEC_ID_ASV1, MKTAG('A', 'S', 'V', '1') },
215+ { AV_CODEC_ID_ASV2, MKTAG('A', 'S', 'V', '2') },
216+ { AV_CODEC_ID_VCR1, MKTAG('V', 'C', 'R', '1') },
217+ { AV_CODEC_ID_FFV1, MKTAG('F', 'F', 'V', '1') },
218+ { AV_CODEC_ID_XAN_WC4, MKTAG('X', 'x', 'a', 'n') },
219+ { AV_CODEC_ID_MIMIC, MKTAG('L', 'M', '2', '0') },
220+ { AV_CODEC_ID_MSRLE, MKTAG('m', 'r', 'l', 'e') },
221+ { AV_CODEC_ID_MSRLE, MKTAG( 1 , 0 , 0 , 0 ) },
222+ { AV_CODEC_ID_MSRLE, MKTAG( 2 , 0 , 0 , 0 ) },
223+ { AV_CODEC_ID_MSVIDEO1, MKTAG('M', 'S', 'V', 'C') },
224+ { AV_CODEC_ID_MSVIDEO1, MKTAG('m', 's', 'v', 'c') },
225+ { AV_CODEC_ID_MSVIDEO1, MKTAG('C', 'R', 'A', 'M') },
226+ { AV_CODEC_ID_MSVIDEO1, MKTAG('c', 'r', 'a', 'm') },
227+ { AV_CODEC_ID_MSVIDEO1, MKTAG('W', 'H', 'A', 'M') },
228+ { AV_CODEC_ID_MSVIDEO1, MKTAG('w', 'h', 'a', 'm') },
229+ { AV_CODEC_ID_CINEPAK, MKTAG('c', 'v', 'i', 'd') },
230+ { AV_CODEC_ID_TRUEMOTION1, MKTAG('D', 'U', 'C', 'K') },
231+ { AV_CODEC_ID_TRUEMOTION1, MKTAG('P', 'V', 'E', 'Z') },
232+ { AV_CODEC_ID_MSZH, MKTAG('M', 'S', 'Z', 'H') },
233+ { AV_CODEC_ID_ZLIB, MKTAG('Z', 'L', 'I', 'B') },
234+ { AV_CODEC_ID_SNOW, MKTAG('S', 'N', 'O', 'W') },
235+ { AV_CODEC_ID_4XM, MKTAG('4', 'X', 'M', 'V') },
236+ { AV_CODEC_ID_FLV1, MKTAG('F', 'L', 'V', '1') },
237+ { AV_CODEC_ID_FLASHSV, MKTAG('F', 'S', 'V', '1') },
238+ { AV_CODEC_ID_SVQ1, MKTAG('s', 'v', 'q', '1') },
239+ { AV_CODEC_ID_TSCC, MKTAG('t', 's', 'c', 'c') },
240+ { AV_CODEC_ID_ULTI, MKTAG('U', 'L', 'T', 'I') },
241+ { AV_CODEC_ID_VIXL, MKTAG('V', 'I', 'X', 'L') },
242+ { AV_CODEC_ID_QPEG, MKTAG('Q', 'P', 'E', 'G') },
243+ { AV_CODEC_ID_QPEG, MKTAG('Q', '1', '.', '0') },
244+ { AV_CODEC_ID_QPEG, MKTAG('Q', '1', '.', '1') },
245+ { AV_CODEC_ID_WMV3, MKTAG('W', 'M', 'V', '3') },
246+ { AV_CODEC_ID_WMV3IMAGE, MKTAG('W', 'M', 'V', 'P') },
247+ { AV_CODEC_ID_VC1, MKTAG('W', 'V', 'C', '1') },
248+ { AV_CODEC_ID_VC1, MKTAG('W', 'M', 'V', 'A') },
249+ { AV_CODEC_ID_VC1IMAGE, MKTAG('W', 'V', 'P', '2') },
250+ { AV_CODEC_ID_LOCO, MKTAG('L', 'O', 'C', 'O') },
251+ { AV_CODEC_ID_WNV1, MKTAG('W', 'N', 'V', '1') },
252+ { AV_CODEC_ID_AASC, MKTAG('A', 'A', 'S', 'C') },
253+ { AV_CODEC_ID_INDEO2, MKTAG('R', 'T', '2', '1') },
254+ { AV_CODEC_ID_FRAPS, MKTAG('F', 'P', 'S', '1') },
255+ { AV_CODEC_ID_THEORA, MKTAG('t', 'h', 'e', 'o') },
256+ { AV_CODEC_ID_TRUEMOTION2, MKTAG('T', 'M', '2', '0') },
257+ { AV_CODEC_ID_CSCD, MKTAG('C', 'S', 'C', 'D') },
258+ { AV_CODEC_ID_ZMBV, MKTAG('Z', 'M', 'B', 'V') },
259+ { AV_CODEC_ID_KMVC, MKTAG('K', 'M', 'V', 'C') },
260+ { AV_CODEC_ID_CAVS, MKTAG('C', 'A', 'V', 'S') },
261+ { AV_CODEC_ID_JPEG2000, MKTAG('m', 'j', 'p', '2') },
262+ { AV_CODEC_ID_JPEG2000, MKTAG('M', 'J', '2', 'C') },
263+ { AV_CODEC_ID_JPEG2000, MKTAG('L', 'J', '2', 'C') },
264+ { AV_CODEC_ID_JPEG2000, MKTAG('L', 'J', '2', 'K') },
265+ { AV_CODEC_ID_VMNC, MKTAG('V', 'M', 'n', 'c') },
266+ { AV_CODEC_ID_TARGA, MKTAG('t', 'g', 'a', ' ') },
267+ { AV_CODEC_ID_PNG, MKTAG('M', 'P', 'N', 'G') },
268+ { AV_CODEC_ID_PNG, MKTAG('P', 'N', 'G', '1') },
269+ { AV_CODEC_ID_CLJR, MKTAG('C', 'L', 'J', 'R') },
270+ { AV_CODEC_ID_DIRAC, MKTAG('d', 'r', 'a', 'c') },
271+ { AV_CODEC_ID_RPZA, MKTAG('a', 'z', 'p', 'r') },
272+ { AV_CODEC_ID_RPZA, MKTAG('R', 'P', 'Z', 'A') },
273+ { AV_CODEC_ID_RPZA, MKTAG('r', 'p', 'z', 'a') },
274+ { AV_CODEC_ID_SP5X, MKTAG('S', 'P', '5', '4') },
275+ { AV_CODEC_ID_AURA, MKTAG('A', 'U', 'R', 'A') },
276+ { AV_CODEC_ID_AURA2, MKTAG('A', 'U', 'R', '2') },
277+ { AV_CODEC_ID_DPX, MKTAG('d', 'p', 'x', ' ') },
278+ { AV_CODEC_ID_KGV1, MKTAG('K', 'G', 'V', '1') },
279+ { AV_CODEC_ID_LAGARITH, MKTAG('L', 'A', 'G', 'S') },
280+ { AV_CODEC_ID_UTVIDEO, MKTAG('U', 'L', 'R', 'A') },
281+ { AV_CODEC_ID_UTVIDEO, MKTAG('U', 'L', 'R', 'G') },
282+ { AV_CODEC_ID_UTVIDEO, MKTAG('U', 'L', 'Y', '0') },
283+ { AV_CODEC_ID_UTVIDEO, MKTAG('U', 'L', 'Y', '2') },
284+ { AV_CODEC_ID_VBLE, MKTAG('V', 'B', 'L', 'E') },
285+ { AV_CODEC_ID_DXTORY, MKTAG('x', 't', 'o', 'r') },
286+ { AV_CODEC_ID_ZEROCODEC, MKTAG('Z', 'E', 'C', 'O') },
287+ { AV_CODEC_ID_MSS1, MKTAG('M', 'S', 'S', '1') },
288+ { AV_CODEC_ID_MSA1, MKTAG('M', 'S', 'A', '1') },
289+ { AV_CODEC_ID_TSCC2, MKTAG('T', 'S', 'C', '2') },
290+ { AV_CODEC_ID_MTS2, MKTAG('M', 'T', 'S', '2') },
291+ { AV_CODEC_ID_CLLC, MKTAG('C', 'L', 'L', 'C') },
292+ { AV_CODEC_ID_NONE, 0 }
293293 };
294294
295295 const AVCodecTag ff_codec_wav_tags[] = {
296− { CODEC_ID_PCM_S16LE, 0x0001 },
297− { CODEC_ID_PCM_U8, 0x0001 }, /* must come after s16le in this list */
298− { CODEC_ID_PCM_S24LE, 0x0001 },
299− { CODEC_ID_PCM_S32LE, 0x0001 },
300− { CODEC_ID_ADPCM_MS, 0x0002 },
301− { CODEC_ID_PCM_F32LE, 0x0003 },
302− { CODEC_ID_PCM_F64LE, 0x0003 }, /* must come after f32le in this list */
303− { CODEC_ID_PCM_ALAW, 0x0006 },
304− { CODEC_ID_PCM_MULAW, 0x0007 },
305− { CODEC_ID_WMAVOICE, 0x000A },
306− { CODEC_ID_ADPCM_IMA_WAV, 0x0011 },
307− { CODEC_ID_PCM_ZORK, 0x0011 }, /* must come after adpcm_ima_wav in this list */
308− { CODEC_ID_ADPCM_YAMAHA, 0x0020 },
309− { CODEC_ID_TRUESPEECH, 0x0022 },
310− { CODEC_ID_GSM_MS, 0x0031 },
311− { CODEC_ID_ADPCM_G726, 0x0045 },
312− { CODEC_ID_MP2, 0x0050 },
313− { CODEC_ID_MP3, 0x0055 },
314− { CODEC_ID_AMR_NB, 0x0057 },
315− { CODEC_ID_AMR_WB, 0x0058 },
316− { CODEC_ID_ADPCM_IMA_DK4, 0x0061 }, /* rogue format number */
317− { CODEC_ID_ADPCM_IMA_DK3, 0x0062 }, /* rogue format number */
318− { CODEC_ID_ADPCM_IMA_WAV, 0x0069 },
319− { CODEC_ID_VOXWARE, 0x0075 },
320− { CODEC_ID_AAC, 0x00ff },
321− { CODEC_ID_SIPR, 0x0130 },
322− { CODEC_ID_WMAV1, 0x0160 },
323− { CODEC_ID_WMAV2, 0x0161 },
324− { CODEC_ID_WMAPRO, 0x0162 },
325− { CODEC_ID_WMALOSSLESS, 0x0163 },
326− { CODEC_ID_ADPCM_CT, 0x0200 },
327− { CODEC_ID_ATRAC3, 0x0270 },
328− { CODEC_ID_ADPCM_G722, 0x028F },
329− { CODEC_ID_IMC, 0x0401 },
330− { CODEC_ID_IAC, 0x0402 },
331− { CODEC_ID_GSM_MS, 0x1500 },
332− { CODEC_ID_TRUESPEECH, 0x1501 },
333− { CODEC_ID_AAC, 0x1600 }, /* ADTS AAC */
334− { CODEC_ID_AAC_LATM, 0x1602 },
335− { CODEC_ID_AC3, 0x2000 },
336− { CODEC_ID_DTS, 0x2001 },
337− { CODEC_ID_PCM_MULAW, 0x6c75 },
338− { CODEC_ID_AAC, 0x706d },
339− { CODEC_ID_AAC, 0x4143 },
340− { CODEC_ID_SPEEX, 0xA109 },
341− { CODEC_ID_FLAC, 0xF1AC },
342− { CODEC_ID_ADPCM_SWF, ('S'<<8)+'F' },
343− { CODEC_ID_VORBIS, ('V'<<8)+'o' }, //HACK/FIXME, does vorbis in WAV/AVI have an (in)official id?
296+ { AV_CODEC_ID_PCM_S16LE, 0x0001 },
297+ { AV_CODEC_ID_PCM_U8, 0x0001 }, /* must come after s16le in this list */
298+ { AV_CODEC_ID_PCM_S24LE, 0x0001 },
299+ { AV_CODEC_ID_PCM_S32LE, 0x0001 },
300+ { AV_CODEC_ID_ADPCM_MS, 0x0002 },
301+ { AV_CODEC_ID_PCM_F32LE, 0x0003 },
302+ { AV_CODEC_ID_PCM_F64LE, 0x0003 }, /* must come after f32le in this list */
303+ { AV_CODEC_ID_PCM_ALAW, 0x0006 },
304+ { AV_CODEC_ID_PCM_MULAW, 0x0007 },
305+ { AV_CODEC_ID_WMAVOICE, 0x000A },
306+ { AV_CODEC_ID_ADPCM_IMA_WAV, 0x0011 },
307+ { AV_CODEC_ID_PCM_ZORK, 0x0011 }, /* must come after adpcm_ima_wav in this list */
308+ { AV_CODEC_ID_ADPCM_YAMAHA, 0x0020 },
309+ { AV_CODEC_ID_TRUESPEECH, 0x0022 },
310+ { AV_CODEC_ID_GSM_MS, 0x0031 },
311+ { AV_CODEC_ID_ADPCM_G726, 0x0045 },
312+ { AV_CODEC_ID_MP2, 0x0050 },
313+ { AV_CODEC_ID_MP3, 0x0055 },
314+ { AV_CODEC_ID_AMR_NB, 0x0057 },
315+ { AV_CODEC_ID_AMR_WB, 0x0058 },
316+ { AV_CODEC_ID_ADPCM_IMA_DK4, 0x0061 }, /* rogue format number */
317+ { AV_CODEC_ID_ADPCM_IMA_DK3, 0x0062 }, /* rogue format number */
318+ { AV_CODEC_ID_ADPCM_IMA_WAV, 0x0069 },
319+ { AV_CODEC_ID_VOXWARE, 0x0075 },
320+ { AV_CODEC_ID_AAC, 0x00ff },
321+ { AV_CODEC_ID_SIPR, 0x0130 },
322+ { AV_CODEC_ID_WMAV1, 0x0160 },
323+ { AV_CODEC_ID_WMAV2, 0x0161 },
324+ { AV_CODEC_ID_WMAPRO, 0x0162 },
325+ { AV_CODEC_ID_WMALOSSLESS, 0x0163 },
326+ { AV_CODEC_ID_ADPCM_CT, 0x0200 },
327+ { AV_CODEC_ID_ATRAC3, 0x0270 },
328+ { AV_CODEC_ID_ADPCM_G722, 0x028F },
329+ { AV_CODEC_ID_IMC, 0x0401 },
330+ { AV_CODEC_ID_IAC, 0x0402 },
331+ { AV_CODEC_ID_GSM_MS, 0x1500 },
332+ { AV_CODEC_ID_TRUESPEECH, 0x1501 },
333+ { AV_CODEC_ID_AAC, 0x1600 }, /* ADTS AAC */
334+ { AV_CODEC_ID_AAC_LATM, 0x1602 },
335+ { AV_CODEC_ID_AC3, 0x2000 },
336+ { AV_CODEC_ID_DTS, 0x2001 },
337+ { AV_CODEC_ID_PCM_MULAW, 0x6c75 },
338+ { AV_CODEC_ID_AAC, 0x706d },
339+ { AV_CODEC_ID_AAC, 0x4143 },
340+ { AV_CODEC_ID_SPEEX, 0xA109 },
341+ { AV_CODEC_ID_FLAC, 0xF1AC },
342+ { AV_CODEC_ID_ADPCM_SWF, ('S'<<8)+'F' },
343+ { AV_CODEC_ID_VORBIS, ('V'<<8)+'o' }, //HACK/FIXME, does vorbis in WAV/AVI have an (in)official id?
344344
345345 /* FIXME: All of the IDs below are not 16 bit and thus illegal. */
346346 // for NuppelVideo (nuv.c)
347− { CODEC_ID_PCM_S16LE, MKTAG('R', 'A', 'W', 'A') },
348− { CODEC_ID_MP3, MKTAG('L', 'A', 'M', 'E') },
349− { CODEC_ID_MP3, MKTAG('M', 'P', '3', ' ') },
350− { CODEC_ID_NONE, 0 },
347+ { AV_CODEC_ID_PCM_S16LE, MKTAG('R', 'A', 'W', 'A') },
348+ { AV_CODEC_ID_MP3, MKTAG('L', 'A', 'M', 'E') },
349+ { AV_CODEC_ID_MP3, MKTAG('M', 'P', '3', ' ') },
350+ { AV_CODEC_ID_NONE, 0 },
351351 };
352352
353353 const AVMetadataConv ff_riff_info_conv[] = {
@@ -422,7 +422,7 @@ int ff_put_wav_header(AVIOContext *pb, AVCodecContext *enc) · 68 unmodified lines
422422 }
423423 avio_wl16(pb, enc->channels);
424424 avio_wl32(pb, enc->sample_rate);
425− if (enc->codec_id == CODEC_ID_MP2 || enc->codec_id == CODEC_ID_MP3 || enc->codec_id == CODEC_ID_GSM_MS) {
425+ if (enc->codec_id == AV_CODEC_ID_MP2 || enc->codec_id == AV_CODEC_ID_MP3 || enc->codec_id == AV_CODEC_ID_GSM_MS) {
426426 bps = 0;
427427 } else {
428428 if (!(bps = av_get_bits_per_sample(enc->codec_id))) {
@@ -436,23 +436,23 @@ int ff_put_wav_header(AVIOContext *pb, AVCodecContext *enc) · 7 unmodified lines
436436 av_log(enc, AV_LOG_WARNING, "requested bits_per_coded_sample (%d) and actually stored (%d) differ\n", enc->bits_per_coded_sample, bps);
437437 }
438438
439− if (enc->codec_id == CODEC_ID_MP2 || enc->codec_id == CODEC_ID_MP3) {
439+ if (enc->codec_id == AV_CODEC_ID_MP2 || enc->codec_id == AV_CODEC_ID_MP3) {
440440 /* this is wrong, but it seems many demuxers do not work if this is set
441441 correctly */
442442 blkalign = frame_size;
443443 //blkalign = 144 * enc->bit_rate/enc->sample_rate;
444− } else if (enc->codec_id == CODEC_ID_AC3) {
444+ } else if (enc->codec_id == AV_CODEC_ID_AC3) {
445445 blkalign = 3840; //maximum bytes per frame
446446 } else if (enc->block_align != 0) { /* specified by the codec */
447447 blkalign = enc->block_align;
448448 } else
449449 blkalign = bps * enc->channels / av_gcd(8, bps);
450− if (enc->codec_id == CODEC_ID_PCM_U8 ||
451− enc->codec_id == CODEC_ID_PCM_S24LE ||
452− enc->codec_id == CODEC_ID_PCM_S32LE ||
453− enc->codec_id == CODEC_ID_PCM_F32LE ||
454− enc->codec_id == CODEC_ID_PCM_F64LE ||
455− enc->codec_id == CODEC_ID_PCM_S16LE) {
450+ if (enc->codec_id == AV_CODEC_ID_PCM_U8 ||
451+ enc->codec_id == AV_CODEC_ID_PCM_S24LE ||
452+ enc->codec_id == AV_CODEC_ID_PCM_S32LE ||
453+ enc->codec_id == AV_CODEC_ID_PCM_F32LE ||
454+ enc->codec_id == AV_CODEC_ID_PCM_F64LE ||
455+ enc->codec_id == AV_CODEC_ID_PCM_S16LE) {
456456 bytespersec = enc->sample_rate * blkalign;
457457 } else {
458458 bytespersec = enc->bit_rate / 8;
@@ -460,14 +460,14 @@ int ff_put_wav_header(AVIOContext *pb, AVCodecContext *enc) · 1 unmodified line
460460 avio_wl32(pb, bytespersec); /* bytes per second */
461461 avio_wl16(pb, blkalign); /* block align */
462462 avio_wl16(pb, bps); /* bits per sample */
463− if (enc->codec_id == CODEC_ID_MP3) {
463+ if (enc->codec_id == AV_CODEC_ID_MP3) {
464464 hdrsize += 12;
465465 bytestream_put_le16(&riff_extradata, 1); /* wID */
466466 bytestream_put_le32(&riff_extradata, 2); /* fdwFlags */
467467 bytestream_put_le16(&riff_extradata, 1152); /* nBlockSize */
468468 bytestream_put_le16(&riff_extradata, 1); /* nFramesPerBlock */
469469 bytestream_put_le16(&riff_extradata, 1393); /* nCodecDelay */
470− } else if (enc->codec_id == CODEC_ID_MP2) {
470+ } else if (enc->codec_id == AV_CODEC_ID_MP2) {
471471 hdrsize += 22;
472472 bytestream_put_le16(&riff_extradata, 2); /* fwHeadLayer */
473473 bytestream_put_le32(&riff_extradata, enc->bit_rate); /* dwHeadBitrate */
@@ -477,7 +477,7 @@ int ff_put_wav_header(AVIOContext *pb, AVCodecContext *enc) · 3 unmodified lines
477477 bytestream_put_le16(&riff_extradata, 16); /* fwHeadFlags */
478478 bytestream_put_le32(&riff_extradata, 0); /* dwPTSLow */
479479 bytestream_put_le32(&riff_extradata, 0); /* dwPTSHigh */
480− } else if (enc->codec_id == CODEC_ID_GSM_MS || enc->codec_id == CODEC_ID_ADPCM_IMA_WAV) {
480+ } else if (enc->codec_id == AV_CODEC_ID_GSM_MS || enc->codec_id == AV_CODEC_ID_ADPCM_IMA_WAV) {
481481 hdrsize += 2;
482482 bytestream_put_le16(&riff_extradata, frame_size); /* wSamplesPerBlock */
483483 } else if(enc->extradata_size){
@@ -581,36 +581,36 @@ int ff_get_wav_header(AVIOContext *pb, AVCodecContext *codec, int size) · 97 unmodified lines
581581 avio_skip(pb, size);
582582 }
583583 codec->codec_id = ff_wav_codec_get_id(id, codec->bits_per_coded_sample);
584− if (codec->codec_id == CODEC_ID_AAC_LATM) {
584+ if (codec->codec_id == AV_CODEC_ID_AAC_LATM) {
585585 /* channels and sample_rate values are those prior to applying SBR and/or PS */
586586 codec->channels = 0;
587587 codec->sample_rate = 0;
588588 }
589589 /* override bits_per_coded_sample for G.726 */
590− if (codec->codec_id == CODEC_ID_ADPCM_G726)
590+ if (codec->codec_id == AV_CODEC_ID_ADPCM_G726)
591591 codec->bits_per_coded_sample = codec->bit_rate / codec->sample_rate;
592592
593593 return 0;
594594 }
595595
596596
597−enum CodecID ff_wav_codec_get_id(unsigned int tag, int bps)
597+enum AVCodecID ff_wav_codec_get_id(unsigned int tag, int bps)
598598 {
599− enum CodecID id;
599+ enum AVCodecID id;
600600 id = ff_codec_get_id(ff_codec_wav_tags, tag);
601601 if (id <= 0)
602602 return id;
603603 /* handle specific u8 codec */
604− if (id == CODEC_ID_PCM_S16LE && bps == 8)
605− id = CODEC_ID_PCM_U8;
606− if (id == CODEC_ID_PCM_S16LE && bps == 24)
607− id = CODEC_ID_PCM_S24LE;
608− if (id == CODEC_ID_PCM_S16LE && bps == 32)
609− id = CODEC_ID_PCM_S32LE;
610− if (id == CODEC_ID_PCM_F32LE && bps == 64)
611− id = CODEC_ID_PCM_F64LE;
612− if (id == CODEC_ID_ADPCM_IMA_WAV && bps == 8)
613− id = CODEC_ID_PCM_ZORK;
604+ if (id == AV_CODEC_ID_PCM_S16LE && bps == 8)
605+ id = AV_CODEC_ID_PCM_U8;
606+ if (id == AV_CODEC_ID_PCM_S16LE && bps == 24)
607+ id = AV_CODEC_ID_PCM_S24LE;
608+ if (id == AV_CODEC_ID_PCM_S16LE && bps == 32)
609+ id = AV_CODEC_ID_PCM_S32LE;
610+ if (id == AV_CODEC_ID_PCM_F32LE && bps == 64)
611+ id = AV_CODEC_ID_PCM_F64LE;
612+ if (id == AV_CODEC_ID_ADPCM_IMA_WAV && bps == 8)
613+ id = AV_CODEC_ID_PCM_ZORK;
614614 return id;
615615 }
616616
libavformat/riff.h+3−3
@@ -48,14 +48,14 @@ int ff_get_bmp_header(AVIOContext *pb, AVStream *st); · 47 unmodified lines
4848
4949 void ff_put_bmp_header(AVIOContext *pb, AVCodecContext *enc, const AVCodecTag *tags, int for_asf);
5050 int ff_put_wav_header(AVIOContext *pb, AVCodecContext *enc);
51−enum CodecID ff_wav_codec_get_id(unsigned int tag, int bps);
51+enum AVCodecID ff_wav_codec_get_id(unsigned int tag, int bps);
5252 int ff_get_wav_header(AVIOContext *pb, AVCodecContext *codec, int size);
5353
5454 extern const AVCodecTag ff_codec_bmp_tags[];
5555 extern const AVCodecTag ff_codec_wav_tags[];
5656
57−unsigned int ff_codec_get_tag(const AVCodecTag *tags, enum CodecID id);
58−enum CodecID ff_codec_get_id(const AVCodecTag *tags, unsigned int tag);
57+unsigned int ff_codec_get_tag(const AVCodecTag *tags, enum AVCodecID id);
58+enum AVCodecID ff_codec_get_id(const AVCodecTag *tags, unsigned int tag);
5959 void ff_parse_specific_params(AVCodecContext *stream, int *au_rate, int *au_ssize, int *au_scale);
6060
6161 int ff_read_riff_info(AVFormatContext *s, int64_t size);
libavformat/rl2.c+2−2
@@ -114,7 +114,7 @@ static av_cold int rl2_read_header(AVFormatContext *s) · 113 unmodified lines
114114 return AVERROR(ENOMEM);
115115
116116 st->codec->codec_type = AVMEDIA_TYPE_VIDEO;
117− st->codec->codec_id = CODEC_ID_RL2;
117+ st->codec->codec_id = AV_CODEC_ID_RL2;
118118 st->codec->codec_tag = 0; /* no fourcc */
119119 st->codec->width = 320;
120120 st->codec->height = 200;
@@ -143,7 +143,7 @@ static av_cold int rl2_read_header(AVFormatContext *s) · 22 unmodified lines
143143 if (!st)
144144 return AVERROR(ENOMEM);
145145 st->codec->codec_type = AVMEDIA_TYPE_AUDIO;
146− st->codec->codec_id = CODEC_ID_PCM_U8;
146+ st->codec->codec_id = AV_CODEC_ID_PCM_U8;
147147 st->codec->codec_tag = 1;
148148 st->codec->channels = channels;
149149 st->codec->bits_per_coded_sample = 8;
libavformat/rm.c+15−15
@@ -29,19 +29,19 @@ const char * const ff_rm_metadata[4] = { · 28 unmodified lines
2929 };
3030
3131 const AVCodecTag ff_rm_codec_tags[] = {
32− { CODEC_ID_RV10, MKTAG('R','V','1','0') },
33− { CODEC_ID_RV20, MKTAG('R','V','2','0') },
34− { CODEC_ID_RV20, MKTAG('R','V','T','R') },
35− { CODEC_ID_RV30, MKTAG('R','V','3','0') },
36− { CODEC_ID_RV40, MKTAG('R','V','4','0') },
37− { CODEC_ID_AC3, MKTAG('d','n','e','t') },
38− { CODEC_ID_RA_144, MKTAG('l','p','c','J') },
39− { CODEC_ID_RA_288, MKTAG('2','8','_','8') },
40− { CODEC_ID_COOK, MKTAG('c','o','o','k') },
41− { CODEC_ID_ATRAC3, MKTAG('a','t','r','c') },
42− { CODEC_ID_SIPR, MKTAG('s','i','p','r') },
43− { CODEC_ID_AAC, MKTAG('r','a','a','c') },
44− { CODEC_ID_AAC, MKTAG('r','a','c','p') },
45− { CODEC_ID_RALF, MKTAG('L','S','D',':') },
46− { CODEC_ID_NONE },
32+ { AV_CODEC_ID_RV10, MKTAG('R','V','1','0') },
33+ { AV_CODEC_ID_RV20, MKTAG('R','V','2','0') },
34+ { AV_CODEC_ID_RV20, MKTAG('R','V','T','R') },
35+ { AV_CODEC_ID_RV30, MKTAG('R','V','3','0') },
36+ { AV_CODEC_ID_RV40, MKTAG('R','V','4','0') },
37+ { AV_CODEC_ID_AC3, MKTAG('d','n','e','t') },
38+ { AV_CODEC_ID_RA_144, MKTAG('l','p','c','J') },
39+ { AV_CODEC_ID_RA_288, MKTAG('2','8','_','8') },
40+ { AV_CODEC_ID_COOK, MKTAG('c','o','o','k') },
41+ { AV_CODEC_ID_ATRAC3, MKTAG('a','t','r','c') },
42+ { AV_CODEC_ID_SIPR, MKTAG('s','i','p','r') },
43+ { AV_CODEC_ID_AAC, MKTAG('r','a','a','c') },
44+ { AV_CODEC_ID_AAC, MKTAG('r','a','c','p') },
45+ { AV_CODEC_ID_RALF, MKTAG('L','S','D',':') },
46+ { AV_CODEC_ID_NONE },
4747 };
libavformat/rmdec.c+11−11
@@ -155,7 +155,7 @@ static int rm_read_audio_stream_info(AVFormatContext *s, AVIOContext *pb, · 154 unmodified lines
155155 st->codec->sample_rate = 8000;
156156 st->codec->channels = 1;
157157 st->codec->codec_type = AVMEDIA_TYPE_AUDIO;
158− st->codec->codec_id = CODEC_ID_RA_144;
158+ st->codec->codec_id = AV_CODEC_ID_RA_144;
159159 ast->deint_id = DEINT_ID_INT0;
160160 } else {
161161 int flavor, sub_packet_h, coded_framesize, sub_packet_size;
@@ -196,18 +196,18 @@ static int rm_read_audio_stream_info(AVFormatContext *s, AVIOContext *pb, · 34 unmodified lines
196196 st->codec->codec_tag);
197197
198198 switch (st->codec->codec_id) {
199− case CODEC_ID_AC3:
199+ case AV_CODEC_ID_AC3:
200200 st->need_parsing = AVSTREAM_PARSE_FULL;
201201 break;
202− case CODEC_ID_RA_288:
202+ case AV_CODEC_ID_RA_288:
203203 st->codec->extradata_size= 0;
204204 ast->audio_framesize = st->codec->block_align;
205205 st->codec->block_align = coded_framesize;
206206 break;
207− case CODEC_ID_COOK:
207+ case AV_CODEC_ID_COOK:
208208 st->need_parsing = AVSTREAM_PARSE_HEADERS;
209− case CODEC_ID_ATRAC3:
210− case CODEC_ID_SIPR:
209+ case AV_CODEC_ID_ATRAC3:
210+ case AV_CODEC_ID_SIPR:
211211 avio_rb16(pb); avio_r8(pb);
212212 if (version == 5)
213213 avio_r8(pb);
@@ -218,7 +218,7 @@ static int rm_read_audio_stream_info(AVFormatContext *s, AVIOContext *pb, · 4 unmodified lines
218218 }
219219
220220 ast->audio_framesize = st->codec->block_align;
221− if (st->codec->codec_id == CODEC_ID_SIPR) {
221+ if (st->codec->codec_id == AV_CODEC_ID_SIPR) {
222222 if (flavor > 3) {
223223 av_log(s, AV_LOG_ERROR, "bad SIPR file flavor %d\n",
224224 flavor);
@@ -235,7 +235,7 @@ static int rm_read_audio_stream_info(AVFormatContext *s, AVIOContext *pb, · 10 unmodified lines
235235 if ((ret = rm_read_extradata(pb, st->codec, codecdata_length)) < 0)
236236 return ret;
237237 break;
238− case CODEC_ID_AAC:
238+ case AV_CODEC_ID_AAC:
239239 avio_rb16(pb); avio_r8(pb);
240240 if (version == 5)
241241 avio_r8(pb);
@@ -331,7 +331,7 @@ ff_rm_read_mdpr_codecdata (AVFormatContext *s, AVIOContext *pb, · 89 unmodified lines
331331 st->codec->codec_id = ff_codec_get_id(ff_rm_codec_tags,
332332 st->codec->codec_tag);
333333 // av_log(s, AV_LOG_DEBUG, "%X %X\n", st->codec->codec_tag, MKTAG('R', 'V', '2', '0'));
334− if (st->codec->codec_id == CODEC_ID_NONE)
334+ if (st->codec->codec_id == AV_CODEC_ID_NONE)
335335 goto fail1;
336336 st->codec->width = avio_rb16(pb);
337337 st->codec->height = avio_rb16(pb);
@@ -710,7 +710,7 @@ rm_ac3_swap_bytes (AVStream *st, AVPacket *pkt) · 372 unmodified lines
710710 uint8_t *ptr;
711711 int j;
712712
713− if (st->codec->codec_id == CODEC_ID_AC3) {
713+ if (st->codec->codec_id == AV_CODEC_ID_AC3) {
714714 ptr = pkt->data;
715715 for (j=0;j<pkt->size;j+=2) {
716716 FFSWAP(int, ptr[0], ptr[1]);
@@ -817,7 +817,7 @@ ff_rm_parse_packet (AVFormatContext *s, AVIOContext *pb, · 100 unmodified lines
817817
818818 #if 0
819819 if (st->codec->codec_type == AVMEDIA_TYPE_VIDEO) {
820− if(st->codec->codec_id == CODEC_ID_RV20){
820+ if(st->codec->codec_id == AV_CODEC_ID_RV20){
821821 int seq= 128*(pkt->data[2]&0x7F) + (pkt->data[3]>>1);
822822 av_log(s, AV_LOG_DEBUG, "%d %"PRId64" %d\n", *timestamp, *timestamp*512LL/25, seq);
823823
libavformat/rmenc.c+5−5
@@ -242,7 +242,7 @@ static int rv10_write_header(AVFormatContext *ctx, · 241 unmodified lines
242242 /* video codec info */
243243 avio_wb32(s,34); /* size */
244244 ffio_wfourcc(s, "VIDO");
245− if(stream->enc->codec_id == CODEC_ID_RV10)
245+ if(stream->enc->codec_id == AV_CODEC_ID_RV10)
246246 ffio_wfourcc(s,"RV10");
247247 else
248248 ffio_wfourcc(s,"RV20");
@@ -256,7 +256,7 @@ static int rv10_write_header(AVFormatContext *ctx, · 7 unmodified lines
256256 /* Seems to be the codec version: only use basic H263. The next
257257 versions seems to add a diffential DC coding as in
258258 MPEG... nothing new under the sun */
259− if(stream->enc->codec_id == CODEC_ID_RV10)
259+ if(stream->enc->codec_id == AV_CODEC_ID_RV10)
260260 avio_wb32(s,0x10000000);
261261 else
262262 avio_wb32(s,0x20103001);
@@ -359,7 +359,7 @@ static int rm_write_audio(AVFormatContext *s, const uint8_t *buf, int size, int · 96 unmodified lines
359359
360360 write_packet_header(s, stream, size, !!(flags & AV_PKT_FLAG_KEY));
361361
362− if (stream->enc->codec_id == CODEC_ID_AC3) {
362+ if (stream->enc->codec_id == AV_CODEC_ID_AC3) {
363363 /* for AC-3, the words seem to be reversed */
364364 for(i=0;i<size;i+=2) {
365365 buf1[i] = buf[i+1];
@@ -466,8 +466,8 @@ AVOutputFormat ff_rm_muxer = { · 100 unmodified lines
466466 .mime_type = "application/vnd.rn-realmedia",
467467 .extensions = "rm,ra",
468468 .priv_data_size = sizeof(RMMuxContext),
469− .audio_codec = CODEC_ID_AC3,
470− .video_codec = CODEC_ID_RV10,
469+ .audio_codec = AV_CODEC_ID_AC3,
470+ .video_codec = AV_CODEC_ID_RV10,
471471 .write_header = rm_write_header,
472472 .write_packet = rm_write_packet,
473473 .write_trailer = rm_write_trailer,
libavformat/rpl.c+9−9
@@ -156,24 +156,24 @@ static int rpl_read_header(AVFormatContext *s) · 155 unmodified lines
156156 switch (vst->codec->codec_tag) {
157157 #if 0
158158 case 122:
159− vst->codec->codec_id = CODEC_ID_ESCAPE122;
159+ vst->codec->codec_id = AV_CODEC_ID_ESCAPE122;
160160 break;
161161 #endif
162162 case 124:
163− vst->codec->codec_id = CODEC_ID_ESCAPE124;
163+ vst->codec->codec_id = AV_CODEC_ID_ESCAPE124;
164164 // The header is wrong here, at least sometimes
165165 vst->codec->bits_per_coded_sample = 16;
166166 break;
167167 #if 0
168168 case 130:
169− vst->codec->codec_id = CODEC_ID_ESCAPE130;
169+ vst->codec->codec_id = AV_CODEC_ID_ESCAPE130;
170170 break;
171171 #endif
172172 default:
173173 av_log(s, AV_LOG_WARNING,
174174 "RPL video format %i not supported yet!\n",
175175 vst->codec->codec_tag);
176− vst->codec->codec_id = CODEC_ID_NONE;
176+ vst->codec->codec_id = AV_CODEC_ID_NONE;
177177 }
178178
179179 // Audio headers
@@ -199,12 +199,12 @@ static int rpl_read_header(AVFormatContext *s) · 19 unmodified lines
199199 ast->codec->bits_per_coded_sample *
200200 ast->codec->channels;
201201
202− ast->codec->codec_id = CODEC_ID_NONE;
202+ ast->codec->codec_id = AV_CODEC_ID_NONE;
203203 switch (audio_format) {
204204 case 1:
205205 if (ast->codec->bits_per_coded_sample == 16) {
206206 // 16-bit audio is always signed
207− ast->codec->codec_id = CODEC_ID_PCM_S16LE;
207+ ast->codec->codec_id = AV_CODEC_ID_PCM_S16LE;
208208 break;
209209 }
210210 // There are some other formats listed as legal per the spec;
@@ -214,15 +214,15 @@ static int rpl_read_header(AVFormatContext *s) · 3 unmodified lines
214214 if (ast->codec->bits_per_coded_sample == 8) {
215215 // The samples with this kind of audio that I have
216216 // are all unsigned.
217− ast->codec->codec_id = CODEC_ID_PCM_U8;
217+ ast->codec->codec_id = AV_CODEC_ID_PCM_U8;
218218 break;
219219 } else if (ast->codec->bits_per_coded_sample == 4) {
220− ast->codec->codec_id = CODEC_ID_ADPCM_IMA_EA_SEAD;
220+ ast->codec->codec_id = AV_CODEC_ID_ADPCM_IMA_EA_SEAD;
221221 break;
222222 }
223223 break;
224224 }
225− if (ast->codec->codec_id == CODEC_ID_NONE) {
225+ if (ast->codec->codec_id == AV_CODEC_ID_NONE) {
226226 av_log(s, AV_LOG_WARNING,
227227 "RPL audio format %i not supported yet!\n",
228228 audio_format);
libavformat/rso.c+3−3
@@ -24,7 +24,7 @@ · 23 unmodified lines
2424 #include "rso.h"
2525
2626 const AVCodecTag ff_codec_rso_tags[] = {
27− { CODEC_ID_PCM_U8, 0x0100 },
28− { CODEC_ID_ADPCM_IMA_WAV, 0x0101 },
29− { CODEC_ID_NONE, 0 },
27+ { AV_CODEC_ID_PCM_U8, 0x0100 },
28+ { AV_CODEC_ID_ADPCM_IMA_WAV, 0x0101 },
29+ { AV_CODEC_ID_NONE, 0 },
3030 };
libavformat/rsodec.c+2−2
@@ -32,7 +32,7 @@ static int rso_read_header(AVFormatContext *s) · 31 unmodified lines
3232 AVIOContext *pb = s->pb;
3333 int id, rate, bps;
3434 unsigned int size;
35− enum CodecID codec;
35+ enum AVCodecID codec;
3636 AVStream *st;
3737
3838 id = avio_rb16(pb);
@@ -42,7 +42,7 @@ static int rso_read_header(AVFormatContext *s) · 3 unmodified lines
4242
4343 codec = ff_codec_get_id(ff_codec_rso_tags, id);
4444
45− if (codec == CODEC_ID_ADPCM_IMA_WAV) {
45+ if (codec == AV_CODEC_ID_ADPCM_IMA_WAV) {
4646 av_log(s, AV_LOG_ERROR, "ADPCM in RSO not implemented\n");
4747 return AVERROR_PATCHWELCOME;
4848 }
libavformat/rsoenc.c+3−3
@@ -49,7 +49,7 @@ static int rso_write_header(AVFormatContext *s) · 48 unmodified lines
4949 return AVERROR_INVALIDDATA;
5050 }
5151
52− if (enc->codec_id == CODEC_ID_ADPCM_IMA_WAV) {
52+ if (enc->codec_id == AV_CODEC_ID_ADPCM_IMA_WAV) {
5353 av_log(s, AV_LOG_ERROR, "ADPCM in RSO not implemented\n");
5454 return AVERROR_PATCHWELCOME;
5555 }
@@ -104,8 +104,8 @@ AVOutputFormat ff_rso_muxer = { · 48 unmodified lines
104104 .name = "rso",
105105 .long_name = NULL_IF_CONFIG_SMALL("Lego Mindstorms RSO"),
106106 .extensions = "rso",
107− .audio_codec = CODEC_ID_PCM_U8,
108− .video_codec = CODEC_ID_NONE,
107+ .audio_codec = AV_CODEC_ID_PCM_U8,
108+ .video_codec = AV_CODEC_ID_NONE,
109109 .write_header = rso_write_header,
110110 .write_packet = rso_write_packet,
111111 .write_trailer = rso_write_trailer,
libavformat/rtp.c+33−33
@@ -37,38 +37,38 @@ static const struct · 36 unmodified lines
3737 int pt;
3838 const char enc_name[6];
3939 enum AVMediaType codec_type;
40− enum CodecID codec_id;
40+ enum AVCodecID codec_id;
4141 int clock_rate;
4242 int audio_channels;
4343 } AVRtpPayloadTypes[]=
4444 {
45− {0, "PCMU", AVMEDIA_TYPE_AUDIO, CODEC_ID_PCM_MULAW, 8000, 1},
46− {3, "GSM", AVMEDIA_TYPE_AUDIO, CODEC_ID_NONE, 8000, 1},
47− {4, "G723", AVMEDIA_TYPE_AUDIO, CODEC_ID_G723_1, 8000, 1},
48− {5, "DVI4", AVMEDIA_TYPE_AUDIO, CODEC_ID_NONE, 8000, 1},
49− {6, "DVI4", AVMEDIA_TYPE_AUDIO, CODEC_ID_NONE, 16000, 1},
50− {7, "LPC", AVMEDIA_TYPE_AUDIO, CODEC_ID_NONE, 8000, 1},
51− {8, "PCMA", AVMEDIA_TYPE_AUDIO, CODEC_ID_PCM_ALAW, 8000, 1},
52− {9, "G722", AVMEDIA_TYPE_AUDIO, CODEC_ID_ADPCM_G722, 8000, 1},
53− {10, "L16", AVMEDIA_TYPE_AUDIO, CODEC_ID_PCM_S16BE, 44100, 2},
54− {11, "L16", AVMEDIA_TYPE_AUDIO, CODEC_ID_PCM_S16BE, 44100, 1},
55− {12, "QCELP", AVMEDIA_TYPE_AUDIO, CODEC_ID_QCELP, 8000, 1},
56− {13, "CN", AVMEDIA_TYPE_AUDIO, CODEC_ID_NONE, 8000, 1},
57− {14, "MPA", AVMEDIA_TYPE_AUDIO, CODEC_ID_MP2, -1, -1},
58− {14, "MPA", AVMEDIA_TYPE_AUDIO, CODEC_ID_MP3, -1, -1},
59− {15, "G728", AVMEDIA_TYPE_AUDIO, CODEC_ID_NONE, 8000, 1},
60− {16, "DVI4", AVMEDIA_TYPE_AUDIO, CODEC_ID_NONE, 11025, 1},
61− {17, "DVI4", AVMEDIA_TYPE_AUDIO, CODEC_ID_NONE, 22050, 1},
62− {18, "G729", AVMEDIA_TYPE_AUDIO, CODEC_ID_NONE, 8000, 1},
63− {25, "CelB", AVMEDIA_TYPE_VIDEO, CODEC_ID_NONE, 90000, -1},
64− {26, "JPEG", AVMEDIA_TYPE_VIDEO, CODEC_ID_MJPEG, 90000, -1},
65− {28, "nv", AVMEDIA_TYPE_VIDEO, CODEC_ID_NONE, 90000, -1},
66− {31, "H261", AVMEDIA_TYPE_VIDEO, CODEC_ID_H261, 90000, -1},
67− {32, "MPV", AVMEDIA_TYPE_VIDEO, CODEC_ID_MPEG1VIDEO, 90000, -1},
68− {32, "MPV", AVMEDIA_TYPE_VIDEO, CODEC_ID_MPEG2VIDEO, 90000, -1},
69− {33, "MP2T", AVMEDIA_TYPE_DATA, CODEC_ID_MPEG2TS, 90000, -1},
70− {34, "H263", AVMEDIA_TYPE_VIDEO, CODEC_ID_H263, 90000, -1},
71− {-1, "", AVMEDIA_TYPE_UNKNOWN, CODEC_ID_NONE, -1, -1}
45+ {0, "PCMU", AVMEDIA_TYPE_AUDIO, AV_CODEC_ID_PCM_MULAW, 8000, 1},
46+ {3, "GSM", AVMEDIA_TYPE_AUDIO, AV_CODEC_ID_NONE, 8000, 1},
47+ {4, "G723", AVMEDIA_TYPE_AUDIO, AV_CODEC_ID_G723_1, 8000, 1},
48+ {5, "DVI4", AVMEDIA_TYPE_AUDIO, AV_CODEC_ID_NONE, 8000, 1},
49+ {6, "DVI4", AVMEDIA_TYPE_AUDIO, AV_CODEC_ID_NONE, 16000, 1},
50+ {7, "LPC", AVMEDIA_TYPE_AUDIO, AV_CODEC_ID_NONE, 8000, 1},
51+ {8, "PCMA", AVMEDIA_TYPE_AUDIO, AV_CODEC_ID_PCM_ALAW, 8000, 1},
52+ {9, "G722", AVMEDIA_TYPE_AUDIO, AV_CODEC_ID_ADPCM_G722, 8000, 1},
53+ {10, "L16", AVMEDIA_TYPE_AUDIO, AV_CODEC_ID_PCM_S16BE, 44100, 2},
54+ {11, "L16", AVMEDIA_TYPE_AUDIO, AV_CODEC_ID_PCM_S16BE, 44100, 1},
55+ {12, "QCELP", AVMEDIA_TYPE_AUDIO, AV_CODEC_ID_QCELP, 8000, 1},
56+ {13, "CN", AVMEDIA_TYPE_AUDIO, AV_CODEC_ID_NONE, 8000, 1},
57+ {14, "MPA", AVMEDIA_TYPE_AUDIO, AV_CODEC_ID_MP2, -1, -1},
58+ {14, "MPA", AVMEDIA_TYPE_AUDIO, AV_CODEC_ID_MP3, -1, -1},
59+ {15, "G728", AVMEDIA_TYPE_AUDIO, AV_CODEC_ID_NONE, 8000, 1},
60+ {16, "DVI4", AVMEDIA_TYPE_AUDIO, AV_CODEC_ID_NONE, 11025, 1},
61+ {17, "DVI4", AVMEDIA_TYPE_AUDIO, AV_CODEC_ID_NONE, 22050, 1},
62+ {18, "G729", AVMEDIA_TYPE_AUDIO, AV_CODEC_ID_NONE, 8000, 1},
63+ {25, "CelB", AVMEDIA_TYPE_VIDEO, AV_CODEC_ID_NONE, 90000, -1},
64+ {26, "JPEG", AVMEDIA_TYPE_VIDEO, AV_CODEC_ID_MJPEG, 90000, -1},
65+ {28, "nv", AVMEDIA_TYPE_VIDEO, AV_CODEC_ID_NONE, 90000, -1},
66+ {31, "H261", AVMEDIA_TYPE_VIDEO, AV_CODEC_ID_H261, 90000, -1},
67+ {32, "MPV", AVMEDIA_TYPE_VIDEO, AV_CODEC_ID_MPEG1VIDEO, 90000, -1},
68+ {32, "MPV", AVMEDIA_TYPE_VIDEO, AV_CODEC_ID_MPEG2VIDEO, 90000, -1},
69+ {33, "MP2T", AVMEDIA_TYPE_DATA, AV_CODEC_ID_MPEG2TS, 90000, -1},
70+ {34, "H263", AVMEDIA_TYPE_VIDEO, AV_CODEC_ID_H263, 90000, -1},
71+ {-1, "", AVMEDIA_TYPE_UNKNOWN, AV_CODEC_ID_NONE, -1, -1}
7272 };
7373
7474 int ff_rtp_get_codec_info(AVCodecContext *codec, int payload_type)
@@ -77,7 +77,7 @@ int ff_rtp_get_codec_info(AVCodecContext *codec, int payload_type) · 2 unmodified lines
7777
7878 for (i = 0; AVRtpPayloadTypes[i].pt >= 0; i++)
7979 if (AVRtpPayloadTypes[i].pt == payload_type) {
80− if (AVRtpPayloadTypes[i].codec_id != CODEC_ID_NONE) {
80+ if (AVRtpPayloadTypes[i].codec_id != AV_CODEC_ID_NONE) {
8181 codec->codec_type = AVRtpPayloadTypes[i].codec_type;
8282 codec->codec_id = AVRtpPayloadTypes[i].codec_id;
8383 if (AVRtpPayloadTypes[i].audio_channels > 0)
@@ -106,13 +106,13 @@ int ff_rtp_get_payload_type(AVFormatContext *fmt, AVCodecContext *codec) · 22 unmodified lines
106106 /* static payload type */
107107 for (i = 0; AVRtpPayloadTypes[i].pt >= 0; ++i)
108108 if (AVRtpPayloadTypes[i].codec_id == codec->codec_id) {
109− if (codec->codec_id == CODEC_ID_H263 && (!fmt ||
109+ if (codec->codec_id == AV_CODEC_ID_H263 && (!fmt ||
110110 !fmt->oformat->priv_class ||
111111 !av_opt_flag_is_set(fmt->priv_data, "rtpflags", "rfc2190")))
112112 continue;
113113 /* G722 has 8000 as nominal rate even if the sample rate is 16000,
114114 * see section 4.5.2 in RFC 3551. */
115− if (codec->codec_id == CODEC_ID_ADPCM_G722 &&
115+ if (codec->codec_id == AV_CODEC_ID_ADPCM_G722 &&
116116 codec->sample_rate == 16000 && codec->channels == 1)
117117 return AVRtpPayloadTypes[i].pt;
118118 if (codec->codec_type == AVMEDIA_TYPE_AUDIO &&
@@ -140,7 +140,7 @@ const char *ff_rtp_enc_name(int payload_type) · 21 unmodified lines
140140 return "";
141141 }
142142
143−enum CodecID ff_rtp_codec_id(const char *buf, enum AVMediaType codec_type)
143+enum AVCodecID ff_rtp_codec_id(const char *buf, enum AVMediaType codec_type)
144144 {
145145 int i;
146146
@@ -149,5 +149,5 @@ enum CodecID ff_rtp_codec_id(const char *buf, enum AVMediaType codec_type) · 2 unmodified lines
149149 return AVRtpPayloadTypes[i].codec_id;
150150 }
151151
152− return CODEC_ID_NONE;
152+ return AV_CODEC_ID_NONE;
153153 }
libavformat/rtp.h+2−2
@@ -63,10 +63,10 @@ const char *ff_rtp_enc_name(int payload_type); · 62 unmodified lines
6363 *
6464 * @param buf A pointer to the string containing the encoding name
6565 * @param codec_type The codec type
66− * @return In case of unknown encoding name, CODEC_ID_NONE is returned;
66+ * @return In case of unknown encoding name, AV_CODEC_ID_NONE is returned;
6767 * otherwise, the codec id is returned
6868 */
69−enum CodecID ff_rtp_codec_id(const char *buf, enum AVMediaType codec_type);
69+enum AVCodecID ff_rtp_codec_id(const char *buf, enum AVMediaType codec_type);
7070
7171 #define RTP_PT_PRIVATE 96
7272 #define RTP_VERSION 2
libavformat/rtpdec.c+15−15
@@ -46,7 +46,7 @@ · 45 unmodified lines
4646 static RTPDynamicProtocolHandler ff_realmedia_mp3_dynamic_handler = {
4747 .enc_name = "X-MP3-draft-00",
4848 .codec_type = AVMEDIA_TYPE_AUDIO,
49− .codec_id = CODEC_ID_MP3ADU,
49+ .codec_id = AV_CODEC_ID_MP3ADU,
5050 };
5151
5252 /* statistics functions */
@@ -364,7 +364,7 @@ void ff_rtp_send_punch_packets(URLContext* rtp_handle) · 311 unmodified lines
364364 /**
365365 * open a new RTP parse context for stream 'st'. 'st' can be NULL for
366366 * MPEG2TS streams to indicate that they should be demuxed inside the
367− * rtp demux (otherwise CODEC_ID_MPEG2TS packets are returned)
367+ * rtp demux (otherwise AV_CODEC_ID_MPEG2TS packets are returned)
368368 */
369369 RTPDemuxContext *ff_rtp_parse_open(AVFormatContext *s1, AVStream *st, URLContext *rtpc, int payload_type, int queue_size)
370370 {
@@ -388,19 +388,19 @@ RTPDemuxContext *ff_rtp_parse_open(AVFormatContext *s1, AVStream *st, URLContext · 17 unmodified lines
388388 }
389389 } else if (st) {
390390 switch(st->codec->codec_id) {
391− case CODEC_ID_MPEG1VIDEO:
392− case CODEC_ID_MPEG2VIDEO:
393− case CODEC_ID_MP2:
394− case CODEC_ID_MP3:
395− case CODEC_ID_MPEG4:
396− case CODEC_ID_H263:
397− case CODEC_ID_H264:
391+ case AV_CODEC_ID_MPEG1VIDEO:
392+ case AV_CODEC_ID_MPEG2VIDEO:
393+ case AV_CODEC_ID_MP2:
394+ case AV_CODEC_ID_MP3:
395+ case AV_CODEC_ID_MPEG4:
396+ case AV_CODEC_ID_H263:
397+ case AV_CODEC_ID_H264:
398398 st->need_parsing = AVSTREAM_PARSE_FULL;
399399 break;
400− case CODEC_ID_VORBIS:
400+ case AV_CODEC_ID_VORBIS:
401401 st->need_parsing = AVSTREAM_PARSE_HEADERS;
402402 break;
403− case CODEC_ID_ADPCM_G722:
403+ case AV_CODEC_ID_ADPCM_G722:
404404 /* According to RFC 3551, the stream clock rate is 8000
405405 * even if the sample rate is 16000. */
406406 if (st->codec->sample_rate == 8000)
@@ -537,8 +537,8 @@ static int rtp_parse_packet_internal(RTPDemuxContext *s, AVPacket *pkt, · 130 unmodified lines
537537 } else {
538538 // at this point, the RTP header has been stripped; This is ASSUMING that there is only 1 CSRC, which in't wise.
539539 switch(st->codec->codec_id) {
540− case CODEC_ID_MP2:
541− case CODEC_ID_MP3:
540+ case AV_CODEC_ID_MP2:
541+ case AV_CODEC_ID_MP3:
542542 /* better than nothing: skip mpeg audio RTP header */
543543 if (len <= 4)
544544 return -1;
@@ -548,8 +548,8 @@ static int rtp_parse_packet_internal(RTPDemuxContext *s, AVPacket *pkt, · 3 unmodified lines
548548 av_new_packet(pkt, len);
549549 memcpy(pkt->data, buf, len);
550550 break;
551− case CODEC_ID_MPEG1VIDEO:
552− case CODEC_ID_MPEG2VIDEO:
551+ case AV_CODEC_ID_MPEG1VIDEO:
552+ case AV_CODEC_ID_MPEG2VIDEO:
553553 /* better than nothing: skip mpeg video RTP header */
554554 if (len <= 4)
555555 return -1;
libavformat/rtpdec.h+1−1
@@ -116,7 +116,7 @@ struct RTPDynamicProtocolHandler_s { · 115 unmodified lines
116116 // fields from AVRtpDynamicPayloadType_s
117117 const char enc_name[50]; /* XXX: still why 50 ? ;-) */
118118 enum AVMediaType codec_type;
119− enum CodecID codec_id;
119+ enum AVCodecID codec_id;
120120 int static_payload_id; /* 0 means no payload id is set. 0 is a valid
121121 * payload ID (PCMU), too, but that format doesn't
122122 * require any custom depacketization code. */
libavformat/rtpdec_amr.c+4−4
@@ -64,9 +64,9 @@ static int amr_handle_packet(AVFormatContext *ctx, · 63 unmodified lines
6464 const uint8_t *speech_data;
6565 uint8_t *ptr;
6666
67− if (st->codec->codec_id == CODEC_ID_AMR_NB) {
67+ if (st->codec->codec_id == AV_CODEC_ID_AMR_NB) {
6868 frame_sizes = frame_sizes_nb;
69− } else if (st->codec->codec_id == CODEC_ID_AMR_WB) {
69+ } else if (st->codec->codec_id == AV_CODEC_ID_AMR_WB) {
7070 frame_sizes = frame_sizes_wb;
7171 } else {
7272 av_log(ctx, AV_LOG_ERROR, "Bad codec ID\n");
@@ -192,7 +192,7 @@ static int amr_parse_sdp_line(AVFormatContext *s, int st_index, · 119 unmodified lines
192192 RTPDynamicProtocolHandler ff_amr_nb_dynamic_handler = {
193193 .enc_name = "AMR",
194194 .codec_type = AVMEDIA_TYPE_AUDIO,
195− .codec_id = CODEC_ID_AMR_NB,
195+ .codec_id = AV_CODEC_ID_AMR_NB,
196196 .parse_sdp_a_line = amr_parse_sdp_line,
197197 .alloc = amr_new_context,
198198 .free = amr_free_context,
@@ -202,7 +202,7 @@ RTPDynamicProtocolHandler ff_amr_nb_dynamic_handler = { · 3 unmodified lines
202202 RTPDynamicProtocolHandler ff_amr_wb_dynamic_handler = {
203203 .enc_name = "AMR-WB",
204204 .codec_type = AVMEDIA_TYPE_AUDIO,
205− .codec_id = CODEC_ID_AMR_WB,
205+ .codec_id = AV_CODEC_ID_AMR_WB,
206206 .parse_sdp_a_line = amr_parse_sdp_line,
207207 .alloc = amr_new_context,
208208 .free = amr_free_context,
libavformat/rtpdec_asf.c+1−1
@@ -298,7 +298,7 @@ static void asfrtp_free_context(PayloadContext *asf) · 297 unmodified lines
298298 RTPDynamicProtocolHandler ff_ms_rtp_ ## n ## _handler = { \
299299 .enc_name = s, \
300300 .codec_type = t, \
301− .codec_id = CODEC_ID_NONE, \
301+ .codec_id = AV_CODEC_ID_NONE, \
302302 .parse_sdp_a_line = asfrtp_parse_sdp_line, \
303303 .alloc = asfrtp_new_context, \
304304 .free = asfrtp_free_context, \
libavformat/rtpdec_g726.c+1−1
@@ -36,7 +36,7 @@ static int g726_ ## bitrate ##_init(AVFormatContext *s, int st_index, PayloadCon · 35 unmodified lines
3636 RTPDynamicProtocolHandler ff_g726_ ## bitrate ## _dynamic_handler = { \
3737 .enc_name = "G726-" #bitrate, \
3838 .codec_type = AVMEDIA_TYPE_AUDIO, \
39− .codec_id = CODEC_ID_ADPCM_G726, \
39+ .codec_id = AV_CODEC_ID_ADPCM_G726, \
4040 .init = g726_ ## bitrate ## _init, \
4141 }
4242
libavformat/rtpdec_h263.c+2−2
@@ -91,13 +91,13 @@ int ff_h263_handle_packet(AVFormatContext *ctx, PayloadContext *data, · 90 unmodified lines
9191 RTPDynamicProtocolHandler ff_h263_1998_dynamic_handler = {
9292 .enc_name = "H263-1998",
9393 .codec_type = AVMEDIA_TYPE_VIDEO,
94− .codec_id = CODEC_ID_H263,
94+ .codec_id = AV_CODEC_ID_H263,
9595 .parse_packet = ff_h263_handle_packet,
9696 };
9797
9898 RTPDynamicProtocolHandler ff_h263_2000_dynamic_handler = {
9999 .enc_name = "H263-2000",
100100 .codec_type = AVMEDIA_TYPE_VIDEO,
101− .codec_id = CODEC_ID_H263,
101+ .codec_id = AV_CODEC_ID_H263,
102102 .parse_packet = ff_h263_handle_packet,
103103 };
libavformat/rtpdec_h263_rfc2190.c+1−1
@@ -198,7 +198,7 @@ static int h263_handle_packet(AVFormatContext *ctx, PayloadContext *data, · 197 unmodified lines
198198
199199 RTPDynamicProtocolHandler ff_h263_rfc2190_dynamic_handler = {
200200 .codec_type = AVMEDIA_TYPE_VIDEO,
201− .codec_id = CODEC_ID_H263,
201+ .codec_id = AV_CODEC_ID_H263,
202202 .parse_packet = h263_handle_packet,
203203 .alloc = h263_new_context,
204204 .free = h263_free_context,
libavformat/rtpdec_h264.c+2−2
@@ -69,7 +69,7 @@ static int sdp_parse_fmtp_config_h264(AVStream *stream, · 68 unmodified lines
6969 char *attr, char *value)
7070 {
7171 AVCodecContext *codec = stream->codec;
72− assert(codec->codec_id == CODEC_ID_H264);
72+ assert(codec->codec_id == AV_CODEC_ID_H264);
7373 assert(h264_data != NULL);
7474
7575 if (!strcmp(attr, "packetization-mode")) {
@@ -383,7 +383,7 @@ static int parse_h264_sdp_line(AVFormatContext *s, int st_index, · 307 unmodified lines
383383 RTPDynamicProtocolHandler ff_h264_dynamic_handler = {
384384 .enc_name = "H264",
385385 .codec_type = AVMEDIA_TYPE_VIDEO,
386− .codec_id = CODEC_ID_H264,
386+ .codec_id = AV_CODEC_ID_H264,
387387 .parse_sdp_a_line = parse_h264_sdp_line,
388388 .alloc = h264_new_context,
389389 .free = h264_free_context,
libavformat/rtpdec_ilbc.c+1−1
@@ -68,6 +68,6 @@ static int ilbc_parse_sdp_line(AVFormatContext *s, int st_index, · 67 unmodified lines
6868 RTPDynamicProtocolHandler ff_ilbc_dynamic_handler = {
6969 .enc_name = "iLBC",
7070 .codec_type = AVMEDIA_TYPE_AUDIO,
71− .codec_id = CODEC_ID_ILBC,
71+ .codec_id = AV_CODEC_ID_ILBC,
7272 .parse_sdp_a_line = ilbc_parse_sdp_line,
7373 };
libavformat/rtpdec_latm.c+1−1
@@ -180,7 +180,7 @@ static int latm_parse_sdp_line(AVFormatContext *s, int st_index, · 179 unmodified lines
180180 RTPDynamicProtocolHandler ff_mp4a_latm_dynamic_handler = {
181181 .enc_name = "MP4A-LATM",
182182 .codec_type = AVMEDIA_TYPE_AUDIO,
183− .codec_id = CODEC_ID_AAC,
183+ .codec_id = AV_CODEC_ID_AAC,
184184 .parse_sdp_a_line = latm_parse_sdp_line,
185185 .alloc = latm_new_context,
186186 .free = latm_free_context,
libavformat/rtpdec_mpeg4.c+3−3
@@ -202,7 +202,7 @@ static int parse_fmtp(AVStream *stream, PayloadContext *data, · 201 unmodified lines
202202 return res;
203203 }
204204
205− if (codec->codec_id == CODEC_ID_AAC) {
205+ if (codec->codec_id == AV_CODEC_ID_AAC) {
206206 /* Looking for a known attribute */
207207 for (i = 0; attr_names[i].str; ++i) {
208208 if (!av_strcasecmp(attr, attr_names[i].str)) {
@@ -235,14 +235,14 @@ static int parse_sdp_line(AVFormatContext *s, int st_index, · 26 unmodified lines
235235 RTPDynamicProtocolHandler ff_mp4v_es_dynamic_handler = {
236236 .enc_name = "MP4V-ES",
237237 .codec_type = AVMEDIA_TYPE_VIDEO,
238− .codec_id = CODEC_ID_MPEG4,
238+ .codec_id = AV_CODEC_ID_MPEG4,
239239 .parse_sdp_a_line = parse_sdp_line,
240240 };
241241
242242 RTPDynamicProtocolHandler ff_mpeg4_generic_dynamic_handler = {
243243 .enc_name = "mpeg4-generic",
244244 .codec_type = AVMEDIA_TYPE_AUDIO,
245− .codec_id = CODEC_ID_AAC,
245+ .codec_id = AV_CODEC_ID_AAC,
246246 .parse_sdp_a_line = parse_sdp_line,
247247 .alloc = new_context,
248248 .free = free_context,
libavformat/rtpdec_qcelp.c+1−1
@@ -221,7 +221,7 @@ static int qcelp_parse_packet(AVFormatContext *ctx, PayloadContext *data, · 220 unmodified lines
221221 RTPDynamicProtocolHandler ff_qcelp_dynamic_handler = {
222222 .enc_name = "x-Purevoice",
223223 .codec_type = AVMEDIA_TYPE_AUDIO,
224− .codec_id = CODEC_ID_QCELP,
224+ .codec_id = AV_CODEC_ID_QCELP,
225225 .static_payload_id = 12,
226226 .alloc = qcelp_new_context,
227227 .free = qcelp_free_context,
libavformat/rtpdec_qdm2.c+5−5
@@ -259,14 +259,14 @@ static int qdm2_parse_packet(AVFormatContext *s, PayloadContext *qdm, · 258 unmodified lines
259259 return res;
260260 p += res;
261261
262− /* We set codec_id to CODEC_ID_NONE initially to
262+ /* We set codec_id to AV_CODEC_ID_NONE initially to
263263 * delay decoder initialization since extradata is
264264 * carried within the RTP stream, not SDP. Here,
265− * by setting codec_id to CODEC_ID_QDM2, we are signalling
265+ * by setting codec_id to AV_CODEC_ID_QDM2, we are signalling
266266 * to the decoder that it is OK to initialize. */
267− st->codec->codec_id = CODEC_ID_QDM2;
267+ st->codec->codec_id = AV_CODEC_ID_QDM2;
268268 }
269− if (st->codec->codec_id == CODEC_ID_NONE)
269+ if (st->codec->codec_id == AV_CODEC_ID_NONE)
270270 return AVERROR(EAGAIN);
271271
272272 /* subpackets */
@@ -310,7 +310,7 @@ static void qdm2_extradata_free(PayloadContext *qdm) · 37 unmodified lines
310310 RTPDynamicProtocolHandler ff_qdm2_dynamic_handler = {
311311 .enc_name = "X-QDM",
312312 .codec_type = AVMEDIA_TYPE_AUDIO,
313− .codec_id = CODEC_ID_NONE,
313+ .codec_id = AV_CODEC_ID_NONE,
314314 .alloc = qdm2_extradata_new,
315315 .free = qdm2_extradata_free,
316316 .parse_packet = qdm2_parse_packet,
libavformat/rtpdec_qt.c+1−1
@@ -244,7 +244,7 @@ static void qt_rtp_free(PayloadContext *qt) · 243 unmodified lines
244244 RTPDynamicProtocolHandler ff_ ## m ## _rtp_ ## n ## _handler = { \
245245 .enc_name = s, \
246246 .codec_type = t, \
247− .codec_id = CODEC_ID_NONE, \
247+ .codec_id = AV_CODEC_ID_NONE, \
248248 .alloc = qt_rtp_new, \
249249 .free = qt_rtp_free, \
250250 .parse_packet = qt_rtp_parse_packet, \
libavformat/rtpdec_svq3.c+4−4
@@ -68,12 +68,12 @@ static int svq3_parse_packet (AVFormatContext *s, PayloadContext *sv, · 67 unmodified lines
6868 AV_WB32(st->codec->extradata + 4, len);
6969 memcpy(st->codec->extradata + 8, buf, len);
7070
71− /* We set codec_id to CODEC_ID_NONE initially to
71+ /* We set codec_id to AV_CODEC_ID_NONE initially to
7272 * delay decoder initialization since extradata is
7373 * carried within the RTP stream, not SDP. Here,
74− * by setting codec_id to CODEC_ID_SVQ3, we are signalling
74+ * by setting codec_id to AV_CODEC_ID_SVQ3, we are signalling
7575 * to the decoder that it is OK to initialize. */
76− st->codec->codec_id = CODEC_ID_SVQ3;
76+ st->codec->codec_id = AV_CODEC_ID_SVQ3;
7777
7878 return AVERROR(EAGAIN);
7979 }
@@ -127,7 +127,7 @@ static void svq3_extradata_free(PayloadContext *sv) · 47 unmodified lines
127127 RTPDynamicProtocolHandler ff_svq3_dynamic_handler = {
128128 .enc_name = "X-SV3V-ES",
129129 .codec_type = AVMEDIA_TYPE_VIDEO,
130− .codec_id = CODEC_ID_NONE, // see if (config_packet) above
130+ .codec_id = AV_CODEC_ID_NONE, // see if (config_packet) above
131131 .alloc = svq3_extradata_new,
132132 .free = svq3_extradata_free,
133133 .parse_packet = svq3_parse_packet,
libavformat/rtpdec_vp8.c+1−1
@@ -147,7 +147,7 @@ static void vp8_free_context(PayloadContext *vp8) · 146 unmodified lines
147147 RTPDynamicProtocolHandler ff_vp8_dynamic_handler = {
148148 .enc_name = "VP8",
149149 .codec_type = AVMEDIA_TYPE_VIDEO,
150− .codec_id = CODEC_ID_VP8,
150+ .codec_id = AV_CODEC_ID_VP8,
151151 .alloc = vp8_new_context,
152152 .free = vp8_free_context,
153153 .parse_packet = vp8_handle_packet,
libavformat/rtpdec_xiph.c+2−2
@@ -390,7 +390,7 @@ static int xiph_parse_sdp_line(AVFormatContext *s, int st_index, · 389 unmodified lines
390390 RTPDynamicProtocolHandler ff_theora_dynamic_handler = {
391391 .enc_name = "theora",
392392 .codec_type = AVMEDIA_TYPE_VIDEO,
393− .codec_id = CODEC_ID_THEORA,
393+ .codec_id = AV_CODEC_ID_THEORA,
394394 .parse_sdp_a_line = xiph_parse_sdp_line,
395395 .alloc = xiph_new_context,
396396 .free = xiph_free_context,
@@ -400,7 +400,7 @@ RTPDynamicProtocolHandler ff_theora_dynamic_handler = { · 3 unmodified lines
400400 RTPDynamicProtocolHandler ff_vorbis_dynamic_handler = {
401401 .enc_name = "vorbis",
402402 .codec_type = AVMEDIA_TYPE_AUDIO,
403− .codec_id = CODEC_ID_VORBIS,
403+ .codec_id = AV_CODEC_ID_VORBIS,
404404 .parse_sdp_a_line = xiph_parse_sdp_line,
405405 .alloc = xiph_new_context,
406406 .free = xiph_free_context,
libavformat/rtpenc.c+69−69
@@ -46,35 +46,35 @@ static const AVClass rtp_muxer_class = { · 45 unmodified lines
4646
4747 #define RTCP_SR_SIZE 28
4848
49−static int is_supported(enum CodecID id)
49+static int is_supported(enum AVCodecID id)
5050 {
5151 switch(id) {
52− case CODEC_ID_H263:
53− case CODEC_ID_H263P:
54− case CODEC_ID_H264:
55− case CODEC_ID_MPEG1VIDEO:
56− case CODEC_ID_MPEG2VIDEO:
57− case CODEC_ID_MPEG4:
58− case CODEC_ID_AAC:
59− case CODEC_ID_MP2:
60− case CODEC_ID_MP3:
61− case CODEC_ID_PCM_ALAW:
62− case CODEC_ID_PCM_MULAW:
63− case CODEC_ID_PCM_S8:
64− case CODEC_ID_PCM_S16BE:
65− case CODEC_ID_PCM_S16LE:
66− case CODEC_ID_PCM_U16BE:
67− case CODEC_ID_PCM_U16LE:
68− case CODEC_ID_PCM_U8:
69− case CODEC_ID_MPEG2TS:
70− case CODEC_ID_AMR_NB:
71− case CODEC_ID_AMR_WB:
72− case CODEC_ID_VORBIS:
73− case CODEC_ID_THEORA:
74− case CODEC_ID_VP8:
75− case CODEC_ID_ADPCM_G722:
76− case CODEC_ID_ADPCM_G726:
77− case CODEC_ID_ILBC:
52+ case AV_CODEC_ID_H263:
53+ case AV_CODEC_ID_H263P:
54+ case AV_CODEC_ID_H264:
55+ case AV_CODEC_ID_MPEG1VIDEO:
56+ case AV_CODEC_ID_MPEG2VIDEO:
57+ case AV_CODEC_ID_MPEG4:
58+ case AV_CODEC_ID_AAC:
59+ case AV_CODEC_ID_MP2:
60+ case AV_CODEC_ID_MP3:
61+ case AV_CODEC_ID_PCM_ALAW:
62+ case AV_CODEC_ID_PCM_MULAW:
63+ case AV_CODEC_ID_PCM_S8:
64+ case AV_CODEC_ID_PCM_S16BE:
65+ case AV_CODEC_ID_PCM_S16LE:
66+ case AV_CODEC_ID_PCM_U16BE:
67+ case AV_CODEC_ID_PCM_U16LE:
68+ case AV_CODEC_ID_PCM_U8:
69+ case AV_CODEC_ID_MPEG2TS:
70+ case AV_CODEC_ID_AMR_NB:
71+ case AV_CODEC_ID_AMR_WB:
72+ case AV_CODEC_ID_VORBIS:
73+ case AV_CODEC_ID_THEORA:
74+ case AV_CODEC_ID_VP8:
75+ case AV_CODEC_ID_ADPCM_G722:
76+ case AV_CODEC_ID_ADPCM_G726:
77+ case AV_CODEC_ID_ILBC:
7878 return 1;
7979 default:
8080 return 0;
@@ -152,43 +152,43 @@ static int rtp_write_header(AVFormatContext *s1) · 71 unmodified lines
152152
153153 avpriv_set_pts_info(st, 32, 1, 90000);
154154 switch(st->codec->codec_id) {
155− case CODEC_ID_MP2:
156− case CODEC_ID_MP3:
155+ case AV_CODEC_ID_MP2:
156+ case AV_CODEC_ID_MP3:
157157 s->buf_ptr = s->buf + 4;
158158 break;
159− case CODEC_ID_MPEG1VIDEO:
160− case CODEC_ID_MPEG2VIDEO:
159+ case AV_CODEC_ID_MPEG1VIDEO:
160+ case AV_CODEC_ID_MPEG2VIDEO:
161161 break;
162− case CODEC_ID_MPEG2TS:
162+ case AV_CODEC_ID_MPEG2TS:
163163 n = s->max_payload_size / TS_PACKET_SIZE;
164164 if (n < 1)
165165 n = 1;
166166 s->max_payload_size = n * TS_PACKET_SIZE;
167167 s->buf_ptr = s->buf;
168168 break;
169− case CODEC_ID_H264:
169+ case AV_CODEC_ID_H264:
170170 /* check for H.264 MP4 syntax */
171171 if (st->codec->extradata_size > 4 && st->codec->extradata[0] == 1) {
172172 s->nal_length_size = (st->codec->extradata[4] & 0x03) + 1;
173173 }
174174 break;
175− case CODEC_ID_VORBIS:
176− case CODEC_ID_THEORA:
175+ case AV_CODEC_ID_VORBIS:
176+ case AV_CODEC_ID_THEORA:
177177 if (!s->max_frames_per_packet) s->max_frames_per_packet = 15;
178178 s->max_frames_per_packet = av_clip(s->max_frames_per_packet, 1, 15);
179179 s->max_payload_size -= 6; // ident+frag+tdt/vdt+pkt_num+pkt_length
180180 s->num_frames = 0;
181181 goto defaultcase;
182− case CODEC_ID_VP8:
182+ case AV_CODEC_ID_VP8:
183183 av_log(s1, AV_LOG_ERROR, "RTP VP8 payload implementation is "
184184 "incompatible with the latest spec drafts.\n");
185185 break;
186− case CODEC_ID_ADPCM_G722:
186+ case AV_CODEC_ID_ADPCM_G722:
187187 /* Due to a historical error, the clock rate for G722 in RTP is
188188 * 8000, even if the sample rate is 16000. See RFC 3551. */
189189 avpriv_set_pts_info(st, 32, 1, 8000);
190190 break;
191− case CODEC_ID_ILBC:
191+ case AV_CODEC_ID_ILBC:
192192 if (st->codec->block_align != 38 && st->codec->block_align != 50) {
193193 av_log(s1, AV_LOG_ERROR, "Incorrect iLBC block size specified\n");
194194 goto fail;
@@ -198,11 +198,11 @@ static int rtp_write_header(AVFormatContext *s1) · 3 unmodified lines
198198 s->max_frames_per_packet = FFMIN(s->max_frames_per_packet,
199199 s->max_payload_size / st->codec->block_align);
200200 goto defaultcase;
201− case CODEC_ID_AMR_NB:
202− case CODEC_ID_AMR_WB:
201+ case AV_CODEC_ID_AMR_NB:
202+ case AV_CODEC_ID_AMR_WB:
203203 if (!s->max_frames_per_packet)
204204 s->max_frames_per_packet = 12;
205− if (st->codec->codec_id == CODEC_ID_AMR_NB)
205+ if (st->codec->codec_id == AV_CODEC_ID_AMR_NB)
206206 n = 31;
207207 else
208208 n = 61;
@@ -215,7 +215,7 @@ static int rtp_write_header(AVFormatContext *s1) · 6 unmodified lines
215215 av_log(s1, AV_LOG_ERROR, "Only mono is supported\n");
216216 goto fail;
217217 }
218− case CODEC_ID_AAC:
218+ case AV_CODEC_ID_AAC:
219219 s->num_frames = 0;
220220 default:
221221 defaultcase:
@@ -457,54 +457,54 @@ static int rtp_write_packet(AVFormatContext *s1, AVPacket *pkt) · 235 unmodified lines
457457 s->cur_timestamp = s->base_timestamp + pkt->pts;
458458
459459 switch(st->codec->codec_id) {
460− case CODEC_ID_PCM_MULAW:
461− case CODEC_ID_PCM_ALAW:
462− case CODEC_ID_PCM_U8:
463− case CODEC_ID_PCM_S8:
460+ case AV_CODEC_ID_PCM_MULAW:
461+ case AV_CODEC_ID_PCM_ALAW:
462+ case AV_CODEC_ID_PCM_U8:
463+ case AV_CODEC_ID_PCM_S8:
464464 rtp_send_samples(s1, pkt->data, size, 8 * st->codec->channels);
465465 break;
466− case CODEC_ID_PCM_U16BE:
467− case CODEC_ID_PCM_U16LE:
468− case CODEC_ID_PCM_S16BE:
469− case CODEC_ID_PCM_S16LE:
466+ case AV_CODEC_ID_PCM_U16BE:
467+ case AV_CODEC_ID_PCM_U16LE:
468+ case AV_CODEC_ID_PCM_S16BE:
469+ case AV_CODEC_ID_PCM_S16LE:
470470 rtp_send_samples(s1, pkt->data, size, 16 * st->codec->channels);
471471 break;
472− case CODEC_ID_ADPCM_G722:
472+ case AV_CODEC_ID_ADPCM_G722:
473473 /* The actual sample size is half a byte per sample, but since the
474474 * stream clock rate is 8000 Hz while the sample rate is 16000 Hz,
475475 * the correct parameter for send_samples_bits is 8 bits per stream
476476 * clock. */
477477 rtp_send_samples(s1, pkt->data, size, 8 * st->codec->channels);
478478 break;
479− case CODEC_ID_ADPCM_G726:
479+ case AV_CODEC_ID_ADPCM_G726:
480480 rtp_send_samples(s1, pkt->data, size,
481481 st->codec->bits_per_coded_sample * st->codec->channels);
482482 break;
483− case CODEC_ID_MP2:
484− case CODEC_ID_MP3:
483+ case AV_CODEC_ID_MP2:
484+ case AV_CODEC_ID_MP3:
485485 rtp_send_mpegaudio(s1, pkt->data, size);
486486 break;
487− case CODEC_ID_MPEG1VIDEO:
488− case CODEC_ID_MPEG2VIDEO:
487+ case AV_CODEC_ID_MPEG1VIDEO:
488+ case AV_CODEC_ID_MPEG2VIDEO:
489489 ff_rtp_send_mpegvideo(s1, pkt->data, size);
490490 break;
491− case CODEC_ID_AAC:
491+ case AV_CODEC_ID_AAC:
492492 if (s->flags & FF_RTP_FLAG_MP4A_LATM)
493493 ff_rtp_send_latm(s1, pkt->data, size);
494494 else
495495 ff_rtp_send_aac(s1, pkt->data, size);
496496 break;
497− case CODEC_ID_AMR_NB:
498− case CODEC_ID_AMR_WB:
497+ case AV_CODEC_ID_AMR_NB:
498+ case AV_CODEC_ID_AMR_WB:
499499 ff_rtp_send_amr(s1, pkt->data, size);
500500 break;
501− case CODEC_ID_MPEG2TS:
501+ case AV_CODEC_ID_MPEG2TS:
502502 rtp_send_mpegts_raw(s1, pkt->data, size);
503503 break;
504− case CODEC_ID_H264:
504+ case AV_CODEC_ID_H264:
505505 ff_rtp_send_h264(s1, pkt->data, size);
506506 break;
507− case CODEC_ID_H263:
507+ case AV_CODEC_ID_H263:
508508 if (s->flags & FF_RTP_FLAG_RFC2190) {
509509 int mb_info_size = 0;
510510 const uint8_t *mb_info =
@@ -514,17 +514,17 @@ static int rtp_write_packet(AVFormatContext *s1, AVPacket *pkt) · 3 unmodified lines
514514 break;
515515 }
516516 /* Fallthrough */
517− case CODEC_ID_H263P:
517+ case AV_CODEC_ID_H263P:
518518 ff_rtp_send_h263(s1, pkt->data, size);
519519 break;
520− case CODEC_ID_VORBIS:
521− case CODEC_ID_THEORA:
520+ case AV_CODEC_ID_VORBIS:
521+ case AV_CODEC_ID_THEORA:
522522 ff_rtp_send_xiph(s1, pkt->data, size);
523523 break;
524− case CODEC_ID_VP8:
524+ case AV_CODEC_ID_VP8:
525525 ff_rtp_send_vp8(s1, pkt->data, size);
526526 break;
527− case CODEC_ID_ILBC:
527+ case AV_CODEC_ID_ILBC:
528528 rtp_send_ilbc(s1, pkt->data, size);
529529 break;
530530 default:
@@ -548,8 +548,8 @@ AVOutputFormat ff_rtp_muxer = { · 17 unmodified lines
548548 .name = "rtp",
549549 .long_name = NULL_IF_CONFIG_SMALL("RTP output"),
550550 .priv_data_size = sizeof(RTPMuxContext),
551− .audio_codec = CODEC_ID_PCM_MULAW,
552− .video_codec = CODEC_ID_MPEG4,
551+ .audio_codec = AV_CODEC_ID_PCM_MULAW,
552+ .video_codec = AV_CODEC_ID_MPEG4,
553553 .write_header = rtp_write_header,
554554 .write_packet = rtp_write_packet,
555555 .write_trailer = rtp_write_trailer,
libavformat/rtsp.c+1−1
@@ -207,7 +207,7 @@ static int sdp_parse_rtpmap(AVFormatContext *s, · 206 unmodified lines
207207 codec->codec_id = ff_rtp_codec_id(buf, codec->codec_type);
208208 }
209209
210− if (codec->codec_id == CODEC_ID_NONE) {
210+ if (codec->codec_id == AV_CODEC_ID_NONE) {
211211 RTPDynamicProtocolHandler *handler =
212212 ff_rtp_handler_find_by_name(buf, codec->codec_type);
213213 init_rtp_handler(handler, rtsp_st, codec);
libavformat/rtspenc.c+2−2
@@ -237,8 +237,8 @@ AVOutputFormat ff_rtsp_muxer = { · 236 unmodified lines
237237 .name = "rtsp",
238238 .long_name = NULL_IF_CONFIG_SMALL("RTSP output"),
239239 .priv_data_size = sizeof(RTSPState),
240− .audio_codec = CODEC_ID_AAC,
241− .video_codec = CODEC_ID_MPEG4,
240+ .audio_codec = AV_CODEC_ID_AAC,
241+ .video_codec = AV_CODEC_ID_MPEG4,
242242 .write_header = rtsp_write_header,
243243 .write_packet = rtsp_write_packet,
244244 .write_trailer = rtsp_write_close,
libavformat/sapenc.c+2−2
@@ -256,8 +256,8 @@ AVOutputFormat ff_sap_muxer = { · 255 unmodified lines
256256 .name = "sap",
257257 .long_name = NULL_IF_CONFIG_SMALL("SAP output"),
258258 .priv_data_size = sizeof(struct SAPState),
259− .audio_codec = CODEC_ID_AAC,
260− .video_codec = CODEC_ID_MPEG4,
259+ .audio_codec = AV_CODEC_ID_AAC,
260+ .video_codec = AV_CODEC_ID_MPEG4,
261261 .write_header = sap_write_header,
262262 .write_packet = sap_write_packet,
263263 .write_trailer = sap_write_close,
libavformat/sdp.c+19−19
@@ -257,10 +257,10 @@ static char *xiph_extradata2config(AVCodecContext *c) · 256 unmodified lines
257257 int first_header_size;
258258
259259 switch (c->codec_id) {
260− case CODEC_ID_THEORA:
260+ case AV_CODEC_ID_THEORA:
261261 first_header_size = 42;
262262 break;
263− case CODEC_ID_VORBIS:
263+ case AV_CODEC_ID_VORBIS:
264264 first_header_size = 30;
265265 break;
266266 default:
@@ -388,7 +388,7 @@ static char *sdp_write_media_attributes(char *buff, int size, AVCodecContext *c, · 121 unmodified lines
388388 char *config = NULL;
389389
390390 switch (c->codec_id) {
391− case CODEC_ID_H264: {
391+ case AV_CODEC_ID_H264: {
392392 int mode = 1;
393393 if (fmt && fmt->oformat->priv_class &&
394394 av_opt_flag_is_set(fmt->priv_data, "rtpflags", "h264_mode0"))
@@ -402,21 +402,21 @@ static char *sdp_write_media_attributes(char *buff, int size, AVCodecContext *c, · 7 unmodified lines
402402 payload_type, mode, config ? config : "");
403403 break;
404404 }
405− case CODEC_ID_H263:
406− case CODEC_ID_H263P:
405+ case AV_CODEC_ID_H263:
406+ case AV_CODEC_ID_H263P:
407407 /* a=framesize is required by 3GPP TS 26.234 (PSS). It
408408 * actually specifies the maximum video size, but we only know
409409 * the current size. This is required for playback on Android
410410 * stagefright and on Samsung bada. */
411411 if (!fmt || !fmt->oformat->priv_class ||
412412 !av_opt_flag_is_set(fmt->priv_data, "rtpflags", "rfc2190") ||
413− c->codec_id == CODEC_ID_H263P)
413+ c->codec_id == AV_CODEC_ID_H263P)
414414 av_strlcatf(buff, size, "a=rtpmap:%d H263-2000/90000\r\n"
415415 "a=framesize:%d %d-%d\r\n",
416416 payload_type,
417417 payload_type, c->width, c->height);
418418 break;
419− case CODEC_ID_MPEG4:
419+ case AV_CODEC_ID_MPEG4:
420420 if (c->extradata_size) {
421421 config = extradata2config(c);
422422 }
@@ -425,7 +425,7 @@ static char *sdp_write_media_attributes(char *buff, int size, AVCodecContext *c, · 2 unmodified lines
425425 payload_type,
426426 payload_type, config ? config : "");
427427 break;
428− case CODEC_ID_AAC:
428+ case AV_CODEC_ID_AAC:
429429 if (fmt && fmt->oformat->priv_class &&
430430 av_opt_flag_is_set(fmt->priv_data, "rtpflags", "latm")) {
431431 config = latm_context2config(c);
@@ -456,37 +456,37 @@ static char *sdp_write_media_attributes(char *buff, int size, AVCodecContext *c, · 24 unmodified lines
456456 payload_type, config);
457457 }
458458 break;
459− case CODEC_ID_PCM_S16BE:
459+ case AV_CODEC_ID_PCM_S16BE:
460460 if (payload_type >= RTP_PT_PRIVATE)
461461 av_strlcatf(buff, size, "a=rtpmap:%d L16/%d/%d\r\n",
462462 payload_type,
463463 c->sample_rate, c->channels);
464464 break;
465− case CODEC_ID_PCM_MULAW:
465+ case AV_CODEC_ID_PCM_MULAW:
466466 if (payload_type >= RTP_PT_PRIVATE)
467467 av_strlcatf(buff, size, "a=rtpmap:%d PCMU/%d/%d\r\n",
468468 payload_type,
469469 c->sample_rate, c->channels);
470470 break;
471− case CODEC_ID_PCM_ALAW:
471+ case AV_CODEC_ID_PCM_ALAW:
472472 if (payload_type >= RTP_PT_PRIVATE)
473473 av_strlcatf(buff, size, "a=rtpmap:%d PCMA/%d/%d\r\n",
474474 payload_type,
475475 c->sample_rate, c->channels);
476476 break;
477− case CODEC_ID_AMR_NB:
477+ case AV_CODEC_ID_AMR_NB:
478478 av_strlcatf(buff, size, "a=rtpmap:%d AMR/%d/%d\r\n"
479479 "a=fmtp:%d octet-align=1\r\n",
480480 payload_type, c->sample_rate, c->channels,
481481 payload_type);
482482 break;
483− case CODEC_ID_AMR_WB:
483+ case AV_CODEC_ID_AMR_WB:
484484 av_strlcatf(buff, size, "a=rtpmap:%d AMR-WB/%d/%d\r\n"
485485 "a=fmtp:%d octet-align=1\r\n",
486486 payload_type, c->sample_rate, c->channels,
487487 payload_type);
488488 break;
489− case CODEC_ID_VORBIS:
489+ case AV_CODEC_ID_VORBIS:
490490 if (c->extradata_size)
491491 config = xiph_extradata2config(c);
492492 else
@@ -499,7 +499,7 @@ static char *sdp_write_media_attributes(char *buff, int size, AVCodecContext *c, · 6 unmodified lines
499499 payload_type, c->sample_rate, c->channels,
500500 payload_type, config);
501501 break;
502− case CODEC_ID_THEORA: {
502+ case AV_CODEC_ID_THEORA: {
503503 const char *pix_fmt;
504504 if (c->extradata_size)
505505 config = xiph_extradata2config(c);
@@ -531,17 +531,17 @@ static char *sdp_write_media_attributes(char *buff, int size, AVCodecContext *c, · 25 unmodified lines
531531 c->width, c->height, pix_fmt, config);
532532 break;
533533 }
534− case CODEC_ID_VP8:
534+ case AV_CODEC_ID_VP8:
535535 av_strlcatf(buff, size, "a=rtpmap:%d VP8/90000\r\n",
536536 payload_type);
537537 break;
538− case CODEC_ID_ADPCM_G722:
538+ case AV_CODEC_ID_ADPCM_G722:
539539 if (payload_type >= RTP_PT_PRIVATE)
540540 av_strlcatf(buff, size, "a=rtpmap:%d G722/%d/%d\r\n",
541541 payload_type,
542542 8000, c->channels);
543543 break;
544− case CODEC_ID_ADPCM_G726: {
544+ case AV_CODEC_ID_ADPCM_G726: {
545545 if (payload_type >= RTP_PT_PRIVATE)
546546 av_strlcatf(buff, size, "a=rtpmap:%d G726-%d/%d\r\n",
547547 payload_type,
@@ -549,7 +549,7 @@ static char *sdp_write_media_attributes(char *buff, int size, AVCodecContext *c, · 1 unmodified line
549549 c->sample_rate);
550550 break;
551551 }
552− case CODEC_ID_ILBC:
552+ case AV_CODEC_ID_ILBC:
553553 av_strlcatf(buff, size, "a=rtpmap:%d iLBC/%d\r\n"
554554 "a=fmtp:%d mode=%d\r\n",
555555 payload_type, c->sample_rate,
libavformat/segafilm.c+17−17
@@ -49,12 +49,12 @@ typedef struct FilmDemuxContext { · 48 unmodified lines
4949 int video_stream_index;
5050 int audio_stream_index;
5151
52− enum CodecID audio_type;
52+ enum AVCodecID audio_type;
5353 unsigned int audio_samplerate;
5454 unsigned int audio_bits;
5555 unsigned int audio_channels;
5656
57− enum CodecID video_type;
57+ enum AVCodecID video_type;
5858 unsigned int sample_count;
5959 film_sample *sample_table;
6060 unsigned int current_sample;
@@ -101,7 +101,7 @@ static int film_read_header(AVFormatContext *s) · 40 unmodified lines
101101 if (avio_read(pb, scratch, 20) != 20)
102102 return AVERROR(EIO);
103103 /* make some assumptions about the audio parameters */
104− film->audio_type = CODEC_ID_PCM_S8;
104+ film->audio_type = AV_CODEC_ID_PCM_S8;
105105 film->audio_samplerate = 22050;
106106 film->audio_channels = 1;
107107 film->audio_bits = 8;
@@ -113,27 +113,27 @@ static int film_read_header(AVFormatContext *s) · 5 unmodified lines
113113 film->audio_channels = scratch[21];
114114 film->audio_bits = scratch[22];
115115 if (scratch[23] == 2)
116− film->audio_type = CODEC_ID_ADPCM_ADX;
116+ film->audio_type = AV_CODEC_ID_ADPCM_ADX;
117117 else if (film->audio_channels > 0) {
118118 if (film->audio_bits == 8)
119− film->audio_type = CODEC_ID_PCM_S8;
119+ film->audio_type = AV_CODEC_ID_PCM_S8;
120120 else if (film->audio_bits == 16)
121− film->audio_type = CODEC_ID_PCM_S16BE;
121+ film->audio_type = AV_CODEC_ID_PCM_S16BE;
122122 else
123− film->audio_type = CODEC_ID_NONE;
123+ film->audio_type = AV_CODEC_ID_NONE;
124124 } else
125− film->audio_type = CODEC_ID_NONE;
125+ film->audio_type = AV_CODEC_ID_NONE;
126126 }
127127
128128 if (AV_RB32(&scratch[0]) != FDSC_TAG)
129129 return AVERROR_INVALIDDATA;
130130
131131 if (AV_RB32(&scratch[8]) == CVID_TAG) {
132− film->video_type = CODEC_ID_CINEPAK;
132+ film->video_type = AV_CODEC_ID_CINEPAK;
133133 } else if (AV_RB32(&scratch[8]) == RAW_TAG) {
134− film->video_type = CODEC_ID_RAWVIDEO;
134+ film->video_type = AV_CODEC_ID_RAWVIDEO;
135135 } else {
136− film->video_type = CODEC_ID_NONE;
136+ film->video_type = AV_CODEC_ID_NONE;
137137 }
138138
139139 /* initialize the decoder streams */
@@ -148,7 +148,7 @@ static int film_read_header(AVFormatContext *s) · 8 unmodified lines
148148 st->codec->width = AV_RB32(&scratch[16]);
149149 st->codec->height = AV_RB32(&scratch[12]);
150150
151− if (film->video_type == CODEC_ID_RAWVIDEO) {
151+ if (film->video_type == AV_CODEC_ID_RAWVIDEO) {
152152 if (scratch[20] == 24) {
153153 st->codec->pix_fmt = PIX_FMT_RGB24;
154154 } else {
@@ -169,7 +169,7 @@ static int film_read_header(AVFormatContext *s) · 14 unmodified lines
169169 st->codec->channels = film->audio_channels;
170170 st->codec->sample_rate = film->audio_samplerate;
171171
172− if (film->audio_type == CODEC_ID_ADPCM_ADX) {
172+ if (film->audio_type == AV_CODEC_ID_ADPCM_ADX) {
173173 st->codec->bits_per_coded_sample = 18 * 8 / 32;
174174 st->codec->block_align = st->codec->channels * 18;
175175 st->need_parsing = AVSTREAM_PARSE_FULL;
@@ -218,10 +218,10 @@ static int film_read_header(AVFormatContext *s) · 42 unmodified lines
218218 film->sample_table[i].stream = film->audio_stream_index;
219219 film->sample_table[i].pts = audio_frame_counter;
220220
221− if (film->audio_type == CODEC_ID_ADPCM_ADX)
221+ if (film->audio_type == AV_CODEC_ID_ADPCM_ADX)
222222 audio_frame_counter += (film->sample_table[i].sample_size * 32 /
223223 (18 * film->audio_channels));
224− else if (film->audio_type != CODEC_ID_NONE)
224+ else if (film->audio_type != AV_CODEC_ID_NONE)
225225 audio_frame_counter += (film->sample_table[i].sample_size /
226226 (film->audio_channels * film->audio_bits / 8));
227227 } else {
@@ -256,14 +256,14 @@ static int film_read_packet(AVFormatContext *s, · 28 unmodified lines
256256
257257 /* do a special song and dance when loading FILM Cinepak chunks */
258258 if ((sample->stream == film->video_stream_index) &&
259− (film->video_type == CODEC_ID_CINEPAK)) {
259+ (film->video_type == AV_CODEC_ID_CINEPAK)) {
260260 pkt->pos= avio_tell(pb);
261261 if (av_new_packet(pkt, sample->sample_size))
262262 return AVERROR(ENOMEM);
263263 avio_read(pb, pkt->data, sample->sample_size);
264264 } else if ((sample->stream == film->audio_stream_index) &&
265265 (film->audio_channels == 2) &&
266− (film->audio_type != CODEC_ID_ADPCM_ADX)) {
266+ (film->audio_type != AV_CODEC_ID_ADPCM_ADX)) {
267267 /* stereo PCM needs to be interleaved */
268268
269269 if (av_new_packet(pkt, sample->sample_size))
libavformat/sierravmd.c+2−2
@@ -110,7 +110,7 @@ static int vmd_read_header(AVFormatContext *s) · 109 unmodified lines
110110 avpriv_set_pts_info(vst, 33, 1, 10);
111111 vmd->video_stream_index = vst->index;
112112 vst->codec->codec_type = AVMEDIA_TYPE_VIDEO;
113− vst->codec->codec_id = vmd->is_indeo3 ? CODEC_ID_INDEO3 : CODEC_ID_VMDVIDEO;
113+ vst->codec->codec_id = vmd->is_indeo3 ? AV_CODEC_ID_INDEO3 : AV_CODEC_ID_VMDVIDEO;
114114 vst->codec->codec_tag = 0; /* no fourcc */
115115 vst->codec->width = AV_RL16(&vmd->vmd_header[12]);
116116 vst->codec->height = AV_RL16(&vmd->vmd_header[14]);
@@ -130,7 +130,7 @@ static int vmd_read_header(AVFormatContext *s) · 13 unmodified lines
130130 return AVERROR(ENOMEM);
131131 vmd->audio_stream_index = st->index;
132132 st->codec->codec_type = AVMEDIA_TYPE_AUDIO;
133− st->codec->codec_id = CODEC_ID_VMDAUDIO;
133+ st->codec->codec_id = AV_CODEC_ID_VMDAUDIO;
134134 st->codec->codec_tag = 0; /* no fourcc */
135135 st->codec->channels = (vmd->vmd_header[811] & 0x80) ? 2 : 1;
136136 st->codec->sample_rate = vmd->sample_rate;
libavformat/siff.c+2−2
@@ -76,7 +76,7 @@ static int create_audio_stream(AVFormatContext *s, SIFFContext *c) · 75 unmodified lines
7676 if (!ast)
7777 return -1;
7878 ast->codec->codec_type = AVMEDIA_TYPE_AUDIO;
79− ast->codec->codec_id = CODEC_ID_PCM_U8;
79+ ast->codec->codec_id = AV_CODEC_ID_PCM_U8;
8080 ast->codec->channels = 1;
8181 ast->codec->bits_per_coded_sample = 8;
8282 ast->codec->sample_rate = c->rate;
@@ -120,7 +120,7 @@ static int siff_parse_vbv1(AVFormatContext *s, SIFFContext *c, AVIOContext *pb) · 37 unmodified lines
120120 if (!st)
121121 return -1;
122122 st->codec->codec_type = AVMEDIA_TYPE_VIDEO;
123− st->codec->codec_id = CODEC_ID_VB;
123+ st->codec->codec_id = AV_CODEC_ID_VB;
124124 st->codec->codec_tag = MKTAG('V', 'B', 'V', '1');
125125 st->codec->width = width;
126126 st->codec->height = height;
libavformat/smacker.c+7−7
@@ -163,7 +163,7 @@ static int smacker_read_header(AVFormatContext *s) · 162 unmodified lines
163163 st->codec->height = smk->height;
164164 st->codec->pix_fmt = PIX_FMT_PAL8;
165165 st->codec->codec_type = AVMEDIA_TYPE_VIDEO;
166− st->codec->codec_id = CODEC_ID_SMACKVIDEO;
166+ st->codec->codec_id = AV_CODEC_ID_SMACKVIDEO;
167167 st->codec->codec_tag = smk->magic;
168168 /* Smacker uses 100000 as internal timebase */
169169 if(smk->pts_inc < 0)
@@ -182,20 +182,20 @@ static int smacker_read_header(AVFormatContext *s) · 12 unmodified lines
182182 smk->indexes[i] = ast[i]->index;
183183 ast[i]->codec->codec_type = AVMEDIA_TYPE_AUDIO;
184184 if (smk->aflags[i] & SMK_AUD_BINKAUD) {
185− ast[i]->codec->codec_id = CODEC_ID_BINKAUDIO_RDFT;
185+ ast[i]->codec->codec_id = AV_CODEC_ID_BINKAUDIO_RDFT;
186186 } else if (smk->aflags[i] & SMK_AUD_USEDCT) {
187− ast[i]->codec->codec_id = CODEC_ID_BINKAUDIO_DCT;
187+ ast[i]->codec->codec_id = AV_CODEC_ID_BINKAUDIO_DCT;
188188 } else if (smk->aflags[i] & SMK_AUD_PACKED){
189− ast[i]->codec->codec_id = CODEC_ID_SMACKAUDIO;
189+ ast[i]->codec->codec_id = AV_CODEC_ID_SMACKAUDIO;
190190 ast[i]->codec->codec_tag = MKTAG('S', 'M', 'K', 'A');
191191 } else {
192− ast[i]->codec->codec_id = CODEC_ID_PCM_U8;
192+ ast[i]->codec->codec_id = AV_CODEC_ID_PCM_U8;
193193 }
194194 ast[i]->codec->channels = (smk->aflags[i] & SMK_AUD_STEREO) ? 2 : 1;
195195 ast[i]->codec->sample_rate = smk->rates[i];
196196 ast[i]->codec->bits_per_coded_sample = (smk->aflags[i] & SMK_AUD_16BITS) ? 16 : 8;
197− if(ast[i]->codec->bits_per_coded_sample == 16 && ast[i]->codec->codec_id == CODEC_ID_PCM_U8)
198− ast[i]->codec->codec_id = CODEC_ID_PCM_S16LE;
197+ if(ast[i]->codec->bits_per_coded_sample == 16 && ast[i]->codec->codec_id == AV_CODEC_ID_PCM_U8)
198+ ast[i]->codec->codec_id = AV_CODEC_ID_PCM_S16LE;
199199 avpriv_set_pts_info(ast[i], 64, 1, ast[i]->codec->sample_rate
200200 * ast[i]->codec->channels * ast[i]->codec->bits_per_coded_sample / 8);
201201 }
libavformat/smjpeg.c+5−5
@@ -29,12 +29,12 @@ · 28 unmodified lines
2929 #include "smjpeg.h"
3030
3131 const AVCodecTag ff_codec_smjpeg_video_tags[] = {
32− { CODEC_ID_MJPEG, MKTAG('J', 'F', 'I', 'F') },
33− { CODEC_ID_NONE, 0 },
32+ { AV_CODEC_ID_MJPEG, MKTAG('J', 'F', 'I', 'F') },
33+ { AV_CODEC_ID_NONE, 0 },
3434 };
3535
3636 const AVCodecTag ff_codec_smjpeg_audio_tags[] = {
37− { CODEC_ID_ADPCM_IMA_SMJPEG, MKTAG('A', 'P', 'C', 'M') },
38− { CODEC_ID_PCM_S16LE, MKTAG('N', 'O', 'N', 'E') },
39− { CODEC_ID_NONE, 0 },
37+ { AV_CODEC_ID_ADPCM_IMA_SMJPEG, MKTAG('A', 'P', 'C', 'M') },
38+ { AV_CODEC_ID_PCM_S16LE, MKTAG('N', 'O', 'N', 'E') },
39+ { AV_CODEC_ID_NONE, 0 },
4040 };
libavformat/smjpegenc.c+2−2
@@ -139,8 +139,8 @@ AVOutputFormat ff_smjpeg_muxer = { · 138 unmodified lines
139139 .name = "smjpeg",
140140 .long_name = NULL_IF_CONFIG_SMALL("Loki SDL MJPEG"),
141141 .priv_data_size = sizeof(SMJPEGMuxContext),
142− .audio_codec = CODEC_ID_PCM_S16LE,
143− .video_codec = CODEC_ID_MJPEG,
142+ .audio_codec = AV_CODEC_ID_PCM_S16LE,
143+ .video_codec = AV_CODEC_ID_MJPEG,
144144 .write_header = smjpeg_write_header,
145145 .write_packet = smjpeg_write_packet,
146146 .write_trailer = smjpeg_write_trailer,
libavformat/sol.c+10−10
@@ -47,21 +47,21 @@ static int sol_probe(AVProbeData *p) · 46 unmodified lines
4747 #define SOL_16BIT 4
4848 #define SOL_STEREO 16
4949
50−static enum CodecID sol_codec_id(int magic, int type)
50+static enum AVCodecID sol_codec_id(int magic, int type)
5151 {
5252 if (magic == 0x0B8D)
5353 {
54− if (type & SOL_DPCM) return CODEC_ID_SOL_DPCM;
55− else return CODEC_ID_PCM_U8;
54+ if (type & SOL_DPCM) return AV_CODEC_ID_SOL_DPCM;
55+ else return AV_CODEC_ID_PCM_U8;
5656 }
5757 if (type & SOL_DPCM)
5858 {
59− if (type & SOL_16BIT) return CODEC_ID_SOL_DPCM;
60− else if (magic == 0x0C8D) return CODEC_ID_SOL_DPCM;
61− else return CODEC_ID_SOL_DPCM;
59+ if (type & SOL_16BIT) return AV_CODEC_ID_SOL_DPCM;
60+ else if (magic == 0x0C8D) return AV_CODEC_ID_SOL_DPCM;
61+ else return AV_CODEC_ID_SOL_DPCM;
6262 }
63− if (type & SOL_16BIT) return CODEC_ID_PCM_S16LE;
64− return CODEC_ID_PCM_U8;
63+ if (type & SOL_16BIT) return AV_CODEC_ID_PCM_S16LE;
64+ return AV_CODEC_ID_PCM_U8;
6565 }
6666
6767 static int sol_codec_type(int magic, int type)
@@ -87,7 +87,7 @@ static int sol_read_header(AVFormatContext *s) · 19 unmodified lines
8787 unsigned int magic,tag;
8888 AVIOContext *pb = s->pb;
8989 unsigned int id, channels, rate, type;
90− enum CodecID codec;
90+ enum AVCodecID codec;
9191 AVStream *st;
9292
9393 /* check ".snd" header */
@@ -104,7 +104,7 @@ static int sol_read_header(AVFormatContext *s) · 10 unmodified lines
104104 codec = sol_codec_id(magic, type);
105105 channels = sol_channels(magic, type);
106106
107− if (codec == CODEC_ID_SOL_DPCM)
107+ if (codec == AV_CODEC_ID_SOL_DPCM)
108108 id = sol_codec_type(magic, type);
109109 else id = 0;
110110
libavformat/soxdec.c+2−2
@@ -58,14 +58,14 @@ static int sox_read_header(AVFormatContext *s) · 57 unmodified lines
5858 st->codec->codec_type = AVMEDIA_TYPE_AUDIO;
5959
6060 if (avio_rl32(pb) == SOX_TAG) {
61− st->codec->codec_id = CODEC_ID_PCM_S32LE;
61+ st->codec->codec_id = AV_CODEC_ID_PCM_S32LE;
6262 header_size = avio_rl32(pb);
6363 avio_skip(pb, 8); /* sample count */
6464 sample_rate = av_int2double(avio_rl64(pb));
6565 st->codec->channels = avio_rl32(pb);
6666 comment_size = avio_rl32(pb);
6767 } else {
68− st->codec->codec_id = CODEC_ID_PCM_S32BE;
68+ st->codec->codec_id = AV_CODEC_ID_PCM_S32BE;
6969 header_size = avio_rb32(pb);
7070 avio_skip(pb, 8); /* sample count */
7171 sample_rate = av_int2double(avio_rb64(pb));
libavformat/soxenc.c+5−5
@@ -55,14 +55,14 @@ static int sox_write_header(AVFormatContext *s) · 54 unmodified lines
5555
5656 sox->header_size = SOX_FIXED_HDR + comment_size;
5757
58− if (enc->codec_id == CODEC_ID_PCM_S32LE) {
58+ if (enc->codec_id == AV_CODEC_ID_PCM_S32LE) {
5959 ffio_wfourcc(pb, ".SoX");
6060 avio_wl32(pb, sox->header_size);
6161 avio_wl64(pb, 0); /* number of samples */
6262 avio_wl64(pb, av_double2int(enc->sample_rate));
6363 avio_wl32(pb, enc->channels);
6464 avio_wl32(pb, comment_size);
65− } else if (enc->codec_id == CODEC_ID_PCM_S32BE) {
65+ } else if (enc->codec_id == AV_CODEC_ID_PCM_S32BE) {
6666 ffio_wfourcc(pb, "XoS.");
6767 avio_wb32(pb, sox->header_size);
6868 avio_wb64(pb, 0); /* number of samples */
@@ -103,7 +103,7 @@ static int sox_write_trailer(AVFormatContext *s) · 34 unmodified lines
103103 int64_t file_size = avio_tell(pb);
104104 int64_t num_samples = (file_size - sox->header_size - 4LL) >> 2LL;
105105 avio_seek(pb, 8, SEEK_SET);
106− if (enc->codec_id == CODEC_ID_PCM_S32LE) {
106+ if (enc->codec_id == AV_CODEC_ID_PCM_S32LE) {
107107 avio_wl64(pb, num_samples);
108108 } else
109109 avio_wb64(pb, num_samples);
@@ -120,8 +120,8 @@ AVOutputFormat ff_sox_muxer = { · 10 unmodified lines
120120 .long_name = NULL_IF_CONFIG_SMALL("SoX native"),
121121 .extensions = "sox",
122122 .priv_data_size = sizeof(SoXContext),
123− .audio_codec = CODEC_ID_PCM_S32LE,
124− .video_codec = CODEC_ID_NONE,
123+ .audio_codec = AV_CODEC_ID_PCM_S32LE,
124+ .video_codec = AV_CODEC_ID_NONE,
125125 .write_header = sox_write_header,
126126 .write_packet = sox_write_packet,
127127 .write_trailer = sox_write_trailer,
libavformat/spdifdec.c+14−14
@@ -33,7 +33,7 @@ · 32 unmodified lines
3333 static int spdif_get_offset_and_codec(AVFormatContext *s,
3434 enum IEC61937DataType data_type,
3535 const char *buf, int *offset,
36− enum CodecID *codec)
36+ enum AVCodecID *codec)
3737 {
3838 AACADTSHeaderInfo aac_hdr;
3939 GetBitContext gbc;
@@ -41,19 +41,19 @@ static int spdif_get_offset_and_codec(AVFormatContext *s, · 1 unmodified line
4141 switch (data_type & 0xff) {
4242 case IEC61937_AC3:
4343 *offset = AC3_FRAME_SIZE << 2;
44− *codec = CODEC_ID_AC3;
44+ *codec = AV_CODEC_ID_AC3;
4545 break;
4646 case IEC61937_MPEG1_LAYER1:
4747 *offset = spdif_mpeg_pkt_offset[1][0];
48− *codec = CODEC_ID_MP1;
48+ *codec = AV_CODEC_ID_MP1;
4949 break;
5050 case IEC61937_MPEG1_LAYER23:
5151 *offset = spdif_mpeg_pkt_offset[1][0];
52− *codec = CODEC_ID_MP3;
52+ *codec = AV_CODEC_ID_MP3;
5353 break;
5454 case IEC61937_MPEG2_EXT:
5555 *offset = 4608;
56− *codec = CODEC_ID_MP3;
56+ *codec = AV_CODEC_ID_MP3;
5757 break;
5858 case IEC61937_MPEG2_AAC:
5959 init_get_bits(&gbc, buf, AAC_ADTS_HEADER_SIZE * 8);
@@ -63,31 +63,31 @@ static int spdif_get_offset_and_codec(AVFormatContext *s, · 3 unmodified lines
6363 return AVERROR_INVALIDDATA;
6464 }
6565 *offset = aac_hdr.samples << 2;
66− *codec = CODEC_ID_AAC;
66+ *codec = AV_CODEC_ID_AAC;
6767 break;
6868 case IEC61937_MPEG2_LAYER1_LSF:
6969 *offset = spdif_mpeg_pkt_offset[0][0];
70− *codec = CODEC_ID_MP1;
70+ *codec = AV_CODEC_ID_MP1;
7171 break;
7272 case IEC61937_MPEG2_LAYER2_LSF:
7373 *offset = spdif_mpeg_pkt_offset[0][1];
74− *codec = CODEC_ID_MP2;
74+ *codec = AV_CODEC_ID_MP2;
7575 break;
7676 case IEC61937_MPEG2_LAYER3_LSF:
7777 *offset = spdif_mpeg_pkt_offset[0][2];
78− *codec = CODEC_ID_MP3;
78+ *codec = AV_CODEC_ID_MP3;
7979 break;
8080 case IEC61937_DTS1:
8181 *offset = 2048;
82− *codec = CODEC_ID_DTS;
82+ *codec = AV_CODEC_ID_DTS;
8383 break;
8484 case IEC61937_DTS2:
8585 *offset = 4096;
86− *codec = CODEC_ID_DTS;
86+ *codec = AV_CODEC_ID_DTS;
8787 break;
8888 case IEC61937_DTS3:
8989 *offset = 8192;
90− *codec = CODEC_ID_DTS;
90+ *codec = AV_CODEC_ID_DTS;
9191 break;
9292 default:
9393 if (s) { /* be silent during a probe */
@@ -112,7 +112,7 @@ static int spdif_probe(AVProbeData *p) · 18 unmodified lines
112112 int sync_codes = 0;
113113 int consecutive_codes = 0;
114114 int offset;
115− enum CodecID codec;
115+ enum AVCodecID codec;
116116
117117 for (; buf < probe_end; buf++) {
118118 state = (state << 8) | *buf;
@@ -165,7 +165,7 @@ static int spdif_read_packet(AVFormatContext *s, AVPacket *pkt) · 46 unmodified lines
165165 {
166166 AVIOContext *pb = s->pb;
167167 enum IEC61937DataType data_type;
168− enum CodecID codec_id;
168+ enum AVCodecID codec_id;
169169 uint32_t state = 0;
170170 int pkt_size_bits, offset, ret;
171171
libavformat/spdifenc.c+10−10
@@ -442,24 +442,24 @@ static int spdif_write_header(AVFormatContext *s) · 441 unmodified lines
442442 IEC61937Context *ctx = s->priv_data;
443443
444444 switch (s->streams[0]->codec->codec_id) {
445− case CODEC_ID_AC3:
445+ case AV_CODEC_ID_AC3:
446446 ctx->header_info = spdif_header_ac3;
447447 break;
448− case CODEC_ID_EAC3:
448+ case AV_CODEC_ID_EAC3:
449449 ctx->header_info = spdif_header_eac3;
450450 break;
451− case CODEC_ID_MP1:
452− case CODEC_ID_MP2:
453− case CODEC_ID_MP3:
451+ case AV_CODEC_ID_MP1:
452+ case AV_CODEC_ID_MP2:
453+ case AV_CODEC_ID_MP3:
454454 ctx->header_info = spdif_header_mpeg;
455455 break;
456− case CODEC_ID_DTS:
456+ case AV_CODEC_ID_DTS:
457457 ctx->header_info = spdif_header_dts;
458458 break;
459− case CODEC_ID_AAC:
459+ case AV_CODEC_ID_AAC:
460460 ctx->header_info = spdif_header_aac;
461461 break;
462− case CODEC_ID_TRUEHD:
462+ case AV_CODEC_ID_TRUEHD:
463463 ctx->header_info = spdif_header_truehd;
464464 ctx->hd_buf = av_malloc(MAT_FRAME_SIZE);
465465 if (!ctx->hd_buf)
@@ -547,8 +547,8 @@ AVOutputFormat ff_spdif_muxer = { · 81 unmodified lines
547547 .long_name = NULL_IF_CONFIG_SMALL("IEC 61937 (used on S/PDIF - IEC958)"),
548548 .extensions = "spdif",
549549 .priv_data_size = sizeof(IEC61937Context),
550− .audio_codec = CODEC_ID_AC3,
551− .video_codec = CODEC_ID_NONE,
550+ .audio_codec = AV_CODEC_ID_AC3,
551+ .video_codec = AV_CODEC_ID_NONE,
552552 .write_header = spdif_write_header,
553553 .write_packet = spdif_write_packet,
554554 .write_trailer = spdif_write_trailer,
libavformat/srtdec.c+1−1
@@ -47,7 +47,7 @@ static int srt_read_header(AVFormatContext *s) · 46 unmodified lines
4747 return -1;
4848 avpriv_set_pts_info(st, 64, 1, 1000);
4949 st->codec->codec_type = AVMEDIA_TYPE_SUBTITLE;
50− st->codec->codec_id = CODEC_ID_SRT;
50+ st->codec->codec_id = AV_CODEC_ID_SRT;
5151 return 0;
5252 }
5353
libavformat/swf.h+9−9
@@ -79,18 +79,18 @@ typedef struct { · 78 unmodified lines
7979 } SWFContext;
8080
8181 static const AVCodecTag swf_codec_tags[] = {
82− {CODEC_ID_FLV1, 0x02},
83− {CODEC_ID_VP6F, 0x04},
84− {CODEC_ID_NONE, 0},
82+ { AV_CODEC_ID_FLV1, 0x02},
83+ { AV_CODEC_ID_VP6F, 0x04},
84+ { AV_CODEC_ID_NONE, 0},
8585 };
8686
8787 static const AVCodecTag swf_audio_codec_tags[] = {
88− {CODEC_ID_PCM_S16LE, 0x00},
89− {CODEC_ID_ADPCM_SWF, 0x01},
90− {CODEC_ID_MP3, 0x02},
91− {CODEC_ID_PCM_S16LE, 0x03},
92− //{CODEC_ID_NELLYMOSER, 0x06},
93− {CODEC_ID_NONE, 0},
88+ { AV_CODEC_ID_PCM_S16LE, 0x00},
89+ { AV_CODEC_ID_ADPCM_SWF, 0x01},
90+ { AV_CODEC_ID_MP3, 0x02},
91+ { AV_CODEC_ID_PCM_S16LE, 0x03},
92+ //{ AV_CODEC_ID_NELLYMOSER, 0x06},
93+ { AV_CODEC_ID_NONE, 0},
9494 };
9595
9696 #endif /* AVFORMAT_SWF_H */
libavformat/swfdec.c+3−3
@@ -158,7 +158,7 @@ static int swf_read_packet(AVFormatContext *s, AVPacket *pkt) · 157 unmodified lines
158158 for (i = 0; i < s->nb_streams; i++) {
159159 st = s->streams[i];
160160 if (st->codec->codec_type == AVMEDIA_TYPE_AUDIO && st->id == -1) {
161− if (st->codec->codec_id == CODEC_ID_MP3) {
161+ if (st->codec->codec_id == AV_CODEC_ID_MP3) {
162162 avio_skip(pb, 4);
163163 if ((res = av_get_packet(pb, pkt, len-4)) < 0)
164164 return res;
@@ -174,7 +174,7 @@ static int swf_read_packet(AVFormatContext *s, AVPacket *pkt) · 9 unmodified lines
174174 } else if (tag == TAG_JPEG2) {
175175 for (i=0; i<s->nb_streams; i++) {
176176 st = s->streams[i];
177− if (st->codec->codec_id == CODEC_ID_MJPEG && st->id == -2)
177+ if (st->codec->codec_id == AV_CODEC_ID_MJPEG && st->id == -2)
178178 break;
179179 }
180180 if (i == s->nb_streams) {
@@ -183,7 +183,7 @@ static int swf_read_packet(AVFormatContext *s, AVPacket *pkt) · 2 unmodified lines
183183 return -1;
184184 vst->id = -2; /* -2 to avoid clash with video stream and audio stream */
185185 vst->codec->codec_type = AVMEDIA_TYPE_VIDEO;
186− vst->codec->codec_id = CODEC_ID_MJPEG;
186+ vst->codec->codec_id = AV_CODEC_ID_MJPEG;
187187 avpriv_set_pts_info(vst, 64, 256, swf->frame_rate);
188188 st = vst;
189189 }
libavformat/swfenc.c+15−15
@@ -186,7 +186,7 @@ static int swf_write_header(AVFormatContext *s) · 185 unmodified lines
186186 for(i=0;i<s->nb_streams;i++) {
187187 AVCodecContext *enc = s->streams[i]->codec;
188188 if (enc->codec_type == AVMEDIA_TYPE_AUDIO) {
189− if (enc->codec_id == CODEC_ID_MP3) {
189+ if (enc->codec_id == AV_CODEC_ID_MP3) {
190190 swf->audio_enc = enc;
191191 swf->audio_fifo= av_fifo_alloc(AUDIO_FIFO_SIZE);
192192 if (!swf->audio_fifo)
@@ -196,9 +196,9 @@ static int swf_write_header(AVFormatContext *s) · 3 unmodified lines
196196 return -1;
197197 }
198198 } else {
199− if (enc->codec_id == CODEC_ID_VP6F ||
200− enc->codec_id == CODEC_ID_FLV1 ||
201− enc->codec_id == CODEC_ID_MJPEG) {
199+ if (enc->codec_id == AV_CODEC_ID_VP6F ||
200+ enc->codec_id == AV_CODEC_ID_FLV1 ||
201+ enc->codec_id == AV_CODEC_ID_MJPEG) {
202202 swf->video_enc = enc;
203203 } else {
204204 av_log(s, AV_LOG_ERROR, "SWF muxer only supports VP6, FLV1 and MJPEG\n");
@@ -229,9 +229,9 @@ static int swf_write_header(AVFormatContext *s) · 24 unmodified lines
229229
230230 if (!strcmp("avm2", s->oformat->name))
231231 version = 9;
232− else if (swf->video_enc && swf->video_enc->codec_id == CODEC_ID_VP6F)
232+ else if (swf->video_enc && swf->video_enc->codec_id == AV_CODEC_ID_VP6F)
233233 version = 8; /* version 8 and above support VP6 codec */
234− else if (swf->video_enc && swf->video_enc->codec_id == CODEC_ID_FLV1)
234+ else if (swf->video_enc && swf->video_enc->codec_id == AV_CODEC_ID_FLV1)
235235 version = 6; /* version 6 and above support FLV1 codec */
236236 else
237237 version = 4; /* version 4 for mpeg audio support */
@@ -253,7 +253,7 @@ static int swf_write_header(AVFormatContext *s) · 15 unmodified lines
253253 }
254254
255255 /* define a shape with the jpeg inside */
256− if (swf->video_enc && swf->video_enc->codec_id == CODEC_ID_MJPEG) {
256+ if (swf->video_enc && swf->video_enc->codec_id == AV_CODEC_ID_MJPEG) {
257257 put_swf_tag(s, TAG_DEFINESHAPE);
258258
259259 avio_wl16(pb, SHAPE_ID); /* ID of shape */
@@ -296,7 +296,7 @@ static int swf_write_header(AVFormatContext *s) · 36 unmodified lines
296296 put_swf_end_tag(s);
297297 }
298298
299− if (swf->audio_enc && swf->audio_enc->codec_id == CODEC_ID_MP3) {
299+ if (swf->audio_enc && swf->audio_enc->codec_id == AV_CODEC_ID_MP3) {
300300 int v = 0;
301301
302302 /* start sound */
@@ -336,8 +336,8 @@ static int swf_write_video(AVFormatContext *s, · 33 unmodified lines
336336 if (swf->swf_frame_number == 16000)
337337 av_log(enc, AV_LOG_INFO, "warning: Flash Player limit of 16000 frames reached\n");
338338
339− if (enc->codec_id == CODEC_ID_VP6F ||
340− enc->codec_id == CODEC_ID_FLV1) {
339+ if (enc->codec_id == AV_CODEC_ID_VP6F ||
340+ enc->codec_id == AV_CODEC_ID_FLV1) {
341341 if (swf->video_frame_number == 0) {
342342 /* create a new video object */
343343 put_swf_tag(s, TAG_VIDEOSTREAM);
@@ -375,7 +375,7 @@ static int swf_write_video(AVFormatContext *s, · 31 unmodified lines
375375 avio_wl16(pb, swf->video_frame_number++);
376376 avio_write(pb, buf, size);
377377 put_swf_end_tag(s);
378− } else if (enc->codec_id == CODEC_ID_MJPEG) {
378+ } else if (enc->codec_id == AV_CODEC_ID_MJPEG) {
379379 if (swf->swf_frame_number > 0) {
380380 /* remove the shape */
381381 put_swf_tag(s, TAG_REMOVEOBJECT);
@@ -508,8 +508,8 @@ AVOutputFormat ff_swf_muxer = { · 126 unmodified lines
508508 .mime_type = "application/x-shockwave-flash",
509509 .extensions = "swf",
510510 .priv_data_size = sizeof(SWFContext),
511− .audio_codec = CODEC_ID_MP3,
512− .video_codec = CODEC_ID_FLV1,
511+ .audio_codec = AV_CODEC_ID_MP3,
512+ .video_codec = AV_CODEC_ID_FLV1,
513513 .write_header = swf_write_header,
514514 .write_packet = swf_write_packet,
515515 .write_trailer = swf_write_trailer,
@@ -522,8 +522,8 @@ AVOutputFormat ff_avm2_muxer = { · 6 unmodified lines
522522 .long_name = NULL_IF_CONFIG_SMALL("SWF (ShockWave Flash) (AVM2)"),
523523 .mime_type = "application/x-shockwave-flash",
524524 .priv_data_size = sizeof(SWFContext),
525− .audio_codec = CODEC_ID_MP3,
526− .video_codec = CODEC_ID_FLV1,
525+ .audio_codec = AV_CODEC_ID_MP3,
526+ .video_codec = AV_CODEC_ID_FLV1,
527527 .write_header = swf_write_header,
528528 .write_packet = swf_write_packet,
529529 .write_trailer = swf_write_trailer,
libavformat/thp.c+2−2
@@ -102,7 +102,7 @@ static int thp_read_header(AVFormatContext *s) · 101 unmodified lines
102102 is required. */
103103 avpriv_set_pts_info(st, 64, thp->fps.den, thp->fps.num);
104104 st->codec->codec_type = AVMEDIA_TYPE_VIDEO;
105− st->codec->codec_id = CODEC_ID_THP;
105+ st->codec->codec_id = AV_CODEC_ID_THP;
106106 st->codec->codec_tag = 0; /* no fourcc */
107107 st->codec->width = avio_rb32(pb);
108108 st->codec->height = avio_rb32(pb);
@@ -122,7 +122,7 @@ static int thp_read_header(AVFormatContext *s) · 13 unmodified lines
122122 return AVERROR(ENOMEM);
123123
124124 st->codec->codec_type = AVMEDIA_TYPE_AUDIO;
125− st->codec->codec_id = CODEC_ID_ADPCM_THP;
125+ st->codec->codec_id = AV_CODEC_ID_ADPCM_THP;
126126 st->codec->codec_tag = 0; /* no fourcc */
127127 st->codec->channels = avio_rb32(pb); /* numChannels. */
128128 st->codec->sample_rate = avio_rb32(pb); /* Frequency. */
libavformat/tiertexseq.c+2−2
@@ -214,7 +214,7 @@ static int seq_read_header(AVFormatContext *s) · 213 unmodified lines
214214 avpriv_set_pts_info(st, 32, 1, SEQ_FRAME_RATE);
215215 seq->video_stream_index = st->index;
216216 st->codec->codec_type = AVMEDIA_TYPE_VIDEO;
217− st->codec->codec_id = CODEC_ID_TIERTEXSEQVIDEO;
217+ st->codec->codec_id = AV_CODEC_ID_TIERTEXSEQVIDEO;
218218 st->codec->codec_tag = 0; /* no fourcc */
219219 st->codec->width = SEQ_FRAME_W;
220220 st->codec->height = SEQ_FRAME_H;
@@ -228,7 +228,7 @@ static int seq_read_header(AVFormatContext *s) · 7 unmodified lines
228228 avpriv_set_pts_info(st, 32, 1, SEQ_SAMPLE_RATE);
229229 seq->audio_stream_index = st->index;
230230 st->codec->codec_type = AVMEDIA_TYPE_AUDIO;
231− st->codec->codec_id = CODEC_ID_PCM_S16BE;
231+ st->codec->codec_id = AV_CODEC_ID_PCM_S16BE;
232232 st->codec->codec_tag = 0; /* no tag */
233233 st->codec->channels = 1;
234234 st->codec->sample_rate = SEQ_SAMPLE_RATE;
libavformat/tmv.c+2−2
@@ -111,7 +111,7 @@ static int tmv_read_header(AVFormatContext *s) · 110 unmodified lines
111111 }
112112
113113 ast->codec->codec_type = AVMEDIA_TYPE_AUDIO;
114− ast->codec->codec_id = CODEC_ID_PCM_U8;
114+ ast->codec->codec_id = AV_CODEC_ID_PCM_U8;
115115 ast->codec->channels = features & TMV_STEREO ? 2 : 1;
116116 ast->codec->bits_per_coded_sample = 8;
117117 ast->codec->bit_rate = ast->codec->sample_rate *
@@ -123,7 +123,7 @@ static int tmv_read_header(AVFormatContext *s) · 5 unmodified lines
123123 av_reduce(&fps.num, &fps.den, fps.num, fps.den, 0xFFFFFFFFLL);
124124
125125 vst->codec->codec_type = AVMEDIA_TYPE_VIDEO;
126− vst->codec->codec_id = CODEC_ID_TMV;
126+ vst->codec->codec_id = AV_CODEC_ID_TMV;
127127 vst->codec->pix_fmt = PIX_FMT_PAL8;
128128 vst->codec->width = char_cols * 8;
129129 vst->codec->height = char_rows * 8;
libavformat/tta.c+1−1
@@ -102,7 +102,7 @@ static int tta_read_header(AVFormatContext *s) · 101 unmodified lines
102102 avio_skip(s->pb, 4); // seektable crc
103103
104104 st->codec->codec_type = AVMEDIA_TYPE_AUDIO;
105− st->codec->codec_id = CODEC_ID_TTA;
105+ st->codec->codec_id = AV_CODEC_ID_TTA;
106106 st->codec->channels = channels;
107107 st->codec->sample_rate = samplerate;
108108 st->codec->bits_per_coded_sample = bps;
libavformat/tty.c+1−1
@@ -85,7 +85,7 @@ static int read_header(AVFormatContext *avctx) · 84 unmodified lines
8585 }
8686 st->codec->codec_tag = 0;
8787 st->codec->codec_type = AVMEDIA_TYPE_VIDEO;
88− st->codec->codec_id = CODEC_ID_ANSI;
88+ st->codec->codec_id = AV_CODEC_ID_ANSI;
8989
9090 if (s->video_size && (ret = av_parse_video_size(&width, &height, s->video_size)) < 0) {
9191 av_log (avctx, AV_LOG_ERROR, "Couldn't parse video size.\n");
libavformat/txd.c+1−1
@@ -44,7 +44,7 @@ static int txd_read_header(AVFormatContext *s) { · 43 unmodified lines
4444 if (!st)
4545 return AVERROR(ENOMEM);
4646 st->codec->codec_type = AVMEDIA_TYPE_VIDEO;
47− st->codec->codec_id = CODEC_ID_TXD;
47+ st->codec->codec_id = AV_CODEC_ID_TXD;
4848 st->codec->time_base.den = 5;
4949 st->codec->time_base.num = 1;
5050 /* the parameters will be extracted from the compressed bitstream */
libavformat/utils.c+54−54
@@ -208,7 +208,7 @@ AVOutputFormat *av_guess_format(const char *short_name, const char *filename, · 207 unmodified lines
208208 #if CONFIG_IMAGE2_MUXER
209209 if (!short_name && filename &&
210210 av_filename_number_test(filename) &&
211− ff_guess_image2_codec(filename) != CODEC_ID_NONE) {
211+ ff_guess_image2_codec(filename) != AV_CODEC_ID_NONE) {
212212 return av_guess_format("image2", NULL, NULL);
213213 }
214214 #endif
@@ -233,17 +233,17 @@ AVOutputFormat *av_guess_format(const char *short_name, const char *filename, · 18 unmodified lines
233233 return fmt_found;
234234 }
235235
236−enum CodecID av_guess_codec(AVOutputFormat *fmt, const char *short_name,
236+enum AVCodecID av_guess_codec(AVOutputFormat *fmt, const char *short_name,
237237 const char *filename, const char *mime_type, enum AVMediaType type){
238238 if(type == AVMEDIA_TYPE_VIDEO){
239− enum CodecID codec_id= CODEC_ID_NONE;
239+ enum AVCodecID codec_id= AV_CODEC_ID_NONE;
240240
241241 #if CONFIG_IMAGE2_MUXER
242242 if(!strcmp(fmt->name, "image2") || !strcmp(fmt->name, "image2pipe")){
243243 codec_id= ff_guess_image2_codec(filename);
244244 }
245245 #endif
246− if(codec_id == CODEC_ID_NONE)
246+ if(codec_id == AV_CODEC_ID_NONE)
247247 codec_id= fmt->video_codec;
248248 return codec_id;
249249 }else if(type == AVMEDIA_TYPE_AUDIO)
@@ -251,7 +251,7 @@ enum CodecID av_guess_codec(AVOutputFormat *fmt, const char *short_name, · 1 unmodified line
251251 else if (type == AVMEDIA_TYPE_SUBTITLE)
252252 return fmt->subtitle_codec;
253253 else
254− return CODEC_ID_NONE;
254+ return AV_CODEC_ID_NONE;
255255 }
256256
257257 AVInputFormat *av_find_input_format(const char *short_name)
@@ -367,16 +367,16 @@ AVInputFormat *av_probe_input_format(AVProbeData *pd, int is_opened){ · 109 unmodified lines
367367 static int set_codec_from_probe_data(AVFormatContext *s, AVStream *st, AVProbeData *pd, int score)
368368 {
369369 static const struct {
370− const char *name; enum CodecID id; enum AVMediaType type;
370+ const char *name; enum AVCodecID id; enum AVMediaType type;
371371 } fmt_id_type[] = {
372− { "aac" , CODEC_ID_AAC , AVMEDIA_TYPE_AUDIO },
373− { "ac3" , CODEC_ID_AC3 , AVMEDIA_TYPE_AUDIO },
374− { "dts" , CODEC_ID_DTS , AVMEDIA_TYPE_AUDIO },
375− { "eac3" , CODEC_ID_EAC3 , AVMEDIA_TYPE_AUDIO },
376− { "h264" , CODEC_ID_H264 , AVMEDIA_TYPE_VIDEO },
377− { "m4v" , CODEC_ID_MPEG4 , AVMEDIA_TYPE_VIDEO },
378− { "mp3" , CODEC_ID_MP3 , AVMEDIA_TYPE_AUDIO },
379− { "mpegvideo", CODEC_ID_MPEG2VIDEO, AVMEDIA_TYPE_VIDEO },
372+ { "aac" , AV_CODEC_ID_AAC , AVMEDIA_TYPE_AUDIO },
373+ { "ac3" , AV_CODEC_ID_AC3 , AVMEDIA_TYPE_AUDIO },
374+ { "dts" , AV_CODEC_ID_DTS , AVMEDIA_TYPE_AUDIO },
375+ { "eac3" , AV_CODEC_ID_EAC3 , AVMEDIA_TYPE_AUDIO },
376+ { "h264" , AV_CODEC_ID_H264 , AVMEDIA_TYPE_VIDEO },
377+ { "m4v" , AV_CODEC_ID_MPEG4 , AVMEDIA_TYPE_VIDEO },
378+ { "mp3" , AV_CODEC_ID_MP3 , AVMEDIA_TYPE_AUDIO },
379+ { "mpegvideo", AV_CODEC_ID_MPEG2VIDEO, AVMEDIA_TYPE_VIDEO },
380380 { 0 }
381381 };
382382 AVInputFormat *fmt = av_probe_input_format2(pd, 1, &score);
@@ -613,7 +613,7 @@ fail: · 230 unmodified lines
613613
614614 static void probe_codec(AVFormatContext *s, AVStream *st, const AVPacket *pkt)
615615 {
616− if(st->codec->codec_id == CODEC_ID_PROBE){
616+ if(st->codec->codec_id == AV_CODEC_ID_PROBE){
617617 AVProbeData *pd = &st->probe_data;
618618 av_log(s, AV_LOG_DEBUG, "probing stream %d\n", st->index);
619619 --st->probe_packets;
@@ -630,7 +630,7 @@ static void probe_codec(AVFormatContext *s, AVStream *st, const AVPacket *pkt) · 10 unmodified lines
630630 if (!st->probe_packets ||
631631 av_log2(pd->buf_size) != av_log2(pd->buf_size - pkt->size)) {
632632 set_codec_from_probe_data(s, st, pd, st->probe_packets > 0 ? AVPROBE_SCORE_MAX/4 : 0);
633− if(st->codec->codec_id != CODEC_ID_PROBE){
633+ if(st->codec->codec_id != AV_CODEC_ID_PROBE){
634634 pd->buf_size=0;
635635 av_freep(&pd->buf);
636636 av_log(s, AV_LOG_DEBUG, "probed stream %d\n", st->index);
@@ -650,7 +650,7 @@ int ff_read_packet(AVFormatContext *s, AVPacket *pkt) · 13 unmodified lines
650650 if (pktl) {
651651 *pkt = pktl->pkt;
652652 st = s->streams[pkt->stream_index];
653− if (st->codec->codec_id != CODEC_ID_PROBE || !st->probe_packets ||
653+ if (st->codec->codec_id != AV_CODEC_ID_PROBE || !st->probe_packets ||
654654 s->raw_packet_buffer_remaining_size < pkt->size) {
655655 AVProbeData *pd;
656656 if (st->probe_packets) {
@@ -703,7 +703,7 @@ int ff_read_packet(AVFormatContext *s, AVPacket *pkt) · 46 unmodified lines
703703 break;
704704 }
705705
706− if(!pktl && (st->codec->codec_id != CODEC_ID_PROBE ||
706+ if(!pktl && (st->codec->codec_id != AV_CODEC_ID_PROBE ||
707707 !st->probe_packets))
708708 return ret;
709709
@@ -794,20 +794,20 @@ static int is_intra_only(AVCodecContext *enc){ · 84 unmodified lines
794794 return 1;
795795 }else if(enc->codec_type == AVMEDIA_TYPE_VIDEO){
796796 switch(enc->codec_id){
797− case CODEC_ID_MJPEG:
798− case CODEC_ID_MJPEGB:
799− case CODEC_ID_LJPEG:
800− case CODEC_ID_PRORES:
801− case CODEC_ID_RAWVIDEO:
802− case CODEC_ID_DVVIDEO:
803− case CODEC_ID_HUFFYUV:
804− case CODEC_ID_FFVHUFF:
805− case CODEC_ID_ASV1:
806− case CODEC_ID_ASV2:
807− case CODEC_ID_VCR1:
808− case CODEC_ID_DNXHD:
809− case CODEC_ID_JPEG2000:
810− case CODEC_ID_MDEC:
797+ case AV_CODEC_ID_MJPEG:
798+ case AV_CODEC_ID_MJPEGB:
799+ case AV_CODEC_ID_LJPEG:
800+ case AV_CODEC_ID_PRORES:
801+ case AV_CODEC_ID_RAWVIDEO:
802+ case AV_CODEC_ID_DVVIDEO:
803+ case AV_CODEC_ID_HUFFYUV:
804+ case AV_CODEC_ID_FFVHUFF:
805+ case AV_CODEC_ID_ASV1:
806+ case AV_CODEC_ID_ASV2:
807+ case AV_CODEC_ID_VCR1:
808+ case AV_CODEC_ID_DNXHD:
809+ case AV_CODEC_ID_JPEG2000:
810+ case AV_CODEC_ID_MDEC:
811811 return 1;
812812 default: break;
813813 }
@@ -964,7 +964,7 @@ static void compute_pkt_fields(AVFormatContext *s, AVStream *st, · 150 unmodified lines
964964 // av_log(NULL, AV_LOG_DEBUG, "IN delayed:%d pts:%"PRId64", dts:%"PRId64" cur_dts:%"PRId64" st:%d pc:%p\n", presentation_delayed, pkt->pts, pkt->dts, st->cur_dts, pkt->stream_index, pc);
965965 /* interpolate PTS and DTS if they are not present */
966966 //We skip H264 currently because delay and has_b_frames are not reliably set
967− if((delay==0 || (delay==1 && pc)) && st->codec->codec_id != CODEC_ID_H264){
967+ if((delay==0 || (delay==1 && pc)) && st->codec->codec_id != AV_CODEC_ID_H264){
968968 if (presentation_delayed) {
969969 /* DTS = decompression timestamp */
970970 /* PTS = presentation timestamp */
@@ -1024,7 +1024,7 @@ static void compute_pkt_fields(AVFormatContext *s, AVStream *st, · 53 unmodified lines
10241024 FFSWAP(int64_t, st->pts_buffer[i], st->pts_buffer[i+1]);
10251025 if(pkt->dts == AV_NOPTS_VALUE)
10261026 pkt->dts= st->pts_buffer[0];
1027− if(st->codec->codec_id == CODEC_ID_H264){ // we skipped it above so we try here
1027+ if(st->codec->codec_id == AV_CODEC_ID_H264){ // we skipped it above so we try here
10281028 update_initial_timestamps(s, pkt->stream_index, pkt->dts, pkt->pts); // this should happen on the first packet
10291029 }
10301030 if(pkt->dts > st->cur_dts)
@@ -2079,12 +2079,12 @@ static int has_codec_parameters(AVStream *st) · 1048 unmodified lines
20792079 val = 1;
20802080 break;
20812081 }
2082− return avctx->codec_id != CODEC_ID_NONE && val != 0;
2082+ return avctx->codec_id != AV_CODEC_ID_NONE && val != 0;
20832083 }
20842084
20852085 static int has_decode_delay_been_guessed(AVStream *st)
20862086 {
2087− return st->codec->codec_id != CODEC_ID_H264 ||
2087+ return st->codec->codec_id != AV_CODEC_ID_H264 ||
20882088 st->info->nb_decoded_frames >= 6;
20892089 }
20902090
@@ -2153,9 +2153,9 @@ static int try_decode_frame(AVStream *st, AVPacket *avpkt, AVDictionary **option · 62 unmodified lines
21532153 return ret;
21542154 }
21552155
2156−unsigned int ff_codec_get_tag(const AVCodecTag *tags, enum CodecID id)
2156+unsigned int ff_codec_get_tag(const AVCodecTag *tags, enum AVCodecID id)
21572157 {
2158− while (tags->id != CODEC_ID_NONE) {
2158+ while (tags->id != AV_CODEC_ID_NONE) {
21592159 if (tags->id == id)
21602160 return tags->tag;
21612161 tags++;
@@ -2163,21 +2163,21 @@ unsigned int ff_codec_get_tag(const AVCodecTag *tags, enum CodecID id) · 1 unmodified line
21632163 return 0;
21642164 }
21652165
2166−enum CodecID ff_codec_get_id(const AVCodecTag *tags, unsigned int tag)
2166+enum AVCodecID ff_codec_get_id(const AVCodecTag *tags, unsigned int tag)
21672167 {
21682168 int i;
2169− for(i=0; tags[i].id != CODEC_ID_NONE;i++) {
2169+ for(i=0; tags[i].id != AV_CODEC_ID_NONE;i++) {
21702170 if(tag == tags[i].tag)
21712171 return tags[i].id;
21722172 }
2173− for(i=0; tags[i].id != CODEC_ID_NONE; i++) {
2173+ for(i=0; tags[i].id != AV_CODEC_ID_NONE; i++) {
21742174 if (avpriv_toupper4(tag) == avpriv_toupper4(tags[i].tag))
21752175 return tags[i].id;
21762176 }
2177− return CODEC_ID_NONE;
2177+ return AV_CODEC_ID_NONE;
21782178 }
21792179
2180−unsigned int av_codec_get_tag(const AVCodecTag * const *tags, enum CodecID id)
2180+unsigned int av_codec_get_tag(const AVCodecTag * const *tags, enum AVCodecID id)
21812181 {
21822182 int i;
21832183 for(i=0; tags && tags[i]; i++){
@@ -2187,14 +2187,14 @@ unsigned int av_codec_get_tag(const AVCodecTag * const *tags, enum CodecID id) · 3 unmodified lines
21872187 return 0;
21882188 }
21892189
2190−enum CodecID av_codec_get_id(const AVCodecTag * const *tags, unsigned int tag)
2190+enum AVCodecID av_codec_get_id(const AVCodecTag * const *tags, unsigned int tag)
21912191 {
21922192 int i;
21932193 for(i=0; tags && tags[i]; i++){
2194− enum CodecID id= ff_codec_get_id(tags[i], tag);
2195− if(id!=CODEC_ID_NONE) return id;
2194+ enum AVCodecID id= ff_codec_get_id(tags[i], tag);
2195+ if(id!=AV_CODEC_ID_NONE) return id;
21962196 }
2197− return CODEC_ID_NONE;
2197+ return AV_CODEC_ID_NONE;
21982198 }
21992199
22002200 static void compute_chapters_end(AVFormatContext *s)
@@ -2236,8 +2236,8 @@ static int tb_unreliable(AVCodecContext *c){ · 35 unmodified lines
22362236 || c->time_base.den < 5L*c->time_base.num
22372237 /* || c->codec_tag == AV_RL32("DIVX")
22382238 || c->codec_tag == AV_RL32("XVID")*/
2239− || c->codec_id == CODEC_ID_MPEG2VIDEO
2240− || c->codec_id == CODEC_ID_H264
2239+ || c->codec_id == AV_CODEC_ID_MPEG2VIDEO
2240+ || c->codec_id == AV_CODEC_ID_H264
22412241 )
22422242 return 1;
22432243 return 0;
@@ -2820,7 +2820,7 @@ static int validate_codec_tag(AVFormatContext *s, AVStream *st) · 576 unmodified lines
28202820 {
28212821 const AVCodecTag *avctag;
28222822 int n;
2823− enum CodecID id = CODEC_ID_NONE;
2823+ enum AVCodecID id = AV_CODEC_ID_NONE;
28242824 unsigned int tag = 0;
28252825
28262826 /**
@@ -2831,7 +2831,7 @@ static int validate_codec_tag(AVFormatContext *s, AVStream *st) · 4 unmodified lines
28312831 */
28322832 for (n = 0; s->oformat->codec_tag[n]; n++) {
28332833 avctag = s->oformat->codec_tag[n];
2834− while (avctag->id != CODEC_ID_NONE) {
2834+ while (avctag->id != AV_CODEC_ID_NONE) {
28352835 if (avpriv_toupper4(avctag->tag) == avpriv_toupper4(st->codec->codec_tag)) {
28362836 id = avctag->id;
28372837 if (id == st->codec->codec_id)
@@ -2842,7 +2842,7 @@ static int validate_codec_tag(AVFormatContext *s, AVStream *st) · 4 unmodified lines
28422842 avctag++;
28432843 }
28442844 }
2845− if (id != CODEC_ID_NONE)
2845+ if (id != AV_CODEC_ID_NONE)
28462846 return 0;
28472847 if (tag && (st->codec->strict_std_compliance >= FF_COMPLIANCE_NORMAL))
28482848 return 0;
@@ -2905,7 +2905,7 @@ int avformat_write_header(AVFormatContext *s, AVDictionary **options) · 56 unmodified lines
29052905 }
29062906
29072907 if(s->oformat->codec_tag){
2908− if(st->codec->codec_tag && st->codec->codec_id == CODEC_ID_RAWVIDEO && av_codec_get_tag(s->oformat->codec_tag, st->codec->codec_id) == 0 && !validate_codec_tag(s, st)){
2908+ if(st->codec->codec_tag && st->codec->codec_id == AV_CODEC_ID_RAWVIDEO && av_codec_get_tag(s->oformat->codec_tag, st->codec->codec_id) == 0 && !validate_codec_tag(s, st)){
29092909 //the current rawvideo encoding system ends up setting the wrong codec_tag for avi, we override it here
29102910 st->codec->codec_tag= 0;
29112911 }
@@ -3927,7 +3927,7 @@ int64_t ff_iso8601_to_unix_time(const char *datestr) · 1015 unmodified lines
39273927 #endif
39283928 }
39293929
3930−int avformat_query_codec(AVOutputFormat *ofmt, enum CodecID codec_id, int std_compliance)
3930+int avformat_query_codec(AVOutputFormat *ofmt, enum AVCodecID codec_id, int std_compliance)
39313931 {
39323932 if (ofmt) {
39333933 if (ofmt->query_codec)
libavformat/vc1test.c+1−1
@@ -59,7 +59,7 @@ static int vc1t_read_header(AVFormatContext *s) · 58 unmodified lines
5959 return -1;
6060
6161 st->codec->codec_type = AVMEDIA_TYPE_VIDEO;
62− st->codec->codec_id = CODEC_ID_WMV3;
62+ st->codec->codec_id = AV_CODEC_ID_WMV3;
6363
6464 st->codec->extradata = av_malloc(VC1_EXTRADATA_SIZE);
6565 st->codec->extradata_size = VC1_EXTRADATA_SIZE;
libavformat/vc1testenc.c+3−3
@@ -30,7 +30,7 @@ static int vc1test_write_header(AVFormatContext *s) · 29 unmodified lines
3030 AVCodecContext *avc = s->streams[0]->codec;
3131 AVIOContext *pb = s->pb;
3232
33− if (avc->codec_id != CODEC_ID_WMV3) {
33+ if (avc->codec_id != AV_CODEC_ID_WMV3) {
3434 av_log(s, AV_LOG_ERROR, "Only WMV3 is accepted!\n");
3535 return -1;
3636 }
@@ -88,8 +88,8 @@ AVOutputFormat ff_vc1t_muxer = { · 51 unmodified lines
8888 .mime_type = "",
8989 .extensions = "rcv",
9090 .priv_data_size = sizeof(RCVContext),
91− .audio_codec = CODEC_ID_NONE,
92− .video_codec = CODEC_ID_WMV3,
91+ .audio_codec = AV_CODEC_ID_NONE,
92+ .video_codec = AV_CODEC_ID_WMV3,
9393 .write_header = vc1test_write_header,
9494 .write_packet = vc1test_write_packet,
9595 .write_trailer = vc1test_write_trailer,
libavformat/voc.c+9−9
@@ -25,13 +25,13 @@ · 24 unmodified lines
2525 const unsigned char ff_voc_magic[21] = "Creative Voice File\x1A";
2626
2727 const AVCodecTag ff_voc_codec_tags[] = {
28− {CODEC_ID_PCM_U8, 0x00},
29− {CODEC_ID_ADPCM_SBPRO_4, 0x01},
30− {CODEC_ID_ADPCM_SBPRO_3, 0x02},
31− {CODEC_ID_ADPCM_SBPRO_2, 0x03},
32− {CODEC_ID_PCM_S16LE, 0x04},
33− {CODEC_ID_PCM_ALAW, 0x06},
34− {CODEC_ID_PCM_MULAW, 0x07},
35− {CODEC_ID_ADPCM_CT, 0x0200},
36− {CODEC_ID_NONE, 0},
28+ {AV_CODEC_ID_PCM_U8, 0x00},
29+ {AV_CODEC_ID_ADPCM_SBPRO_4, 0x01},
30+ {AV_CODEC_ID_ADPCM_SBPRO_3, 0x02},
31+ {AV_CODEC_ID_ADPCM_SBPRO_2, 0x03},
32+ {AV_CODEC_ID_PCM_S16LE, 0x04},
33+ {AV_CODEC_ID_PCM_ALAW, 0x06},
34+ {AV_CODEC_ID_PCM_MULAW, 0x07},
35+ {AV_CODEC_ID_ADPCM_CT, 0x0200},
36+ {AV_CODEC_ID_NONE, 0},
3737 };
libavformat/vocdec.c+3−3
@@ -137,12 +137,12 @@ ff_voc_get_packet(AVFormatContext *s, AVPacket *pkt, AVStream *st, int max_size) · 136 unmodified lines
137137
138138 if (tmp_codec >= 0) {
139139 tmp_codec = ff_codec_get_id(ff_voc_codec_tags, tmp_codec);
140− if (dec->codec_id == CODEC_ID_NONE)
140+ if (dec->codec_id == AV_CODEC_ID_NONE)
141141 dec->codec_id = tmp_codec;
142142 else if (dec->codec_id != tmp_codec)
143143 av_log(s, AV_LOG_WARNING, "Ignoring mid-stream change in audio codec\n");
144− if (dec->codec_id == CODEC_ID_NONE) {
145− if (s->audio_codec_id == CODEC_ID_NONE) {
144+ if (dec->codec_id == AV_CODEC_ID_NONE) {
145+ if (s->audio_codec_id == AV_CODEC_ID_NONE) {
146146 av_log(s, AV_LOG_ERROR, "unknown codec tag\n");
147147 return AVERROR(EINVAL);
148148 }
libavformat/vocenc.c+2−2
@@ -95,8 +95,8 @@ AVOutputFormat ff_voc_muxer = { · 94 unmodified lines
9595 .mime_type = "audio/x-voc",
9696 .extensions = "voc",
9797 .priv_data_size = sizeof(VocEncContext),
98− .audio_codec = CODEC_ID_PCM_U8,
99− .video_codec = CODEC_ID_NONE,
98+ .audio_codec = AV_CODEC_ID_PCM_U8,
99+ .video_codec = AV_CODEC_ID_NONE,
100100 .write_header = voc_write_header,
101101 .write_packet = voc_write_packet,
102102 .write_trailer = voc_write_trailer,
libavformat/vqf.c+1−1
@@ -105,7 +105,7 @@ static int vqf_read_header(AVFormatContext *s) · 104 unmodified lines
105105 header_size = avio_rb32(s->pb);
106106
107107 st->codec->codec_type = AVMEDIA_TYPE_AUDIO;
108− st->codec->codec_id = CODEC_ID_TWINVQ;
108+ st->codec->codec_id = AV_CODEC_ID_TWINVQ;
109109 st->start_time = 0;
110110
111111 do {
libavformat/wav.c+6−6
@@ -211,8 +211,8 @@ AVOutputFormat ff_wav_muxer = { · 210 unmodified lines
211211 .mime_type = "audio/x-wav",
212212 .extensions = "wav",
213213 .priv_data_size = sizeof(WAVContext),
214− .audio_codec = CODEC_ID_PCM_S16LE,
215− .video_codec = CODEC_ID_NONE,
214+ .audio_codec = AV_CODEC_ID_PCM_S16LE,
215+ .video_codec = AV_CODEC_ID_NONE,
216216 .write_header = wav_write_header,
217217 .write_packet = wav_write_packet,
218218 .write_trailer = wav_write_trailer,
@@ -574,10 +574,10 @@ static int wav_read_seek(AVFormatContext *s, · 355 unmodified lines
574574
575575 st = s->streams[0];
576576 switch (st->codec->codec_id) {
577− case CODEC_ID_MP2:
578− case CODEC_ID_MP3:
579− case CODEC_ID_AC3:
580− case CODEC_ID_DTS:
577+ case AV_CODEC_ID_MP2:
578+ case AV_CODEC_ID_MP3:
579+ case AV_CODEC_ID_AC3:
580+ case AV_CODEC_ID_DTS:
581581 /* use generic seeking with dynamically generated indexes */
582582 return -1;
583583 default:
libavformat/wc3movie.c+2−2
@@ -169,7 +169,7 @@ static int wc3_read_header(AVFormatContext *s) · 168 unmodified lines
169169 avpriv_set_pts_info(st, 33, 1, WC3_FRAME_FPS);
170170 wc3->video_stream_index = st->index;
171171 st->codec->codec_type = AVMEDIA_TYPE_VIDEO;
172− st->codec->codec_id = CODEC_ID_XAN_WC3;
172+ st->codec->codec_id = AV_CODEC_ID_XAN_WC3;
173173 st->codec->codec_tag = 0; /* no fourcc */
174174 st->codec->width = wc3->width;
175175 st->codec->height = wc3->height;
@@ -180,7 +180,7 @@ static int wc3_read_header(AVFormatContext *s) · 4 unmodified lines
180180 avpriv_set_pts_info(st, 33, 1, WC3_FRAME_FPS);
181181 wc3->audio_stream_index = st->index;
182182 st->codec->codec_type = AVMEDIA_TYPE_AUDIO;
183− st->codec->codec_id = CODEC_ID_PCM_S16LE;
183+ st->codec->codec_id = AV_CODEC_ID_PCM_S16LE;
184184 st->codec->codec_tag = 1;
185185 st->codec->channels = WC3_AUDIO_CHANNELS;
186186 st->codec->bits_per_coded_sample = WC3_AUDIO_BITS;
libavformat/westwood_aud.c+3−3
@@ -106,10 +106,10 @@ static int wsaud_read_header(AVFormatContext *s) · 105 unmodified lines
106106 av_log_ask_for_sample(s, "Stereo WS-SND1 is not supported.\n");
107107 return AVERROR_PATCHWELCOME;
108108 }
109− st->codec->codec_id = CODEC_ID_WESTWOOD_SND1;
109+ st->codec->codec_id = AV_CODEC_ID_WESTWOOD_SND1;
110110 break;
111111 case 99:
112− st->codec->codec_id = CODEC_ID_ADPCM_IMA_WS;
112+ st->codec->codec_id = AV_CODEC_ID_ADPCM_IMA_WS;
113113 st->codec->bits_per_coded_sample = 4;
114114 st->codec->bit_rate = channels * sample_rate * 4;
115115 break;
@@ -144,7 +144,7 @@ static int wsaud_read_packet(AVFormatContext *s, · 28 unmodified lines
144144
145145 chunk_size = AV_RL16(&preamble[0]);
146146
147− if (st->codec->codec_id == CODEC_ID_WESTWOOD_SND1) {
147+ if (st->codec->codec_id == AV_CODEC_ID_WESTWOOD_SND1) {
148148 /* For Westwood SND1 audio we need to add the output size and input
149149 size to the start of the packet to match what is in VQA.
150150 Specifically, this is needed to signal when a packet should be
libavformat/westwood_vqa.c+5−5
@@ -94,7 +94,7 @@ static int wsvqa_read_header(AVFormatContext *s) · 93 unmodified lines
9494 st->start_time = 0;
9595 wsvqa->video_stream_index = st->index;
9696 st->codec->codec_type = AVMEDIA_TYPE_VIDEO;
97− st->codec->codec_id = CODEC_ID_WS_VQA;
97+ st->codec->codec_id = AV_CODEC_ID_WS_VQA;
9898 st->codec->codec_tag = 0; /* no fourcc */
9999
100100 /* skip to the start of the VQA header */
@@ -216,15 +216,15 @@ static int wsvqa_read_packet(AVFormatContext *s, · 115 unmodified lines
216216 switch (chunk_type) {
217217 case SND0_TAG:
218218 if (wsvqa->bps == 16)
219− st->codec->codec_id = CODEC_ID_PCM_S16LE;
219+ st->codec->codec_id = AV_CODEC_ID_PCM_S16LE;
220220 else
221− st->codec->codec_id = CODEC_ID_PCM_U8;
221+ st->codec->codec_id = AV_CODEC_ID_PCM_U8;
222222 break;
223223 case SND1_TAG:
224− st->codec->codec_id = CODEC_ID_WESTWOOD_SND1;
224+ st->codec->codec_id = AV_CODEC_ID_WESTWOOD_SND1;
225225 break;
226226 case SND2_TAG:
227− st->codec->codec_id = CODEC_ID_ADPCM_IMA_WS;
227+ st->codec->codec_id = AV_CODEC_ID_ADPCM_IMA_WS;
228228 st->codec->extradata_size = 2;
229229 st->codec->extradata = av_mallocz(2 + FF_INPUT_BUFFER_PADDING_SIZE);
230230 if (!st->codec->extradata)
libavformat/wtv.c+18−18
@@ -331,18 +331,18 @@ typedef struct { · 330 unmodified lines
331331 } WtvContext;
332332
333333 typedef struct {
334− enum CodecID id;
334+ enum AVCodecID id;
335335 ff_asf_guid guid;
336336 } AVCodecGuid;
337337
338−static enum CodecID ff_codec_guid_get_id(const AVCodecGuid *guids, ff_asf_guid guid)
338+static enum AVCodecID ff_codec_guid_get_id(const AVCodecGuid *guids, ff_asf_guid guid)
339339 {
340340 int i;
341− for (i = 0; guids[i].id != CODEC_ID_NONE; i++) {
341+ for (i = 0; guids[i].id != AV_CODEC_ID_NONE; i++) {
342342 if (!ff_guidcmp(guids[i].guid, guid))
343343 return guids[i].id;
344344 }
345− return CODEC_ID_NONE;
345+ return AV_CODEC_ID_NONE;
346346 }
347347
348348 /* WTV GUIDs */
@@ -421,15 +421,15 @@ static const ff_asf_guid format_none = · 72 unmodified lines
421421 {0xD6,0x17,0x64,0x0F,0x18,0xC3,0xD0,0x11,0xA4,0x3F,0x00,0xA0,0xC9,0x22,0x31,0x96};
422422
423423 static const AVCodecGuid video_guids[] = {
424− {CODEC_ID_MPEG2VIDEO, {0x26,0x80,0x6D,0xE0,0x46,0xDB,0xCF,0x11,0xB4,0xD1,0x00,0x80,0x5F,0x6C,0xBB,0xEA}},
425− {CODEC_ID_NONE}
424+ {AV_CODEC_ID_MPEG2VIDEO, {0x26,0x80,0x6D,0xE0,0x46,0xDB,0xCF,0x11,0xB4,0xD1,0x00,0x80,0x5F,0x6C,0xBB,0xEA}},
425+ {AV_CODEC_ID_NONE}
426426 };
427427
428428 static const AVCodecGuid audio_guids[] = {
429− {CODEC_ID_AC3, {0x2C,0x80,0x6D,0xE0,0x46,0xDB,0xCF,0x11,0xB4,0xD1,0x00,0x80,0x5F,0x6C,0xBB,0xEA}},
430− {CODEC_ID_EAC3, {0xAF,0x87,0xFB,0xA7,0x02,0x2D,0xFB,0x42,0xA4,0xD4,0x05,0xCD,0x93,0x84,0x3B,0xDD}},
431− {CODEC_ID_MP2, {0x2B,0x80,0x6D,0xE0,0x46,0xDB,0xCF,0x11,0xB4,0xD1,0x00,0x80,0x5F,0x6C,0xBB,0xEA}},
432− {CODEC_ID_NONE}
429+ {AV_CODEC_ID_AC3, {0x2C,0x80,0x6D,0xE0,0x46,0xDB,0xCF,0x11,0xB4,0xD1,0x00,0x80,0x5F,0x6C,0xBB,0xEA}},
430+ {AV_CODEC_ID_EAC3, {0xAF,0x87,0xFB,0xA7,0x02,0x2D,0xFB,0x42,0xA4,0xD4,0x05,0xCD,0x93,0x84,0x3B,0xDD}},
431+ {AV_CODEC_ID_MP2, {0x2B,0x80,0x6D,0xE0,0x46,0xDB,0xCF,0x11,0xB4,0xD1,0x00,0x80,0x5F,0x6C,0xBB,0xEA}},
432+ {AV_CODEC_ID_NONE}
433433 };
434434
435435 static int read_probe(AVProbeData *p)
@@ -498,7 +498,7 @@ static void get_attachment(AVFormatContext *s, AVIOContext *pb, int length) · 62 unmodified lines
498498 if (!st)
499499 goto done;
500500 av_dict_set(&st->metadata, "title", description, 0);
501− st->codec->codec_id = CODEC_ID_MJPEG;
501+ st->codec->codec_id = AV_CODEC_ID_MJPEG;
502502 st->codec->codec_type = AVMEDIA_TYPE_ATTACHMENT;
503503 st->codec->extradata = av_mallocz(filesize);
504504 if (!st->codec->extradata)
@@ -609,9 +609,9 @@ static void parse_mpeg1waveformatex(AVStream *st) · 104 unmodified lines
609609 {
610610 /* fwHeadLayer */
611611 switch (AV_RL16(st->codec->extradata)) {
612− case 0x0001 : st->codec->codec_id = CODEC_ID_MP1; break;
613− case 0x0002 : st->codec->codec_id = CODEC_ID_MP2; break;
614− case 0x0004 : st->codec->codec_id = CODEC_ID_MP3; break;
612+ case 0x0001 : st->codec->codec_id = AV_CODEC_ID_MP1; break;
613+ case 0x0002 : st->codec->codec_id = AV_CODEC_ID_MP2; break;
614+ case 0x0004 : st->codec->codec_id = AV_CODEC_ID_MP3; break;
615615 }
616616
617617 st->codec->bit_rate = AV_RL32(st->codec->extradata + 2); /* dwHeadBitrate */
@@ -708,7 +708,7 @@ static AVStream * parse_media_type(AVFormatContext *s, AVStream *st, int sid, · 90 unmodified lines
708708 av_log(s, AV_LOG_WARNING, "MPEG1WAVEFORMATEX underflow\n");
709709 } else {
710710 st->codec->codec_id = ff_codec_guid_get_id(audio_guids, subtype);
711− if (st->codec->codec_id == CODEC_ID_NONE)
711+ if (st->codec->codec_id == AV_CODEC_ID_NONE)
712712 av_log(s, AV_LOG_WARNING, "unknown subtype:"PRI_GUID"\n", ARG_GUID(subtype));
713713 }
714714 return st;
@@ -733,7 +733,7 @@ static AVStream * parse_media_type(AVFormatContext *s, AVStream *st, int sid, · 18 unmodified lines
733733 } else {
734734 st->codec->codec_id = ff_codec_guid_get_id(video_guids, subtype);
735735 }
736− if (st->codec->codec_id == CODEC_ID_NONE)
736+ if (st->codec->codec_id == AV_CODEC_ID_NONE)
737737 av_log(s, AV_LOG_WARNING, "unknown subtype:"PRI_GUID"\n", ARG_GUID(subtype));
738738 return st;
739739 } else if (!ff_guidcmp(mediatype, mediatype_mpeg2_pes) &&
@@ -744,7 +744,7 @@ static AVStream * parse_media_type(AVFormatContext *s, AVStream *st, int sid, · 4 unmodified lines
744744 if (ff_guidcmp(formattype, format_none))
745745 av_log(s, AV_LOG_WARNING, "unknown formattype:"PRI_GUID"\n", ARG_GUID(formattype));
746746 avio_skip(pb, size);
747− st->codec->codec_id = CODEC_ID_DVB_SUBTITLE;
747+ st->codec->codec_id = AV_CODEC_ID_DVB_SUBTITLE;
748748 return st;
749749 } else if (!ff_guidcmp(mediatype, mediatype_mstvcaption) &&
750750 (!ff_guidcmp(subtype, mediasubtype_teletext) || !ff_guidcmp(subtype, mediasubtype_dtvccdata))) {
@@ -754,7 +754,7 @@ static AVStream * parse_media_type(AVFormatContext *s, AVStream *st, int sid, · 3 unmodified lines
754754 if (ff_guidcmp(formattype, format_none))
755755 av_log(s, AV_LOG_WARNING, "unknown formattype:"PRI_GUID"\n", ARG_GUID(formattype));
756756 avio_skip(pb, size);
757− st->codec->codec_id = CODEC_ID_DVB_TELETEXT;
757+ st->codec->codec_id = AV_CODEC_ID_DVB_TELETEXT;
758758 return st;
759759 } else if (!ff_guidcmp(mediatype, mediatype_mpeg2_sections) &&
760760 !ff_guidcmp(subtype, mediasubtype_mpeg2_sections)) {
libavformat/wv.c+1−1
@@ -248,7 +248,7 @@ static int wv_read_header(AVFormatContext *s) · 247 unmodified lines
248248 if (!st)
249249 return AVERROR(ENOMEM);
250250 st->codec->codec_type = AVMEDIA_TYPE_AUDIO;
251− st->codec->codec_id = CODEC_ID_WAVPACK;
251+ st->codec->codec_id = AV_CODEC_ID_WAVPACK;
252252 st->codec->channels = wc->chan;
253253 st->codec->channel_layout = wc->chmask;
254254 st->codec->sample_rate = wc->rate;
libavformat/xa.c+1−1
@@ -74,7 +74,7 @@ static int xa_read_header(AVFormatContext *s) · 73 unmodified lines
7474 return AVERROR(ENOMEM);
7575
7676 st->codec->codec_type = AVMEDIA_TYPE_AUDIO;
77− st->codec->codec_id = CODEC_ID_ADPCM_EA_MAXIS_XA;
77+ st->codec->codec_id = AV_CODEC_ID_ADPCM_EA_MAXIS_XA;
7878 avio_skip(pb, 4); /* Skip the XA ID */
7979 xa->out_size = avio_rl32(pb);
8080 avio_skip(pb, 2); /* Skip the tag */
libavformat/xmv.c+2−2
@@ -53,7 +53,7 @@ typedef struct XMVAudioTrack { · 52 unmodified lines
5353 uint16_t block_align;
5454 uint16_t block_samples;
5555
56− enum CodecID codec_id;
56+ enum AVCodecID codec_id;
5757 } XMVAudioTrack;
5858
5959 typedef struct XMVVideoPacket {
@@ -157,7 +157,7 @@ static int xmv_read_header(AVFormatContext *s) · 97 unmodified lines
157157 avpriv_set_pts_info(vst, 32, 1, 1000);
158158
159159 vst->codec->codec_type = AVMEDIA_TYPE_VIDEO;
160− vst->codec->codec_id = CODEC_ID_WMV2;
160+ vst->codec->codec_id = AV_CODEC_ID_WMV2;
161161 vst->codec->codec_tag = MKBETAG('W', 'M', 'V', '2');
162162 vst->codec->width = avio_rl32(pb);
163163 vst->codec->height = avio_rl32(pb);
libavformat/xwma.c+1−1
@@ -84,7 +84,7 @@ static int xwma_read_header(AVFormatContext *s) · 83 unmodified lines
8484 * extradata for that. Thus, ask the user for feedback, but try to go on
8585 * anyway.
8686 */
87− if (st->codec->codec_id != CODEC_ID_WMAV2) {
87+ if (st->codec->codec_id != AV_CODEC_ID_WMAV2) {
8888 av_log(s, AV_LOG_WARNING, "unexpected codec (tag 0x04%x; id %d)\n",
8989 st->codec->codec_tag, st->codec->codec_id);
9090 av_log_ask_for_sample(s, NULL);
libavformat/yop.c+2−2
@@ -72,14 +72,14 @@ static int yop_read_header(AVFormatContext *s) · 71 unmodified lines
7272 // Audio
7373 audio_dec = audio_stream->codec;
7474 audio_dec->codec_type = AVMEDIA_TYPE_AUDIO;
75− audio_dec->codec_id = CODEC_ID_ADPCM_IMA_APC;
75+ audio_dec->codec_id = AV_CODEC_ID_ADPCM_IMA_APC;
7676 audio_dec->channels = 1;
7777 audio_dec->sample_rate = 22050;
7878
7979 // Video
8080 video_dec = video_stream->codec;
8181 video_dec->codec_type = AVMEDIA_TYPE_VIDEO;
82− video_dec->codec_id = CODEC_ID_YOP;
82+ video_dec->codec_id = AV_CODEC_ID_YOP;
8383
8484 avio_skip(pb, 6);
8585
libavformat/yuv4mpeg.c+3−3
@@ -178,8 +178,8 @@ AVOutputFormat ff_yuv4mpegpipe_muxer = { · 177 unmodified lines
178178 .mime_type = "",
179179 .extensions = "y4m",
180180 .priv_data_size = sizeof(int),
181− .audio_codec = CODEC_ID_NONE,
182− .video_codec = CODEC_ID_RAWVIDEO,
181+ .audio_codec = AV_CODEC_ID_NONE,
182+ .video_codec = AV_CODEC_ID_RAWVIDEO,
183183 .write_header = yuv4_write_header,
184184 .write_packet = yuv4_write_packet,
185185 .flags = AVFMT_RAWPICTURE,
@@ -356,7 +356,7 @@ static int yuv4_read_header(AVFormatContext *s) · 170 unmodified lines
356356 avpriv_set_pts_info(st, 64, rated, raten);
357357 st->codec->pix_fmt = pix_fmt;
358358 st->codec->codec_type = AVMEDIA_TYPE_VIDEO;
359− st->codec->codec_id = CODEC_ID_RAWVIDEO;
359+ st->codec->codec_id = AV_CODEC_ID_RAWVIDEO;
360360 st->sample_aspect_ratio = (AVRational){ aspectn, aspectd };
361361 st->codec->chroma_sample_location = chroma_sample_location;
362362
tools/ismindex.c+5−5
@@ -248,7 +248,7 @@ static int get_video_private_data(struct VideoFile *vf, AVCodecContext *codec) · 247 unmodified lines
248248 uint16_t sps_size, pps_size;
249249 int err = AVERROR(EINVAL);
250250
251− if (codec->codec_id == CODEC_ID_VC1)
251+ if (codec->codec_id == AV_CODEC_ID_VC1)
252252 return get_private_data(vf, codec);
253253
254254 avio_open_dyn_buf(&io);
@@ -332,11 +332,11 @@ static int handle_file(struct VideoFiles *files, const char *file, int split) · 77 unmodified lines
332332 files->nb_audio_files++;
333333 vf->channels = st->codec->channels;
334334 vf->sample_rate = st->codec->sample_rate;
335− if (st->codec->codec_id == CODEC_ID_AAC) {
335+ if (st->codec->codec_id == AV_CODEC_ID_AAC) {
336336 vf->fourcc = "AACL";
337337 vf->tag = 255;
338338 vf->blocksize = 4;
339− } else if (st->codec->codec_id == CODEC_ID_WMAPRO) {
339+ } else if (st->codec->codec_id == AV_CODEC_ID_WMAPRO) {
340340 vf->fourcc = "WMAP";
341341 vf->tag = st->codec->codec_tag;
342342 vf->blocksize = st->codec->block_align;
@@ -349,9 +349,9 @@ static int handle_file(struct VideoFiles *files, const char *file, int split) · 6 unmodified lines
349349 files->nb_video_files++;
350350 vf->width = st->codec->width;
351351 vf->height = st->codec->height;
352− if (st->codec->codec_id == CODEC_ID_H264)
352+ if (st->codec->codec_id == AV_CODEC_ID_H264)
353353 vf->fourcc = "H264";
354− else if (st->codec->codec_id == CODEC_ID_VC1)
354+ else if (st->codec->codec_id == AV_CODEC_ID_VC1)
355355 vf->fourcc = "WVC1";
356356 get_video_private_data(vf, st->codec);
357357 }

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