Everything related to the QP data is deprecated, with qp_table_buf being an inconsistent exception. Some parts were under the deprecation guards, some not. It probably didn't even compile.
Unified · Split
| @@ -48,11 +48,10 @@ MAKE_ACCESSORS(AVFrame, frame, enum AVColorRange, color_range) · 47 unmodified lines | ||
| 48 | 48 | #if FF_API_FRAME_QP |
| 49 | 49 | int av_frame_set_qp_table(AVFrame *f, AVBufferRef *buf, int stride, int qp_type) |
| 50 | 50 | { |
| 51 | +FF_DISABLE_DEPRECATION_WARNINGS | |
| 51 | 52 | av_buffer_unref(&f->qp_table_buf); |
| 52 | 53 | |
| 53 | 54 | f->qp_table_buf = buf; |
| 54 | − | |
| 55 | −FF_DISABLE_DEPRECATION_WARNINGS | |
| 56 | 55 | f->qscale_table = buf->data; |
| 57 | 56 | f->qstride = stride; |
| 58 | 57 | f->qscale_type = qp_type; |
| @@ -66,12 +65,12 @@ int8_t *av_frame_get_qp_table(AVFrame *f, int *stride, int *type) · 7 unmodified lines | ||
| 66 | 65 | FF_DISABLE_DEPRECATION_WARNINGS |
| 67 | 66 | *stride = f->qstride; |
| 68 | 67 | *type = f->qscale_type; |
| 69 | −FF_ENABLE_DEPRECATION_WARNINGS | |
| 70 | 68 | |
| 71 | 69 | if (!f->qp_table_buf) |
| 72 | 70 | return NULL; |
| 73 | 71 | |
| 74 | 72 | return f->qp_table_buf->data; |
| 73 | +FF_ENABLE_DEPRECATION_WARNINGS | |
| 75 | 74 | } |
| 76 | 75 | #endif |
| 77 | 76 | |
| @@ -520,7 +519,9 @@ void av_frame_unref(AVFrame *frame) · 442 unmodified lines | ||
| 520 | 519 | av_freep(&frame->extended_buf); |
| 521 | 520 | av_dict_free(&frame->metadata); |
| 522 | 521 | #if FF_API_FRAME_QP |
| 522 | +FF_DISABLE_DEPRECATION_WARNINGS | |
| 523 | 523 | av_buffer_unref(&frame->qp_table_buf); |
| 524 | +FF_ENABLE_DEPRECATION_WARNINGS | |
| 524 | 525 | #endif |
| 525 | 526 | |
| 526 | 527 | av_buffer_unref(&frame->hw_frames_ctx); |
| @@ -529,6 +529,7 @@ typedef struct AVFrame { · 528 unmodified lines | ||
| 529 | 529 | attribute_deprecated |
| 530 | 530 | int qscale_type; |
| 531 | 531 | |
| 532 | + attribute_deprecated | |
| 532 | 533 | AVBufferRef *qp_table_buf; |
| 533 | 534 | #endif |
| 534 | 535 | /** |