diff options
Diffstat (limited to 'audio/audio.c')
-rw-r--r-- | audio/audio.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/audio/audio.c b/audio/audio.c index baf00c08b2..a61e8c458c 100644 --- a/audio/audio.c +++ b/audio/audio.c @@ -118,7 +118,6 @@ void mp_audio_set_null_data(struct mp_audio *mpa) mpa->allocated[n] = NULL; } mpa->samples = 0; - mpa->readonly = false; } static int get_plane_size(const struct mp_audio *mpa, int samples) @@ -261,7 +260,7 @@ void mp_audio_skip_samples(struct mp_audio *data, int samples) // Will return true for non-refcounted frames. bool mp_audio_is_writeable(struct mp_audio *data) { - bool ok = !data->readonly; + bool ok = true; for (int n = 0; n < MP_NUM_CHANNELS; n++) { if (data->allocated[n]) ok &= av_buffer_is_writable(data->allocated[n]); |