This is an automated email from the git hooks/post-receive script.

Git pushed a commit to branch master
in repository ffmpeg.

commit c5591a91ebb8ab107b136b3790cab771cba896c9
Author:     Lynne <[email protected]>
AuthorDate: Wed Jun 10 15:33:32 2026 +0900
Commit:     Lynne <[email protected]>
CommitDate: Thu Jul 2 16:45:04 2026 +0900

    cbs_apv: relax minimum tile-sizes
    
    APV currently specifies a very large minimum tile size. Just relax it
    until the spec is amended.
---
 libavcodec/cbs_apv_syntax_template.c | 14 ++++++++------
 1 file changed, 8 insertions(+), 6 deletions(-)

diff --git a/libavcodec/cbs_apv_syntax_template.c 
b/libavcodec/cbs_apv_syntax_template.c
index cd26a4556c..1a97878bb9 100644
--- a/libavcodec/cbs_apv_syntax_template.c
+++ b/libavcodec/cbs_apv_syntax_template.c
@@ -115,12 +115,14 @@ static int FUNC(tile_info)(CodedBitstreamContext *ctx, 
RWContext *rw,
     CodedBitstreamAPVContext *priv = ctx->priv_data;
     int frame_width_in_mbs   = (fh->frame_info.frame_width  + 15) / 16;
     int frame_height_in_mbs  = (fh->frame_info.frame_height + 15) / 16;
-    uint32_t min_tile_width  = FFMAX(APV_MIN_TILE_WIDTH_IN_MBS,
-                                     (frame_width_in_mbs + APV_MAX_TILE_COLS - 
1) /
-                                     APV_MAX_TILE_COLS);
-    uint32_t min_tile_height = FFMAX(APV_MIN_TILE_HEIGHT_IN_MBS,
-                                     (frame_height_in_mbs + APV_MAX_TILE_ROWS 
- 1) /
-                                     APV_MAX_TILE_ROWS);
+    /* The spec also demands tile_width >= APV_MIN_TILE_WIDTH_IN_MBS (16)
+     * and tile_height >= APV_MIN_TILE_HEIGHT_IN_MBS (8); we deliberately
+     * accept smaller tiles (down to the 20x20 grid cap, which the fixed
+     * arrays rely on) so sub-minimum experimental streams keep working. */
+    uint32_t min_tile_width  = (frame_width_in_mbs + APV_MAX_TILE_COLS - 1) /
+                               APV_MAX_TILE_COLS;
+    uint32_t min_tile_height = (frame_height_in_mbs + APV_MAX_TILE_ROWS - 1) /
+                               APV_MAX_TILE_ROWS;
     int err;
 
     u(20, tile_width_in_mbs,  min_tile_width,  MAX_UINT_BITS(20));

_______________________________________________
ffmpeg-cvslog mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to