| 1750 | } |
| 1751 | |
| 1752 | GhbValue* ghb_create_copy_mask(GhbValue *settings) |
| 1753 | { |
| 1754 | GhbValue *copy_mask = ghb_array_new(); |
| 1755 | if (ghb_dict_get_bool(settings, "AudioAllowMP2Pass")) |
| 1756 | { |
| 1757 | ghb_array_append(copy_mask, ghb_string_value_new("copy:mp2")); |
| 1758 | } |
| 1759 | if (ghb_dict_get_bool(settings, "AudioAllowMP3Pass")) |
| 1760 | { |
| 1761 | ghb_array_append(copy_mask, ghb_string_value_new("copy:mp3")); |
| 1762 | } |
| 1763 | if (ghb_dict_get_bool(settings, "AudioAllowAACPass")) |
| 1764 | { |
| 1765 | ghb_array_append(copy_mask, ghb_string_value_new("copy:aac")); |
| 1766 | } |
| 1767 | if (ghb_dict_get_bool(settings, "AudioAllowAC3Pass")) |
| 1768 | { |
| 1769 | ghb_array_append(copy_mask, ghb_string_value_new("copy:ac3")); |
| 1770 | } |
| 1771 | if (ghb_dict_get_bool(settings, "AudioAllowDTSPass")) |
| 1772 | { |
| 1773 | ghb_array_append(copy_mask, ghb_string_value_new("copy:dts")); |
| 1774 | } |
| 1775 | if (ghb_dict_get_bool(settings, "AudioAllowDTSHDPass")) |
| 1776 | { |
| 1777 | ghb_array_append(copy_mask, ghb_string_value_new("copy:dtshd")); |
| 1778 | } |
| 1779 | if (ghb_dict_get_bool(settings, "AudioAllowEAC3Pass")) |
| 1780 | { |
| 1781 | ghb_array_append(copy_mask, ghb_string_value_new("copy:eac3")); |
| 1782 | } |
| 1783 | if (ghb_dict_get_bool(settings, "AudioAllowALACPass")) |
| 1784 | { |
| 1785 | ghb_array_append(copy_mask, ghb_string_value_new("copy:alac")); |
| 1786 | } |
| 1787 | if (ghb_dict_get_bool(settings, "AudioAllowFLACPass")) |
| 1788 | { |
| 1789 | ghb_array_append(copy_mask, ghb_string_value_new("copy:flac")); |
| 1790 | } |
| 1791 | if (ghb_dict_get_bool(settings, "AudioAllowTRUEHDPass")) |
| 1792 | { |
| 1793 | ghb_array_append(copy_mask, ghb_string_value_new("copy:truehd")); |
| 1794 | } |
| 1795 | if (ghb_dict_get_bool(settings, "AudioAllowVORBISPass")) |
| 1796 | { |
| 1797 | ghb_array_append(copy_mask, ghb_string_value_new("copy:vorbis")); |
| 1798 | } |
| 1799 | if (ghb_dict_get_bool(settings, "AudioAllowOPUSPass")) |
| 1800 | { |
| 1801 | ghb_array_append(copy_mask, ghb_string_value_new("copy:opus")); |
| 1802 | } |
| 1803 | if (ghb_dict_get_bool(settings, "AudioAllowPCMPass")) |
| 1804 | { |
| 1805 | ghb_array_append(copy_mask, ghb_string_value_new("copy:pcm")); |
| 1806 | } |
| 1807 | return copy_mask; |
| 1808 | } |
| 1809 |
no test coverage detected