| 245 | } |
| 246 | |
| 247 | int ff_vaapi_decode_cancel(AVCodecContext *avctx, |
| 248 | VAAPIDecodePicture *pic) |
| 249 | { |
| 250 | ff_vaapi_decode_destroy_buffers(avctx, pic); |
| 251 | |
| 252 | pic->nb_param_buffers = 0; |
| 253 | pic->nb_param_buffers_allocated = 0; |
| 254 | av_freep(&pic->param_buffers); |
| 255 | pic->nb_slices = 0; |
| 256 | pic->nb_slice_buffers_allocated = 0; |
| 257 | av_freep(&pic->slice_buffers); |
| 258 | |
| 259 | return 0; |
| 260 | } |
| 261 | |
| 262 | static const struct { |
| 263 | uint32_t fourcc; |
no test coverage detected