diff options
author | wm4 <wm4@nowhere> | 2014-03-16 12:58:58 +0100 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2014-03-16 13:19:29 +0100 |
commit | 05e3a5a2b4f4d675b31a06958ae8d2c95b992857 (patch) | |
tree | abc3b3e8826eadb3606d90b8587650d674889296 /audio/out | |
parent | 62c88a52c482c9e4df207be8176023a868b29377 (diff) | |
download | mpv-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/out')
-rw-r--r-- | audio/out/ao_lavc.c | 1 |
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); |