This avoid recalculating it and in case w/h changed avoids crashes.
Showing the changes to libavfilter/avfilter.h (1 of 3 files). Show all
Unified · Split
| @@ -132,6 +132,7 @@ typedef struct AVFilterBufferRefVideoProps { · 131 unmodified lines | ||
| 132 | 132 | enum AVPictureType pict_type; ///< picture type of the frame |
| 133 | 133 | int key_frame; ///< 1 -> keyframe, 0-> not |
| 134 | 134 | int qp_table_linesize; ///< qp_table stride |
| 135 | + int qp_table_size; ///< qp_table size | |
| 135 | 136 | int8_t *qp_table; ///< array of Quantization Parameters |
| 136 | 137 | } AVFilterBufferRefVideoProps; |
| 137 | 138 | |