From 05e3a5a2b4f4d675b31a06958ae8d2c95b992857 Mon Sep 17 00:00:00 2001 From: wm4 Date: Sun, 16 Mar 2014 12:58:58 +0100 Subject: ao_lavc: set AVFrame.format Seems kind of wrong that this wasn't done, although it didn't have any bad consequences. --- audio/out/ao_lavc.c | 1 + 1 file changed, 1 insertion(+) (limited to 'audio') diff --git a/audio/out/ao_lavc.c b/audio/out/ao_lavc.c index 273482874d..c3267fc7c2 100644 --- a/audio/out/ao_lavc.c +++ b/audio/out/ao_lavc.c @@ -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); -- cgit v1.2.3