History

avfilter/f_reverse: add missing S64(P) sample format support

Paul B Mahol committed 5 years ago

Commit db7bd991 parent ba630781 file · +13 −0Browse files

Showing the changes to libavfilter (1 of 1 file). Show all

Unified · Split

libavfilter/f_reverse.c+13−0
@@ -167,6 +167,12 @@ static void reverse_samples_planar(AVFrame *out) · 166 unmodified lines
167 FFSWAP(int32_t, dst[i], dst[j]);167 FFSWAP(int32_t, dst[i], dst[j]);
168 }168 }
169 break;169 break;
170 case AV_SAMPLE_FMT_S64P: {
171 int64_t *dst = (int64_t *)out->extended_data[p];
172 for (int i = 0, j = out->nb_samples - 1; i < j; i++, j--)
173 FFSWAP(int64_t, dst[i], dst[j]);
174 }
175 break;
170 case AV_SAMPLE_FMT_FLTP: {176 case AV_SAMPLE_FMT_FLTP: {
171 float *dst = (float *)out->extended_data[p];177 float *dst = (float *)out->extended_data[p];
172 for (int i = 0, j = out->nb_samples - 1; i < j; i++, j--)178 for (int i = 0, j = out->nb_samples - 1; i < j; i++, j--)
@@ -209,6 +215,13 @@ static void reverse_samples_packed(AVFrame *out) · 36 unmodified lines
209 FFSWAP(int32_t, dst[i * channels + p], dst[j * channels + p]);215 FFSWAP(int32_t, dst[i * channels + p], dst[j * channels + p]);
210 }216 }
211 break;217 break;
218 case AV_SAMPLE_FMT_S64: {
219 int64_t *dst = (int64_t *)out->extended_data[0];
220 for (int i = 0, j = out->nb_samples - 1; i < j; i++, j--)
221 for (int p = 0; p < channels; p++)
222 FFSWAP(int64_t, dst[i * channels + p], dst[j * channels + p]);
223 }
224 break;
212 case AV_SAMPLE_FMT_FLT: {225 case AV_SAMPLE_FMT_FLT: {
213 float *dst = (float *)out->extended_data[0];226 float *dst = (float *)out->extended_data[0];
214 for (int i = 0, j = out->nb_samples - 1; i < j; i++, j--)227 for (int i = 0, j = out->nb_samples - 1; i < j; i++, j--)

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