1
0
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:
wm4 2014-03-16 12:58:58 +01:00
parent 62c88a52c4
commit 05e3a5a2b4

View File

@ -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);