[FFmpeg-devel] [PATCH] lavu/rational: add syntactic sugar.

Nicolas George george at nsup.org
Tue Dec 31 17:32:41 CET 2013


And a few patches to make use of it. I only changed the places that are
different from the fork, so as not to make merging harder.

On one example, gcc and clang did produce exactly the same code, but on the
whole project there were subtle changes.

FATE passes, but the following files were not built on my setup, I will try
to give them a try later:

libavcodec/crystalhd.c
libavcodec/libvorbisdec.c
libavcodec/libzvbi-teletextdec.c
libavdevice/dshow.c
libavfilter/af_ladspa.c
libavfilter/asrc_flite.c
libavfilter/vf_frei0r.c

(dshow is probably out of the question for me)

Regards,

-- 
  Nicolas George
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-ffmpeg-use-av_make_q.patch
Type: text/x-diff
Size: 4701 bytes
Desc: not available
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20131231/a48d9099/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0002-ffmpeg_filter-use-av_make_q.patch
Type: text/x-diff
Size: 850 bytes
Desc: not available
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20131231/a48d9099/attachment-0001.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0003-ffplay-use-av_make_q.patch
Type: text/x-diff
Size: 2261 bytes
Desc: not available
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20131231/a48d9099/attachment-0002.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0004-lavc-crystalhd-use-av_make_q.patch
Type: text/x-diff
Size: 3700 bytes
Desc: not available
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20131231/a48d9099/attachment-0003.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0005-lavc-dpx-use-av_make_q.patch
Type: text/x-diff
Size: 813 bytes
Desc: not available
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20131231/a48d9099/attachment-0004.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0006-lavc-flvdec-use-av_make_q.patch
Type: text/x-diff
Size: 837 bytes
Desc: not available
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20131231/a48d9099/attachment-0005.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0007-lavc-libvorbisdec-use-av_make_q.patch
Type: text/x-diff
Size: 995 bytes
Desc: not available
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20131231/a48d9099/attachment-0006.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0008-lavc-libzvbi-teletextdec-use-av_make_q.patch
Type: text/x-diff
Size: 1230 bytes
Desc: not available
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20131231/a48d9099/attachment-0007.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0009-lavc-microdvddec-use-av_make_q.patch
Type: text/x-diff
Size: 1220 bytes
Desc: not available
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20131231/a48d9099/attachment-0008.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0010-lavc-movtextdec-use-av_make_q.patch
Type: text/x-diff
Size: 1118 bytes
Desc: not available
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20131231/a48d9099/attachment-0009.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0011-lavc-mpeg12enc-use-av_make_q.patch
Type: text/x-diff
Size: 825 bytes
Desc: not available
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20131231/a48d9099/attachment-0010.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0012-lavc-mpeg4video_parser-use-av_make_q.patch
Type: text/x-diff
Size: 989 bytes
Desc: not available
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20131231/a48d9099/attachment-0011.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0013-lavc-mpl2dec-use-av_make_q.patch
Type: text/x-diff
Size: 1251 bytes
Desc: not available
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20131231/a48d9099/attachment-0012.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0014-lavc-pngdec-use-av_make_q.patch
Type: text/x-diff
Size: 1054 bytes
Desc: not available
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20131231/a48d9099/attachment-0013.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0015-lavc-rv10-use-av_make_q.patch
Type: text/x-diff
Size: 1330 bytes
Desc: not available
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20131231/a48d9099/attachment-0014.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0016-lavc-rv34-use-av_make_q.patch
Type: text/x-diff
Size: 894 bytes
Desc: not available
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20131231/a48d9099/attachment-0015.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0017-lavc-samidec-use-av_make_q.patch
Type: text/x-diff
Size: 1241 bytes
Desc: not available
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20131231/a48d9099/attachment-0016.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0018-lavc-srtdec-use-av_make_q.patch
Type: text/x-diff
Size: 1217 bytes
Desc: not available
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20131231/a48d9099/attachment-0017.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0019-lavc-textdec-use-av_make_q.patch
Type: text/x-diff
Size: 1248 bytes
Desc: not available
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20131231/a48d9099/attachment-0018.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0020-lavc-utils-use-av_make_q.patch
Type: text/x-diff
Size: 1891 bytes
Desc: not available
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20131231/a48d9099/attachment-0019.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0021-lavc-webvttdec-use-av_make_q.patch
Type: text/x-diff
Size: 1256 bytes
Desc: not available
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20131231/a48d9099/attachment-0020.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0022-lavd-dshow-use-av_make_q.patch
Type: text/x-diff
Size: 1182 bytes
Desc: not available
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20131231/a48d9099/attachment-0021.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0023-lavd-sdl-use-av_make_q.patch
Type: text/x-diff
Size: 1477 bytes
Desc: not available
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20131231/a48d9099/attachment-0022.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0024-lavfi-aeval-use-av_make_q.patch
Type: text/x-diff
Size: 837 bytes
Desc: not available
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20131231/a48d9099/attachment-0023.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0025-lavfi-af_adelay-use-av_make_q.patch
Type: text/x-diff
Size: 1427 bytes
Desc: not available
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20131231/a48d9099/attachment-0024.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0026-lavfi-af_aecho-use-av_make_q.patch
Type: text/x-diff
Size: 1468 bytes
Desc: not available
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20131231/a48d9099/attachment-0025.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0027-lavfi-af_afade-use-av_make_q.patch
Type: text/x-diff
Size: 1069 bytes
Desc: not available
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20131231/a48d9099/attachment-0026.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0028-lavfi-af_amerge-use-av_make_q.patch
Type: text/x-diff
Size: 1005 bytes
Desc: not available
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20131231/a48d9099/attachment-0027.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0029-lavfi-af_apad-use-av_make_q.patch
Type: text/x-diff
Size: 1407 bytes
Desc: not available
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20131231/a48d9099/attachment-0028.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0030-lavfi-af_aresample-use-av_make_q.patch
Type: text/x-diff
Size: 1011 bytes
Desc: not available
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20131231/a48d9099/attachment-0029.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0031-lavfi-af_atempo-use-av_make_q.patch
Type: text/x-diff
Size: 898 bytes
Desc: not available
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20131231/a48d9099/attachment-0030.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0032-lavfi-af_compand-use-av_make_q.patch
Type: text/x-diff
Size: 1532 bytes
Desc: not available
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20131231/a48d9099/attachment-0031.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0033-lavfi-af_ladspa-use-av_make_q.patch
Type: text/x-diff
Size: 844 bytes
Desc: not available
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20131231/a48d9099/attachment-0032.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0034-lavfi-asrc_flite-use-av_make_q.patch
Type: text/x-diff
Size: 910 bytes
Desc: not available
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20131231/a48d9099/attachment-0033.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0035-lavfi-avf_avectorscope-use-av_make_q.patch
Type: text/x-diff
Size: 841 bytes
Desc: not available
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20131231/a48d9099/attachment-0034.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0036-lavfi-avf_concat-use-av_make_q.patch
Type: text/x-diff
Size: 992 bytes
Desc: not available
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20131231/a48d9099/attachment-0035.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0037-lavfi-avf_showspectrum-use-av_make_q.patch
Type: text/x-diff
Size: 1500 bytes
Desc: not available
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20131231/a48d9099/attachment-0036.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0038-lavfi-avf_showwaves-use-av_make_q.patch
Type: text/x-diff
Size: 1840 bytes
Desc: not available
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20131231/a48d9099/attachment-0037.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0039-lavfi-avfilter-use-av_make_q.patch
Type: text/x-diff
Size: 1394 bytes
Desc: not available
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20131231/a48d9099/attachment-0038.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0040-lavfi-f_ebur128-use-av_make_q.patch
Type: text/x-diff
Size: 1461 bytes
Desc: not available
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20131231/a48d9099/attachment-0039.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0041-lavfi-f_interleave-use-av_make_q.patch
Type: text/x-diff
Size: 969 bytes
Desc: not available
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20131231/a48d9099/attachment-0040.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0042-lavfi-vf_crop-use-av_make_q.patch
Type: text/x-diff
Size: 911 bytes
Desc: not available
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20131231/a48d9099/attachment-0041.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0043-lavfi-vf_decimate-use-av_make_q.patch
Type: text/x-diff
Size: 1016 bytes
Desc: not available
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20131231/a48d9099/attachment-0042.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0044-lavfi-vf_framestep-use-av_make_q.patch
Type: text/x-diff
Size: 959 bytes
Desc: not available
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20131231/a48d9099/attachment-0043.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0045-lavfi-vf_frei0r-use-av_make_q.patch
Type: text/x-diff
Size: 850 bytes
Desc: not available
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20131231/a48d9099/attachment-0044.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0046-lavfi-vf_histogram-use-av_make_q.patch
Type: text/x-diff
Size: 753 bytes
Desc: not available
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20131231/a48d9099/attachment-0045.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0047-lavfi-vf_mcdeint-use-av_make_q.patch
Type: text/x-diff
Size: 907 bytes
Desc: not available
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20131231/a48d9099/attachment-0046.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0048-lavfi-vf_scale-use-av_make_q.patch
Type: text/x-diff
Size: 982 bytes
Desc: not available
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20131231/a48d9099/attachment-0047.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0049-lavfi-vf_tile-use-av_make_q.patch
Type: text/x-diff
Size: 998 bytes
Desc: not available
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20131231/a48d9099/attachment-0048.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0050-lavfi-vf_yadif-use-av_make_q.patch
Type: text/x-diff
Size: 954 bytes
Desc: not available
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20131231/a48d9099/attachment-0049.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0051-lavfi-vsrc_cellauto-use-av_make_q.patch
Type: text/x-diff
Size: 960 bytes
Desc: not available
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20131231/a48d9099/attachment-0050.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0052-lavfi-vsrc_life-use-av_make_q.patch
Type: text/x-diff
Size: 878 bytes
Desc: not available
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20131231/a48d9099/attachment-0051.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0053-lavfi-vsrc_mandelbrot-use-av_make_q.patch
Type: text/x-diff
Size: 898 bytes
Desc: not available
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20131231/a48d9099/attachment-0052.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0054-lavf-dfa-use-av_make_q.patch
Type: text/x-diff
Size: 767 bytes
Desc: not available
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20131231/a48d9099/attachment-0053.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0055-lavf-matroskadec-use-av_make_q.patch
Type: text/x-diff
Size: 2332 bytes
Desc: not available
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20131231/a48d9099/attachment-0054.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0056-lavf-matroskaenc-use-av_make_q.patch
Type: text/x-diff
Size: 1719 bytes
Desc: not available
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20131231/a48d9099/attachment-0055.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0057-lavf-microdvddec-use-av_make_q.patch
Type: text/x-diff
Size: 905 bytes
Desc: not available
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20131231/a48d9099/attachment-0056.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0058-lavf-mpeg-use-av_make_q.patch
Type: text/x-diff
Size: 945 bytes
Desc: not available
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20131231/a48d9099/attachment-0057.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0059-lavf-mpsubdec-use-av_make_q.patch
Type: text/x-diff
Size: 1273 bytes
Desc: not available
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20131231/a48d9099/attachment-0058.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0060-lavf-mux-use-av_make_q.patch
Type: text/x-diff
Size: 802 bytes
Desc: not available
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20131231/a48d9099/attachment-0059.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0061-lavf-mvdec-use-av_make_q.patch
Type: text/x-diff
Size: 779 bytes
Desc: not available
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20131231/a48d9099/attachment-0060.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0062-lavf-mxfdec-use-av_make_q.patch
Type: text/x-diff
Size: 2015 bytes
Desc: not available
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20131231/a48d9099/attachment-0061.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0063-lavf-mxfenc-use-av_make_q.patch
Type: text/x-diff
Size: 1655 bytes
Desc: not available
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20131231/a48d9099/attachment-0062.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0064-lavf-nutenc-use-av_make_q.patch
Type: text/x-diff
Size: 948 bytes
Desc: not available
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20131231/a48d9099/attachment-0063.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0065-lavf-rawvideodec-use-av_make_q.patch
Type: text/x-diff
Size: 929 bytes
Desc: not available
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20131231/a48d9099/attachment-0064.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0066-lavf-seek-test-use-av_make_q.patch
Type: text/x-diff
Size: 881 bytes
Desc: not available
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20131231/a48d9099/attachment-0065.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0067-lavf-wtvenc-use-av_make_q.patch
Type: text/x-diff
Size: 924 bytes
Desc: not available
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20131231/a48d9099/attachment-0066.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0068-lavu-opt-use-av_make_q.patch
Type: text/x-diff
Size: 1236 bytes
Desc: not available
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20131231/a48d9099/attachment-0067.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20131231/a48d9099/attachment.asc>


More information about the ffmpeg-devel mailing list