mirror of
https://github.com/mpv-player/mpv
synced 2025-03-25 04:38:01 +00:00
ao_lavc: set AVFrame.format
Seems kind of wrong that this wasn't done, although it didn't have any bad consequences.
This commit is contained in:
parent
62c88a52c4
commit
05e3a5a2b4
@ -233,6 +233,7 @@ static int encode(struct ao *ao, double apts, void **data)
|
||||
packet.size = ac->buffer_size;
|
||||
if(data) {
|
||||
AVFrame *frame = av_frame_alloc();
|
||||
frame->format = af_to_avformat(ao->format);
|
||||
frame->nb_samples = ac->aframesize;
|
||||
|
||||
assert(ao->channels.num <= AV_NUM_DATA_POINTERS);
|
||||
|
Loading…
Reference in New Issue
Block a user