diff options
-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); |