mirror of
https://github.com/mpv-player/mpv
synced 2025-03-30 15:29:56 +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;
|
packet.size = ac->buffer_size;
|
||||||
if(data) {
|
if(data) {
|
||||||
AVFrame *frame = av_frame_alloc();
|
AVFrame *frame = av_frame_alloc();
|
||||||
|
frame->format = af_to_avformat(ao->format);
|
||||||
frame->nb_samples = ac->aframesize;
|
frame->nb_samples = ac->aframesize;
|
||||||
|
|
||||||
assert(ao->channels.num <= AV_NUM_DATA_POINTERS);
|
assert(ao->channels.num <= AV_NUM_DATA_POINTERS);
|
||||||
|
Loading…
Reference in New Issue
Block a user