[FFmpeg-devel] [PATCH] avcodec/dolby_e: set constant frame_size

Nicolas Gaullier nicolas.gaullier at cji.paris
Thu Oct 1 16:22:37 EEST 2020


Fixes pts generation.
---
 libavcodec/dolby_e.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/libavcodec/dolby_e.c b/libavcodec/dolby_e.c
index 429612ec08..b0e6d6aee3 100644
--- a/libavcodec/dolby_e.c
+++ b/libavcodec/dolby_e.c
@@ -577,6 +577,7 @@ static int filter_frame(DBEContext *s, AVFrame *frame)
         reorder = ch_reorder_n;
 
     frame->nb_samples = FRAME_SAMPLES;
+    s->avctx->frame_size = FRAME_SAMPLES;
     if ((ret = ff_get_buffer(s->avctx, frame, 0)) < 0)
         return ret;
 
-- 
2.27.0.windows.1



More information about the ffmpeg-devel mailing list