Showing the changes to libswresample (1 of 2 files). Show all
Unified · Split
| @@ -752,13 +752,14 @@ int swr_convert(struct SwrContext *s, uint8_t *out_arg[SWR_CH_MAX], int out_coun · 751 unmodified lines | ||
| 752 | 752 | } |
| 753 | 753 | |
| 754 | 754 | int swr_drop_output(struct SwrContext *s, int count){ |
| 755 | + const uint8_t *tmp_arg[SWR_CH_MAX]; | |
| 755 | 756 | s->drop_output += count; |
| 756 | 757 | |
| 757 | 758 | if(s->drop_output <= 0) |
| 758 | 759 | return 0; |
| 759 | 760 | |
| 760 | 761 | av_log(s, AV_LOG_VERBOSE, "discarding %d audio samples\n", count); |
| 761 | − return swr_convert(s, NULL, s->drop_output, NULL, 0); | |
| 762 | + return swr_convert(s, NULL, s->drop_output, tmp_arg, 0); | |
| 762 | 763 | } |
| 763 | 764 | |
| 764 | 765 | int swr_inject_silence(struct SwrContext *s, int count){ |