summaryrefslogtreecommitdiffstats
path: root/audio
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2014-03-16 12:58:58 +0100
committerwm4 <wm4@nowhere>2014-03-16 13:19:29 +0100
commit05e3a5a2b4f4d675b31a06958ae8d2c95b992857 (patch)
treeabc3b3e8826eadb3606d90b8587650d674889296 /audio
parent62c88a52c482c9e4df207be8176023a868b29377 (diff)
downloadmpv-05e3a5a2b4f4d675b31a06958ae8d2c95b992857.tar.bz2
mpv-05e3a5a2b4f4d675b31a06958ae8d2c95b992857.tar.xz
ao_lavc: set AVFrame.format
Seems kind of wrong that this wasn't done, although it didn't have any bad consequences.
Diffstat (limited to 'audio')
-rw-r--r--audio/out/ao_lavc.c1
1 files changed, 1 insertions, 0 deletions
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);