libquicktime-ffmpeg3.patch 31 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936
  1. Index: libquicktime-1.2.4/plugins/ffmpeg/video.c
  2. ===================================================================
  3. --- libquicktime-1.2.4.orig/plugins/ffmpeg/video.c
  4. +++ libquicktime-1.2.4/plugins/ffmpeg/video.c
  5. @@ -37,10 +37,10 @@
  6. #endif
  7. -#ifdef PIX_FMT_YUV422P10
  8. -#define PIX_FMT_YUV422P10_OR_DUMMY PIX_FMT_YUV422P10
  9. +#ifdef AV_PIX_FMT_YUV422P10
  10. +#define AV_PIX_FMT_YUV422P10_OR_DUMMY AV_PIX_FMT_YUV422P10
  11. #else
  12. -#define PIX_FMT_YUV422P10_OR_DUMMY -1234
  13. +#define AV_PIX_FMT_YUV422P10_OR_DUMMY -1234
  14. #endif
  15. #if LIBAVCODEC_VERSION_INT >= ((54<<16)|(1<<8)|0)
  16. @@ -90,9 +90,9 @@ typedef struct
  17. int imx_bitrate;
  18. int imx_strip_vbi;
  19. - /* In some cases FFMpeg would report something like PIX_FMT_YUV422P, while
  20. - we would like to treat it as PIX_FMT_YUVJ422P. It's only used for decoding */
  21. - enum PixelFormat reinterpret_pix_fmt;
  22. + /* In some cases FFMpeg would report something like AV_PIX_FMT_YUV422P, while
  23. + we would like to treat it as AV_PIX_FMT_YUVJ422P. It's only used for decoding */
  24. + enum AVPixelFormat reinterpret_pix_fmt;
  25. int is_imx;
  26. int y_offset;
  27. @@ -137,42 +137,42 @@ typedef struct
  28. static const struct
  29. {
  30. - enum PixelFormat ffmpeg_id;
  31. + enum AVPixelFormat ffmpeg_id;
  32. int lqt_id;
  33. int exact;
  34. }
  35. colormodels[] =
  36. {
  37. - { PIX_FMT_YUV420P, BC_YUV420P, 1 }, ///< Planar YUV 4:2:0 (1 Cr & Cb sample per 2x2 Y samples)
  38. + { AV_PIX_FMT_YUV420P, BC_YUV420P, 1 }, ///< Planar YUV 4:2:0 (1 Cr & Cb sample per 2x2 Y samples)
  39. #if LIBAVUTIL_VERSION_INT < (50<<16)
  40. - { PIX_FMT_YUV422, BC_YUV422, 1 },
  41. + { AV_PIX_FMT_YUV422, BC_YUV422, 1 },
  42. #else
  43. - { PIX_FMT_YUYV422, BC_YUV422, 1 },
  44. + { AV_PIX_FMT_YUYV422, BC_YUV422, 1 },
  45. #endif
  46. - { PIX_FMT_RGB24, BC_RGB888, 1 }, ///< Packed pixel, 3 bytes per pixel, RGBRGB...
  47. - { PIX_FMT_BGR24, BC_BGR888, 1 }, ///< Packed pixel, 3 bytes per pixel, BGRBGR...
  48. - { PIX_FMT_YUV422P, BC_YUV422P, 1 }, ///< Planar YUV 4:2:2 (1 Cr & Cb sample per 2x1 Y samples)
  49. - { PIX_FMT_YUV444P, BC_YUV444P, 1 }, ///< Planar YUV 4:4:4 (1 Cr & Cb sample per 1x1 Y samples)
  50. - { PIX_FMT_YUV411P, BC_YUV411P, 1 }, ///< Planar YUV 4:1:1 (1 Cr & Cb sample per 4x1 Y samples)
  51. - { PIX_FMT_YUV422P16, BC_YUV422P16, 1 }, ///< Planar 16 bit YUV 4:2:2 (1 Cr & Cb sample per 2x1 Y samples)
  52. -#ifdef PIX_FMT_YUV422P10
  53. - { PIX_FMT_YUV422P10, BC_YUV422P10, 1 }, ///< 10 bit samples in uint16_t containers, planar 4:2:2
  54. -#endif
  55. - { PIX_FMT_RGB565, BC_RGB565, 1 }, ///< always stored in cpu endianness
  56. - { PIX_FMT_YUVJ420P, BC_YUVJ420P, 1 }, ///< Planar YUV 4:2:0 full scale (jpeg)
  57. - { PIX_FMT_YUVJ422P, BC_YUVJ422P, 1 }, ///< Planar YUV 4:2:2 full scale (jpeg)
  58. - { PIX_FMT_YUVJ444P, BC_YUVJ444P, 1 }, ///< Planar YUV 4:4:4 full scale (jpeg)
  59. + { AV_PIX_FMT_RGB24, BC_RGB888, 1 }, ///< Packed pixel, 3 bytes per pixel, RGBRGB...
  60. + { AV_PIX_FMT_BGR24, BC_BGR888, 1 }, ///< Packed pixel, 3 bytes per pixel, BGRBGR...
  61. + { AV_PIX_FMT_YUV422P, BC_YUV422P, 1 }, ///< Planar YUV 4:2:2 (1 Cr & Cb sample per 2x1 Y samples)
  62. + { AV_PIX_FMT_YUV444P, BC_YUV444P, 1 }, ///< Planar YUV 4:4:4 (1 Cr & Cb sample per 1x1 Y samples)
  63. + { AV_PIX_FMT_YUV411P, BC_YUV411P, 1 }, ///< Planar YUV 4:1:1 (1 Cr & Cb sample per 4x1 Y samples)
  64. + { AV_PIX_FMT_YUV422P16, BC_YUV422P16, 1 }, ///< Planar 16 bit YUV 4:2:2 (1 Cr & Cb sample per 2x1 Y samples)
  65. +#ifdef AV_PIX_FMT_YUV422P10
  66. + { AV_PIX_FMT_YUV422P10, BC_YUV422P10, 1 }, ///< 10 bit samples in uint16_t containers, planar 4:2:2
  67. +#endif
  68. + { AV_PIX_FMT_RGB565, BC_RGB565, 1 }, ///< always stored in cpu endianness
  69. + { AV_PIX_FMT_YUVJ420P, BC_YUVJ420P, 1 }, ///< Planar YUV 4:2:0 full scale (jpeg)
  70. + { AV_PIX_FMT_YUVJ422P, BC_YUVJ422P, 1 }, ///< Planar YUV 4:2:2 full scale (jpeg)
  71. + { AV_PIX_FMT_YUVJ444P, BC_YUVJ444P, 1 }, ///< Planar YUV 4:4:4 full scale (jpeg)
  72. #if LIBAVUTIL_VERSION_INT < (50<<16)
  73. - { PIX_FMT_RGBA32, BC_RGBA8888, 0 }, ///< Packed pixel, 4 bytes per pixel, BGRABGRA...
  74. + { AV_PIX_FMT_RGBA32, BC_RGBA8888, 0 }, ///< Packed pixel, 4 bytes per pixel, BGRABGRA...
  75. #else
  76. - { PIX_FMT_RGB32, BC_RGBA8888, 0 }, ///< Packed pixel, 4 bytes per pixel, BGRABGRA...
  77. + { AV_PIX_FMT_RGB32, BC_RGBA8888, 0 }, ///< Packed pixel, 4 bytes per pixel, BGRABGRA...
  78. #endif
  79. - { PIX_FMT_RGB555, BC_RGB888, 0 }, ///< always stored in cpu endianness, most significant bit to 1
  80. - { PIX_FMT_GRAY8, BC_RGB888, 0 },
  81. - { PIX_FMT_MONOWHITE, BC_RGB888, 0 }, ///< 0 is white
  82. - { PIX_FMT_MONOBLACK, BC_RGB888, 0 }, ///< 0 is black
  83. - { PIX_FMT_PAL8, BC_RGB888, 0 }, ///< 8 bit with RGBA palette
  84. - { PIX_FMT_YUV410P, BC_YUV420P, 0 }, ///< Planar YUV 4:1:0 (1 Cr & Cb sample per 4x4 Y samples)
  85. + { AV_PIX_FMT_RGB555, BC_RGB888, 0 }, ///< always stored in cpu endianness, most significant bit to 1
  86. + { AV_PIX_FMT_GRAY8, BC_RGB888, 0 },
  87. + { AV_PIX_FMT_MONOWHITE, BC_RGB888, 0 }, ///< 0 is white
  88. + { AV_PIX_FMT_MONOBLACK, BC_RGB888, 0 }, ///< 0 is black
  89. + { AV_PIX_FMT_PAL8, BC_RGB888, 0 }, ///< 8 bit with RGBA palette
  90. + { AV_PIX_FMT_YUV410P, BC_YUV420P, 0 }, ///< Planar YUV 4:1:0 (1 Cr & Cb sample per 4x4 Y samples)
  91. };
  92. static const struct
  93. @@ -343,16 +343,16 @@ static int lqt_tenbit_dnxhd_supported(AV
  94. if (!codec->pix_fmts)
  95. return 0;
  96. - for (i = 0; codec->pix_fmts[i] != PIX_FMT_NONE; ++i)
  97. + for (i = 0; codec->pix_fmts[i] != AV_PIX_FMT_NONE; ++i)
  98. {
  99. - if (codec->pix_fmts[i] == PIX_FMT_YUV422P10_OR_DUMMY)
  100. + if (codec->pix_fmts[i] == AV_PIX_FMT_YUV422P10_OR_DUMMY)
  101. return 1;
  102. }
  103. return 0;
  104. }
  105. -static enum PixelFormat lqt_ffmpeg_get_ffmpeg_colormodel(int id)
  106. +static enum AVPixelFormat lqt_ffmpeg_get_ffmpeg_colormodel(int id)
  107. {
  108. int i;
  109. @@ -361,10 +361,10 @@ static enum PixelFormat lqt_ffmpeg_get_f
  110. if(colormodels[i].lqt_id == id)
  111. return colormodels[i].ffmpeg_id;
  112. }
  113. - return PIX_FMT_NB;
  114. + return AV_PIX_FMT_NB;
  115. }
  116. -static int lqt_ffmpeg_get_lqt_colormodel(enum PixelFormat id, int * exact)
  117. +static int lqt_ffmpeg_get_lqt_colormodel(enum AVPixelFormat id, int * exact)
  118. {
  119. int i;
  120. @@ -402,24 +402,24 @@ static void lqt_ffmpeg_setup_decoding_co
  121. /* First we try codec-specific colormodel matching. */
  122. if(codec->decoder->id == AV_CODEC_ID_DNXHD)
  123. {
  124. - /* FFMpeg supports PIX_FMT_YUV422P and PIX_FMT_YUV422P10 for DNxHD, which
  125. - we sometimes interpret as PIX_FMT_YUVJ422P and PIX_FMT_YUVJ422P10. */
  126. - if (codec->avctx->pix_fmt == PIX_FMT_YUV422P || codec->avctx->pix_fmt == PIX_FMT_YUV422P10_OR_DUMMY)
  127. + /* FFMpeg supports AV_PIX_FMT_YUV422P and AV_PIX_FMT_YUV422P10 for DNxHD, which
  128. + we sometimes interpret as AV_PIX_FMT_YUVJ422P and AV_PIX_FMT_YUVJ422P10. */
  129. + if (codec->avctx->pix_fmt == AV_PIX_FMT_YUV422P || codec->avctx->pix_fmt == AV_PIX_FMT_YUV422P10_OR_DUMMY)
  130. {
  131. - int p10 = (codec->avctx->pix_fmt == PIX_FMT_YUV422P10_OR_DUMMY);
  132. + int p10 = (codec->avctx->pix_fmt == AV_PIX_FMT_YUV422P10_OR_DUMMY);
  133. *exact = 1;
  134. if (lqt_ffmpeg_get_avid_yuv_range(vtrack->track) == AVID_FULL_YUV_RANGE)
  135. {
  136. vtrack->stream_cmodel = p10 ? BC_YUVJ422P10 : BC_YUVJ422P;
  137. - codec->reinterpret_pix_fmt = p10 ? PIX_FMT_YUV422P10_OR_DUMMY : PIX_FMT_YUVJ422P;
  138. - // Note: reinterpret_pix_fmt should really be PIX_FMT_YUVJ422P10, except
  139. + codec->reinterpret_pix_fmt = p10 ? AV_PIX_FMT_YUV422P10_OR_DUMMY : AV_PIX_FMT_YUVJ422P;
  140. + // Note: reinterpret_pix_fmt should really be AV_PIX_FMT_YUVJ422P10, except
  141. // there is no such colormodel in FFMpeg. Fortunately, it's not a problem
  142. // in this case, as reinterpret_pix_fmt is only used when *exact == 0.
  143. }
  144. else
  145. {
  146. vtrack->stream_cmodel = p10 ? BC_YUV422P10 : BC_YUV422P;
  147. - codec->reinterpret_pix_fmt = p10 ? PIX_FMT_YUV422P10_OR_DUMMY : PIX_FMT_YUV422P;
  148. + codec->reinterpret_pix_fmt = p10 ? AV_PIX_FMT_YUV422P10_OR_DUMMY : AV_PIX_FMT_YUV422P;
  149. }
  150. return;
  151. }
  152. @@ -440,14 +440,14 @@ static void lqt_ffmpeg_setup_encoding_co
  153. if (codec->encoder->id == AV_CODEC_ID_DNXHD)
  154. {
  155. - /* FFMpeg's DNxHD encoder only supports PIX_FMT_YUV422P and PIX_FMT_YUV422P10
  156. - and doesn't know anything about PIX_FMT_YUVJ422P and PIX_FMT_YUVJ422P10
  157. + /* FFMpeg's DNxHD encoder only supports AV_PIX_FMT_YUV422P and AV_PIX_FMT_YUV422P10
  158. + and doesn't know anything about AV_PIX_FMT_YUVJ422P and AV_PIX_FMT_YUVJ422P10
  159. (in fact, the latter doesn't even exist) */
  160. - codec->avctx->pix_fmt = PIX_FMT_YUV422P;
  161. + codec->avctx->pix_fmt = AV_PIX_FMT_YUV422P;
  162. if (vtrack->stream_cmodel == BC_YUV422P10 || vtrack->stream_cmodel == BC_YUVJ422P10)
  163. {
  164. if (lqt_tenbit_dnxhd_supported(codec->encoder))
  165. - codec->avctx->pix_fmt = PIX_FMT_YUV422P10_OR_DUMMY;
  166. + codec->avctx->pix_fmt = AV_PIX_FMT_YUV422P10_OR_DUMMY;
  167. }
  168. }
  169. }
  170. @@ -458,7 +458,7 @@ static void lqt_ffmpeg_setup_encoding_co
  171. /* From avcodec.h: */
  172. /*
  173. - * PIX_FMT_RGBA32 is handled in an endian-specific manner. A RGBA
  174. + * AV_PIX_FMT_RGBA32 is handled in an endian-specific manner. A RGBA
  175. * color is put together as:
  176. * (A << 24) | (R << 16) | (G << 8) | B
  177. * This is stored as BGRA on little endian CPU architectures and ARGB on
  178. @@ -530,7 +530,7 @@ static void convert_rgba_to_argb(uint8_t
  179. */
  180. static void convert_image_decode(quicktime_ffmpeg_video_codec_t *codec,
  181. - AVFrame * in_frame, enum PixelFormat in_format,
  182. + AVFrame * in_frame, enum AVPixelFormat in_format,
  183. unsigned char ** out_frame, int out_format,
  184. int width, int height, int row_span, int row_span_uv)
  185. {
  186. @@ -547,9 +547,9 @@ static void convert_image_decode(quickti
  187. * RGBA format like in ffmpeg??
  188. */
  189. #if LIBAVUTIL_VERSION_INT < (50<<16)
  190. - if((in_format == PIX_FMT_RGBA32) && (out_format == BC_RGBA8888))
  191. + if((in_format == AV_PIX_FMT_RGBA32) && (out_format == BC_RGBA8888))
  192. #else
  193. - if((in_format == PIX_FMT_RGB32) && (out_format == BC_RGBA8888))
  194. + if((in_format == AV_PIX_FMT_RGB32) && (out_format == BC_RGBA8888))
  195. #endif
  196. {
  197. convert_image_decode_rgba(in_frame, out_frame, width, height, codec->y_offset);
  198. @@ -829,7 +829,7 @@ static int lqt_ffmpeg_decode_video(quick
  199. if(avcodec_open2(codec->avctx, codec->decoder, NULL) != 0)
  200. return -1;
  201. #endif
  202. - codec->frame = avcodec_alloc_frame();
  203. + codec->frame = av_frame_alloc();
  204. vtrack->stream_cmodel = LQT_COLORMODEL_NONE;
  205. codec->initialized = 1;
  206. }
  207. @@ -929,10 +929,10 @@ static int lqt_ffmpeg_decode_video(quick
  208. #ifdef HAVE_LIBSWSCALE
  209. #if LIBAVUTIL_VERSION_INT < (50<<16)
  210. - if(!((codec->avctx->pix_fmt == PIX_FMT_RGBA32) &&
  211. + if(!((codec->avctx->pix_fmt == AV_PIX_FMT_RGBA32) &&
  212. (vtrack->stream_cmodel == BC_RGBA8888)))
  213. #else
  214. - if(!((codec->avctx->pix_fmt == PIX_FMT_RGB32) &&
  215. + if(!((codec->avctx->pix_fmt == AV_PIX_FMT_RGB32) &&
  216. (vtrack->stream_cmodel == BC_RGBA8888)))
  217. #endif
  218. {
  219. @@ -1318,7 +1318,7 @@ static int lqt_ffmpeg_encode_video(quick
  220. if(!codec->initialized)
  221. {
  222. - codec->frame = avcodec_alloc_frame();
  223. + codec->frame = av_frame_alloc();
  224. /* time_base is 1/framerate for constant framerate */
  225. @@ -1396,9 +1396,9 @@ static int lqt_ffmpeg_encode_video(quick
  226. if(vtrack->stream_cmodel == BC_RGBA8888)
  227. {
  228. /* Libquicktime doesn't natively support a color model equivalent
  229. - to PIX_FMT_ARGB, which is required for QTRLE with alpha channel.
  230. + to AV_PIX_FMT_ARGB, which is required for QTRLE with alpha channel.
  231. So, we use BC_RGBA8888 and do ad hoc conversion below. */
  232. - codec->avctx->pix_fmt = PIX_FMT_ARGB;
  233. + codec->avctx->pix_fmt = AV_PIX_FMT_ARGB;
  234. vtrack->track->mdia.minf.stbl.stsd.table[0].depth = 32;
  235. }
  236. }
  237. @@ -1467,7 +1467,7 @@ static int lqt_ffmpeg_encode_video(quick
  238. }
  239. // codec->lqt_colormodel = ffmepg_2_lqt(codec->com.ffcodec_enc);
  240. - if(codec->y_offset != 0 || codec->avctx->pix_fmt == PIX_FMT_ARGB)
  241. + if(codec->y_offset != 0 || codec->avctx->pix_fmt == AV_PIX_FMT_ARGB)
  242. {
  243. if(!codec->tmp_rows)
  244. {
  245. @@ -1492,7 +1492,7 @@ static int lqt_ffmpeg_encode_video(quick
  246. vtrack->stream_cmodel,
  247. 0, 0, 0, codec->y_offset);
  248. }
  249. - else if(codec->avctx->pix_fmt == PIX_FMT_ARGB)
  250. + else if(codec->avctx->pix_fmt == AV_PIX_FMT_ARGB)
  251. {
  252. convert_rgba_to_argb(row_pointers[0], vtrack->stream_row_span,
  253. codec->tmp_rows[0], codec->tmp_row_span,
  254. Index: libquicktime-1.2.4/plugins/ffmpeg/audio.c
  255. ===================================================================
  256. --- libquicktime-1.2.4.orig/plugins/ffmpeg/audio.c
  257. +++ libquicktime-1.2.4/plugins/ffmpeg/audio.c
  258. @@ -1266,7 +1266,7 @@ static int lqt_ffmpeg_encode_audio(quick
  259. pkt.data = codec->chunk_buffer;
  260. pkt.size = codec->chunk_buffer_alloc;
  261. - avcodec_get_frame_defaults(&f);
  262. + av_frame_unref(&f);
  263. f.nb_samples = codec->avctx->frame_size;
  264. avcodec_fill_audio_frame(&f, channels, codec->avctx->sample_fmt,
  265. --- libquicktime-1.2.4/plugins/ffmpeg/lqt_ffmpeg.c.orig 2016-02-17 08:11:50.683023612 +0000
  266. +++ libquicktime-1.2.4/plugins/ffmpeg/lqt_ffmpeg.c 2016-02-17 08:12:20.362898974 +0000
  267. @@ -370,7 +370,7 @@
  268. struct CODECIDMAP codecidmap_v[] =
  269. {
  270. {
  271. - .id = CODEC_ID_MPEG1VIDEO,
  272. + .id = AV_CODEC_ID_MPEG1VIDEO,
  273. .index = -1,
  274. .encoder = NULL,
  275. .decoder = NULL,
  276. @@ -381,7 +381,7 @@
  277. .wav_ids = { LQT_WAV_ID_NONE }
  278. },
  279. {
  280. - .id = CODEC_ID_MPEG4,
  281. + .id = AV_CODEC_ID_MPEG4,
  282. .index = -1,
  283. .encoder = NULL,
  284. .decoder = NULL,
  285. @@ -399,7 +399,7 @@
  286. .compression_id = LQT_COMPRESSION_MPEG4_ASP,
  287. },
  288. {
  289. - .id = CODEC_ID_MSMPEG4V1,
  290. + .id = AV_CODEC_ID_MSMPEG4V1,
  291. .index = -1,
  292. .encoder = NULL,
  293. .decoder = NULL,
  294. @@ -410,7 +410,7 @@
  295. .wav_ids = { LQT_WAV_ID_NONE },
  296. },
  297. {
  298. - .id = CODEC_ID_MSMPEG4V2,
  299. + .id = AV_CODEC_ID_MSMPEG4V2,
  300. .index = -1,
  301. .encoder = NULL,
  302. .decoder = NULL,
  303. @@ -421,7 +421,7 @@
  304. .wav_ids = { LQT_WAV_ID_NONE },
  305. },
  306. {
  307. - .id = CODEC_ID_MSMPEG4V3,
  308. + .id = AV_CODEC_ID_MSMPEG4V3,
  309. .index = -1,
  310. .encoder = NULL,
  311. .decoder = NULL,
  312. @@ -437,7 +437,7 @@
  313. .do_encode = 1,
  314. },
  315. {
  316. - .id = CODEC_ID_MSMPEG4V3,
  317. + .id = AV_CODEC_ID_MSMPEG4V3,
  318. .index = -1,
  319. .encoder = NULL,
  320. .decoder = NULL,
  321. @@ -452,7 +452,7 @@
  322. },
  323. #if 0
  324. {
  325. - .id = CODEC_ID_WMV1,
  326. + .id = AV_CODEC_ID_WMV1,
  327. .index = -1,
  328. .encoder = NULL,
  329. .decoder = NULL,
  330. @@ -465,7 +465,7 @@
  331. },
  332. #endif
  333. {
  334. - .id = CODEC_ID_H263,
  335. + .id = AV_CODEC_ID_H263,
  336. .index = -1,
  337. .encoder = NULL,
  338. .decoder = NULL,
  339. @@ -477,7 +477,7 @@
  340. .compatibility_flags = LQT_FILE_QT_OLD | LQT_FILE_QT | LQT_FILE_MP4 | LQT_FILE_3GP,
  341. },
  342. {
  343. - .id = CODEC_ID_H263,
  344. + .id = AV_CODEC_ID_H263,
  345. .index = -1,
  346. .encoder = NULL,
  347. .decoder = NULL,
  348. @@ -492,7 +492,7 @@
  349. .do_encode = 1,
  350. },
  351. {
  352. - .id = CODEC_ID_H264,
  353. + .id = AV_CODEC_ID_H264,
  354. .index = -1,
  355. .encoder = NULL,
  356. .decoder = NULL,
  357. @@ -503,7 +503,7 @@
  358. .wav_ids = { LQT_WAV_ID_NONE },
  359. },
  360. {
  361. - .id = CODEC_ID_H263P,
  362. + .id = AV_CODEC_ID_H263P,
  363. .index = -1,
  364. .encoder = NULL,
  365. .decoder = NULL,
  366. @@ -517,7 +517,7 @@
  367. .do_encode = 1,
  368. },
  369. {
  370. - .id = CODEC_ID_H263I,
  371. + .id = AV_CODEC_ID_H263I,
  372. .index = -1,
  373. .encoder = NULL,
  374. .decoder = NULL,
  375. @@ -528,7 +528,7 @@
  376. .wav_ids = { LQT_WAV_ID_NONE },
  377. },
  378. {
  379. - .id = CODEC_ID_SVQ1,
  380. + .id = AV_CODEC_ID_SVQ1,
  381. .index = -1,
  382. .encoder = NULL,
  383. .decoder = NULL,
  384. @@ -539,7 +539,7 @@
  385. .wav_ids = { LQT_WAV_ID_NONE },
  386. },
  387. {
  388. - .id = CODEC_ID_SVQ3,
  389. + .id = AV_CODEC_ID_SVQ3,
  390. .index = -1,
  391. .encoder = NULL,
  392. .decoder = NULL,
  393. @@ -550,7 +550,7 @@
  394. .wav_ids = { LQT_WAV_ID_NONE },
  395. },
  396. {
  397. - .id = CODEC_ID_MJPEG,
  398. + .id = AV_CODEC_ID_MJPEG,
  399. .index = -1,
  400. .encoder = NULL,
  401. .decoder = NULL,
  402. @@ -564,7 +564,7 @@
  403. .do_encode = 1,
  404. },
  405. {
  406. - .id = CODEC_ID_MJPEGB,
  407. + .id = AV_CODEC_ID_MJPEGB,
  408. .index = -1,
  409. .encoder = NULL,
  410. .decoder = NULL,
  411. @@ -578,7 +578,7 @@
  412. },
  413. #if LIBAVCODEC_BUILD >= 3346688
  414. {
  415. - .id = CODEC_ID_TARGA,
  416. + .id = AV_CODEC_ID_TARGA,
  417. .index = -1,
  418. .encoder = NULL,
  419. .decoder = NULL,
  420. @@ -590,7 +590,7 @@
  421. #endif
  422. #if LIBAVCODEC_BUILD >= 3347456
  423. {
  424. - .id = CODEC_ID_TIFF,
  425. + .id = AV_CODEC_ID_TIFF,
  426. .index = -1,
  427. .encoder = NULL,
  428. .decoder = NULL,
  429. @@ -601,7 +601,7 @@
  430. },
  431. #endif
  432. {
  433. - .id = CODEC_ID_8BPS,
  434. + .id = AV_CODEC_ID_8BPS,
  435. .index = -1,
  436. .encoder = NULL,
  437. .decoder = NULL,
  438. @@ -611,7 +611,7 @@
  439. .wav_ids = { LQT_WAV_ID_NONE },
  440. },
  441. {
  442. - .id = CODEC_ID_INDEO3,
  443. + .id = AV_CODEC_ID_INDEO3,
  444. .index = -1,
  445. .encoder = NULL,
  446. .decoder = NULL,
  447. @@ -622,7 +622,7 @@
  448. .wav_ids = { LQT_WAV_ID_NONE },
  449. },
  450. {
  451. - .id = CODEC_ID_RPZA,
  452. + .id = AV_CODEC_ID_RPZA,
  453. .index = -1,
  454. .encoder = NULL,
  455. .decoder = NULL,
  456. @@ -632,7 +632,7 @@
  457. .wav_ids = { LQT_WAV_ID_NONE },
  458. },
  459. {
  460. - .id = CODEC_ID_SMC,
  461. + .id = AV_CODEC_ID_SMC,
  462. .index = -1,
  463. .encoder = NULL,
  464. .decoder = NULL,
  465. @@ -642,7 +642,7 @@
  466. .wav_ids = { LQT_WAV_ID_NONE },
  467. },
  468. {
  469. - .id = CODEC_ID_CINEPAK,
  470. + .id = AV_CODEC_ID_CINEPAK,
  471. .index = -1,
  472. .encoder = NULL,
  473. .decoder = NULL,
  474. @@ -653,7 +653,7 @@
  475. .wav_ids = { LQT_WAV_ID_NONE },
  476. },
  477. {
  478. - .id = CODEC_ID_CYUV,
  479. + .id = AV_CODEC_ID_CYUV,
  480. .index = -1,
  481. .encoder = NULL,
  482. .decoder = NULL,
  483. @@ -664,7 +664,7 @@
  484. .wav_ids = { LQT_WAV_ID_NONE },
  485. },
  486. {
  487. - .id = CODEC_ID_QTRLE,
  488. + .id = AV_CODEC_ID_QTRLE,
  489. .index = -1,
  490. .encoder = NULL,
  491. .decoder = NULL,
  492. @@ -677,7 +677,7 @@
  493. .encoding_colormodels = (int[]){ BC_RGB888, BC_RGBA8888, LQT_COLORMODEL_NONE },
  494. },
  495. {
  496. - .id = CODEC_ID_MSRLE,
  497. + .id = AV_CODEC_ID_MSRLE,
  498. .index = -1,
  499. .encoder = NULL,
  500. .decoder = NULL,
  501. @@ -687,7 +687,7 @@
  502. .wav_ids = { LQT_WAV_ID_NONE },
  503. },
  504. {
  505. - .id = CODEC_ID_DVVIDEO,
  506. + .id = AV_CODEC_ID_DVVIDEO,
  507. .index = -1,
  508. .encoder = NULL,
  509. .decoder = NULL,
  510. @@ -703,7 +703,7 @@
  511. .image_sizes = image_sizes_dv,
  512. },
  513. {
  514. - .id = CODEC_ID_DVVIDEO,
  515. + .id = AV_CODEC_ID_DVVIDEO,
  516. .index = -1,
  517. .encoder = NULL,
  518. .decoder = NULL,
  519. @@ -719,7 +719,7 @@
  520. .image_sizes = image_sizes_dv,
  521. },
  522. {
  523. - .id = CODEC_ID_DVVIDEO,
  524. + .id = AV_CODEC_ID_DVVIDEO,
  525. .index = -1,
  526. .encoder = NULL,
  527. .decoder = NULL,
  528. @@ -735,7 +735,7 @@
  529. },
  530. /* DVCPRO HD (decoding only for now) */
  531. {
  532. - .id = CODEC_ID_DVVIDEO,
  533. + .id = AV_CODEC_ID_DVVIDEO,
  534. .index = -1,
  535. .encoder = NULL,
  536. .decoder = NULL,
  537. @@ -756,7 +756,7 @@
  538. // .do_encode = 1
  539. },
  540. {
  541. - .id = CODEC_ID_FFVHUFF,
  542. + .id = AV_CODEC_ID_FFVHUFF,
  543. .index = -1,
  544. .encoder = NULL,
  545. .decoder = NULL,
  546. @@ -769,7 +769,7 @@
  547. .do_encode = 1
  548. },
  549. {
  550. - .id = CODEC_ID_FFV1,
  551. + .id = AV_CODEC_ID_FFV1,
  552. .index = -1,
  553. .encoder = NULL,
  554. .decoder = NULL,
  555. @@ -785,7 +785,7 @@
  556. },
  557. #if LIBAVCODEC_BUILD >= 3352576
  558. {
  559. - .id = CODEC_ID_DNXHD,
  560. + .id = AV_CODEC_ID_DNXHD,
  561. .index = -1,
  562. .encoder = NULL,
  563. .decoder = NULL,
  564. @@ -801,7 +801,7 @@
  565. },
  566. #endif
  567. {
  568. - .id = CODEC_ID_MPEG2VIDEO,
  569. + .id = AV_CODEC_ID_MPEG2VIDEO,
  570. .index = -1,
  571. .encoder = NULL,
  572. .decoder = NULL,
  573. @@ -823,7 +823,7 @@
  574. struct CODECIDMAP codecidmap_a[] =
  575. {
  576. {
  577. - .id = CODEC_ID_MP3,
  578. + .id = AV_CODEC_ID_MP3,
  579. .index = -1,
  580. .encoder = NULL,
  581. .decoder = NULL,
  582. @@ -835,7 +835,7 @@
  583. .wav_ids = { 0x50, 0x55, LQT_WAV_ID_NONE },
  584. },
  585. {
  586. - .id = CODEC_ID_MP2,
  587. + .id = AV_CODEC_ID_MP2,
  588. .index = -1,
  589. .encoder = NULL,
  590. .decoder = NULL,
  591. @@ -850,7 +850,7 @@
  592. .compression_id = LQT_COMPRESSION_MP2,
  593. },
  594. {
  595. - .id = CODEC_ID_AC3,
  596. + .id = AV_CODEC_ID_AC3,
  597. .index = -1,
  598. .encoder = NULL,
  599. .decoder = NULL,
  600. @@ -865,7 +865,7 @@
  601. .compression_id = LQT_COMPRESSION_AC3,
  602. },
  603. {
  604. - .id = CODEC_ID_QDM2,
  605. + .id = AV_CODEC_ID_QDM2,
  606. .index = -1,
  607. .encoder = NULL,
  608. .decoder = NULL,
  609. @@ -880,7 +880,7 @@
  610. #if 1
  611. /* Doesn't work as long as audio chunks are not split into VBR "Samples" */
  612. {
  613. - .id = CODEC_ID_ALAC,
  614. + .id = AV_CODEC_ID_ALAC,
  615. .index = -1,
  616. .encoder = NULL,
  617. .decoder = NULL,
  618. @@ -893,7 +893,7 @@
  619. #if 1
  620. /* Sounds ugly */
  621. {
  622. - .id = CODEC_ID_ADPCM_MS,
  623. + .id = AV_CODEC_ID_ADPCM_MS,
  624. .index = -1,
  625. .encoder = NULL,
  626. .decoder = NULL,
  627. @@ -906,7 +906,7 @@
  628. #if 1
  629. /* Sounds ugly */
  630. {
  631. - .id = CODEC_ID_ADPCM_IMA_WAV,
  632. + .id = AV_CODEC_ID_ADPCM_IMA_WAV,
  633. .index = -1,
  634. .encoder = NULL,
  635. .decoder = NULL,
  636. --- libquicktime-1.2.4/plugins/ffmpeg/video.c.orig 2016-02-17 08:14:18.585735622 +0000
  637. +++ libquicktime-1.2.4/plugins/ffmpeg/video.c 2016-02-17 08:14:35.332331900 +0000
  638. @@ -400,7 +400,7 @@
  639. codec->reinterpret_pix_fmt = codec->avctx->pix_fmt;
  640. /* First we try codec-specific colormodel matching. */
  641. - if(codec->decoder->id == CODEC_ID_DNXHD)
  642. + if(codec->decoder->id == AV_CODEC_ID_DNXHD)
  643. {
  644. /* FFMpeg supports AV_PIX_FMT_YUV422P and AV_PIX_FMT_YUV422P10 for DNxHD, which
  645. we sometimes interpret as AV_PIX_FMT_YUVJ422P and AV_PIX_FMT_YUVJ422P10. */
  646. @@ -438,7 +438,7 @@
  647. quicktime_ffmpeg_video_codec_t *codec = vtrack->codec->priv;
  648. codec->avctx->pix_fmt = lqt_ffmpeg_get_ffmpeg_colormodel(vtrack->stream_cmodel);
  649. - if (codec->encoder->id == CODEC_ID_DNXHD)
  650. + if (codec->encoder->id == AV_CODEC_ID_DNXHD)
  651. {
  652. /* FFMpeg's DNxHD encoder only supports AV_PIX_FMT_YUV422P and AV_PIX_FMT_YUV422P10
  653. and doesn't know anything about AV_PIX_FMT_YUVJ422P and AV_PIX_FMT_YUVJ422P10
  654. @@ -728,13 +728,13 @@
  655. /* Set extradata: It's done differently for each codec */
  656. - if(codec->decoder->id == CODEC_ID_SVQ3)
  657. + if(codec->decoder->id == AV_CODEC_ID_SVQ3)
  658. {
  659. extradata = trak->mdia.minf.stbl.stsd.table[0].table_raw + 4;
  660. extradata_size = trak->mdia.minf.stbl.stsd.table[0].table_raw_size - 4;
  661. }
  662. - else if(codec->decoder->id == CODEC_ID_H264)
  663. + else if(codec->decoder->id == AV_CODEC_ID_H264)
  664. {
  665. user_atom = quicktime_stsd_get_user_atom(trak, "avcC", &user_atom_len);
  666. @@ -753,7 +753,7 @@
  667. }
  668. }
  669. - else if(codec->decoder->id == CODEC_ID_MPEG4)
  670. + else if(codec->decoder->id == AV_CODEC_ID_MPEG4)
  671. {
  672. if(trak->mdia.minf.stbl.stsd.table[0].has_esds)
  673. {
  674. @@ -947,15 +947,15 @@
  675. }
  676. #endif
  677. }
  678. - if(codec->decoder->id == CODEC_ID_DVVIDEO)
  679. + if(codec->decoder->id == AV_CODEC_ID_DVVIDEO)
  680. {
  681. if(vtrack->stream_cmodel == BC_YUV420P)
  682. vtrack->chroma_placement = LQT_CHROMA_PLACEMENT_DVPAL;
  683. vtrack->interlace_mode = LQT_INTERLACE_BOTTOM_FIRST;
  684. vtrack->ci.id = LQT_COMPRESSION_DV;
  685. }
  686. - else if((codec->decoder->id == CODEC_ID_MPEG4) ||
  687. - (codec->decoder->id == CODEC_ID_H264))
  688. + else if((codec->decoder->id == AV_CODEC_ID_MPEG4) ||
  689. + (codec->decoder->id == AV_CODEC_ID_H264))
  690. {
  691. if(vtrack->stream_cmodel == BC_YUV420P)
  692. vtrack->chroma_placement = LQT_CHROMA_PLACEMENT_MPEG2;
  693. @@ -1299,13 +1299,13 @@
  694. {
  695. if(vtrack->stream_cmodel == BC_YUV420P)
  696. {
  697. - if(codec->encoder->id == CODEC_ID_MPEG4)
  698. + if(codec->encoder->id == AV_CODEC_ID_MPEG4)
  699. {
  700. vtrack->chroma_placement = LQT_CHROMA_PLACEMENT_MPEG2;
  701. /* enable interlaced encoding */
  702. vtrack->interlace_mode = LQT_INTERLACE_NONE;
  703. }
  704. - else if(codec->encoder->id == CODEC_ID_DVVIDEO)
  705. + else if(codec->encoder->id == AV_CODEC_ID_DVVIDEO)
  706. {
  707. vtrack->chroma_placement = LQT_CHROMA_PLACEMENT_DVPAL;
  708. }
  709. @@ -1340,7 +1340,7 @@
  710. codec->avctx->sample_aspect_ratio.num = pixel_width;
  711. codec->avctx->sample_aspect_ratio.den = pixel_height;
  712. /* Use global headers for mp4v */
  713. - if(codec->encoder->id == CODEC_ID_MPEG4)
  714. + if(codec->encoder->id == AV_CODEC_ID_MPEG4)
  715. {
  716. if(!(file->file_type & (LQT_FILE_AVI|LQT_FILE_AVI_ODML)))
  717. {
  718. @@ -1364,12 +1364,12 @@
  719. }
  720. #endif
  721. }
  722. - else if((codec->encoder->id == CODEC_ID_MSMPEG4V3) && (trak->strl) &&
  723. + else if((codec->encoder->id == AV_CODEC_ID_MSMPEG4V3) && (trak->strl) &&
  724. !strncmp(trak->strl->strf.bh.biCompression, "DIV3", 4))
  725. {
  726. strncpy(trak->strl->strh.fccHandler, "div3", 4);
  727. }
  728. - else if((codec->encoder->id == CODEC_ID_H263) &&
  729. + else if((codec->encoder->id == AV_CODEC_ID_H263) &&
  730. (file->file_type & (LQT_FILE_MP4|LQT_FILE_3GP)))
  731. {
  732. uint8_t d263_data[] =
  733. @@ -1383,7 +1383,7 @@
  734. strncpy(trak->mdia.minf.stbl.stsd.table[0].format,
  735. "s263", 4);
  736. }
  737. - else if(codec->encoder->id == CODEC_ID_FFVHUFF)
  738. + else if(codec->encoder->id == AV_CODEC_ID_FFVHUFF)
  739. {
  740. if(!(file->file_type & (LQT_FILE_AVI|LQT_FILE_AVI_ODML)))
  741. {
  742. @@ -1391,7 +1391,7 @@
  743. codec->write_global_header = 1;
  744. }
  745. }
  746. - else if(codec->encoder->id == CODEC_ID_QTRLE)
  747. + else if(codec->encoder->id == AV_CODEC_ID_QTRLE)
  748. {
  749. if(vtrack->stream_cmodel == BC_RGBA8888)
  750. {
  751. @@ -1402,11 +1402,11 @@
  752. vtrack->track->mdia.minf.stbl.stsd.table[0].depth = 32;
  753. }
  754. }
  755. - else if(codec->encoder->id == CODEC_ID_DVVIDEO)
  756. + else if(codec->encoder->id == AV_CODEC_ID_DVVIDEO)
  757. {
  758. set_dv_fourcc(width, height, vtrack->stream_cmodel, trak);
  759. }
  760. - else if(codec->encoder->id == CODEC_ID_DNXHD)
  761. + else if(codec->encoder->id == AV_CODEC_ID_DNXHD)
  762. {
  763. if(vtrack->interlace_mode != LQT_INTERLACE_NONE)
  764. {
  765. @@ -1558,12 +1558,12 @@
  766. #endif
  767. - if(!was_initialized && codec->encoder->id == CODEC_ID_DNXHD)
  768. + if(!was_initialized && codec->encoder->id == AV_CODEC_ID_DNXHD)
  769. setup_avid_atoms(file, vtrack, codec->buffer, bytes_encoded);
  770. if(bytes_encoded)
  771. {
  772. - if (pts == AV_NOPTS_VALUE || (codec->encoder->id == CODEC_ID_DNXHD && pts == 0))
  773. + if (pts == AV_NOPTS_VALUE || (codec->encoder->id == AV_CODEC_ID_DNXHD && pts == 0))
  774. {
  775. /* Some codecs don't bother generating presentation timestamps.
  776. FFMpeg's DNxHD encoder doesn't even bother to set it to AV_NOPTS_VALUE. */
  777. @@ -1590,13 +1590,13 @@
  778. if(codec->write_global_header && !codec->global_header_written)
  779. {
  780. - if(codec->encoder->id == CODEC_ID_FFVHUFF)
  781. + if(codec->encoder->id == AV_CODEC_ID_FFVHUFF)
  782. {
  783. quicktime_user_atoms_add_atom(&trak->mdia.minf.stbl.stsd.table[0].user_atoms,
  784. "glbl",
  785. codec->avctx->extradata, codec->avctx->extradata_size );
  786. }
  787. - else if(codec->encoder->id == CODEC_ID_MPEG4)
  788. + else if(codec->encoder->id == AV_CODEC_ID_MPEG4)
  789. {
  790. int advanced = 0;
  791. if(codec->avctx->max_b_frames ||
  792. @@ -1903,18 +1903,18 @@
  793. codec_base->encode_video = lqt_ffmpeg_encode_video;
  794. codec_base->set_pass = set_pass_ffmpeg;
  795. - if(encoder->id == CODEC_ID_MPEG4)
  796. + if(encoder->id == AV_CODEC_ID_MPEG4)
  797. {
  798. codec_base->writes_compressed = writes_compressed_mpeg4;
  799. codec_base->init_compressed = init_compressed_mpeg4;
  800. codec_base->write_packet = write_packet_mpeg4;
  801. }
  802. - else if(encoder->id == CODEC_ID_MPEG2VIDEO)
  803. + else if(encoder->id == AV_CODEC_ID_MPEG2VIDEO)
  804. {
  805. codec_base->writes_compressed = writes_compressed_imx;
  806. codec_base->init_compressed = init_compressed_imx;
  807. }
  808. - else if(encoder->id == CODEC_ID_DVVIDEO)
  809. + else if(encoder->id == AV_CODEC_ID_DVVIDEO)
  810. {
  811. codec_base->init_compressed = init_compressed_dv;
  812. }
  813. @@ -1922,7 +1922,7 @@
  814. }
  815. if(decoder)
  816. {
  817. - if(decoder->id == CODEC_ID_H264)
  818. + if(decoder->id == AV_CODEC_ID_H264)
  819. codec_base->read_packet = read_packet_h264;
  820. codec_base->decode_video = lqt_ffmpeg_decode_video;
  821. }
  822. --- libquicktime-1.2.4/plugins/ffmpeg/audio.c.orig 2016-02-17 08:17:57.421481934 +0000
  823. +++ libquicktime-1.2.4/plugins/ffmpeg/audio.c 2016-02-17 08:18:05.254782305 +0000
  824. @@ -626,7 +626,7 @@
  825. {
  826. /* If the codec is mp3, make sure to decode the very last frame */
  827. - if((codec->avctx->codec_id == CODEC_ID_MP3) &&
  828. + if((codec->avctx->codec_id == AV_CODEC_ID_MP3) &&
  829. (codec->bytes_in_chunk_buffer >= 4))
  830. {
  831. if(!mpa_decode_header(&mph, codec->chunk_buffer, (const mpa_header*)0))
  832. @@ -695,7 +695,7 @@
  833. /* Some really broken mp3 files have the header bytes split across 2 chunks */
  834. - if(codec->avctx->codec_id == CODEC_ID_MP3)
  835. + if(codec->avctx->codec_id == AV_CODEC_ID_MP3)
  836. {
  837. if(codec->bytes_in_chunk_buffer < 4)
  838. {
  839. @@ -806,7 +806,7 @@
  840. if(bytes_decoded < 0)
  841. {
  842. - if(codec->avctx->codec_id == CODEC_ID_MP3)
  843. + if(codec->avctx->codec_id == AV_CODEC_ID_MP3)
  844. {
  845. /* For mp3, bytes_decoded < 0 means, that the frame should be muted */
  846. memset(&codec->sample_buffer[track_map->channels * (codec->sample_buffer_end -
  847. @@ -866,8 +866,8 @@
  848. quicktime_audio_map_t *track_map = &file->atracks[track];
  849. quicktime_ffmpeg_audio_codec_t *codec = track_map->codec->priv;
  850. - if((codec->decoder->id == CODEC_ID_MP2) ||
  851. - (codec->decoder->id == CODEC_ID_MP3))
  852. + if((codec->decoder->id == AV_CODEC_ID_MP2) ||
  853. + (codec->decoder->id == AV_CODEC_ID_MP3))
  854. {
  855. mpa_header h;
  856. uint32_t header;
  857. @@ -909,7 +909,7 @@
  858. else
  859. track_map->ci.bitrate = h.bitrate;
  860. }
  861. - else if(codec->decoder->id == CODEC_ID_AC3)
  862. + else if(codec->decoder->id == AV_CODEC_ID_AC3)
  863. {
  864. a52_header h;
  865. uint8_t * ptr;
  866. @@ -986,7 +986,7 @@
  867. #endif
  868. /* Some codecs need extra stuff */
  869. - if(codec->decoder->id == CODEC_ID_ALAC)
  870. + if(codec->decoder->id == AV_CODEC_ID_ALAC)
  871. {
  872. header = quicktime_wave_get_user_atom(track_map->track, "alac", &header_len);
  873. if(header)
  874. @@ -995,7 +995,7 @@
  875. codec->avctx->extradata_size = header_len;
  876. }
  877. }
  878. - if(codec->decoder->id == CODEC_ID_QDM2)
  879. + if(codec->decoder->id == AV_CODEC_ID_QDM2)
  880. {
  881. header = quicktime_wave_get_user_atom(track_map->track, "QDCA", &header_len);
  882. if(header)
  883. @@ -1495,9 +1495,9 @@
  884. codec_base->decode_audio = lqt_ffmpeg_decode_audio;
  885. codec_base->set_parameter = set_parameter;
  886. - if((decoder->id == CODEC_ID_MP3) || (decoder->id == CODEC_ID_MP2))
  887. + if((decoder->id == AV_CODEC_ID_MP3) || (decoder->id == AV_CODEC_ID_MP2))
  888. codec_base->read_packet = read_packet_mpa;
  889. - else if(decoder->id == CODEC_ID_AC3)
  890. + else if(decoder->id == AV_CODEC_ID_AC3)
  891. {
  892. codec_base->write_packet = write_packet_ac3;
  893. codec_base->read_packet = read_packet_ac3;