[FFmpeg-devel] [PATCH 1/2] avformat/framecrc: add AVFMT_NODIMENSIONS flag

Marton Balint cus at passwd.hu
Tue Nov 19 23:47:30 EET 2024


Framecrc does not need frame dimensions to work correctly.

Signed-off-by: Marton Balint <cus at passwd.hu>
---
 libavformat/framecrcenc.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavformat/framecrcenc.c b/libavformat/framecrcenc.c
index ce306a6c49..2ba20f3aab 100644
--- a/libavformat/framecrcenc.c
+++ b/libavformat/framecrcenc.c
@@ -78,5 +78,5 @@ const FFOutputFormat ff_framecrc_muxer = {
     .write_header      = framecrc_write_header,
     .write_packet      = framecrc_write_packet,
     .p.flags           = AVFMT_VARIABLE_FPS | AVFMT_TS_NONSTRICT |
-                         AVFMT_TS_NEGATIVE,
+                         AVFMT_TS_NEGATIVE | AVFMT_NODIMENSIONS,
 };
-- 
2.43.0



More information about the ffmpeg-devel mailing list