| 30 | | This is one of the simplest tests for FFmpeg. Look at the first quoted line. It adds `fate-dts` to a weird variable containing a call to `DEMDEC`. That function returns |
| | 30 | This is one of the simplest tests for FFmpeg. Look at the first quoted line. It adds `fate-dts` to a weird variable containing a call to `DEMDEC`. The `DEMDEC` function returns "yes" if the required `DEM`uxer and `DEC`oder, in this case the `mpegts` demuxer and `dca` decoder, are enabled. Then, if you look at the end of the file: |
| | 31 | |
| | 32 | {{{ |
| | 33 | FATE_SAMPLES_AUDIO += $(FATE_SAMPLES_AUDIO-yes) |
| | 34 | |
| | 35 | FATE_SAMPLES_FFMPEG += $(FATE_SAMPLES_AUDIO) |
| | 36 | }}} |
| | 37 | |
| | 38 | The enabled tests are added into `FATE_SAMPLES_AUDIO` and subsequently `FATE_SAMPLES_FFMPEG` variable, which then of course gets called when doing `make fate`. |
| | 39 | |
| | 40 | Keep in mind that different tests may have different variable prefixes. Not all tests can be categorized into `FATE_SAMPLES_FFMPEG` variable. |
| | 41 | |
| | 42 | If only one component for the test you want to add is required, you can replace `$(call DEMDEC, MPEGTS, DCA)` to `$(CONFIG_*)`. |