* \brief copy frame data from buffer to AVFrame, handling stride. * \param f destination AVFrame * \param src source buffer, does not use any line-stride * \param width width of the video frame * \param height height of the video frame */
| 69 | * \param height height of the video frame |
| 70 | */ |
| 71 | static void copy_frame(AVFrame *f, const uint8_t *src, |
| 72 | int width, int height) { |
| 73 | AVPicture pic; |
| 74 | avpicture_fill(&pic, src, PIX_FMT_YUV420P, width, height); |
| 75 | av_picture_copy((AVPicture *)f, &pic, PIX_FMT_YUV420P, width, height); |
| 76 | } |
| 77 | |
| 78 | /** |
| 79 | * \brief extract quantization tables from codec data into our context |
no test coverage detected