* Remove a picture from the long term reference list by its index in * that list. * @return the removed picture or NULL if an error occurs */
| 414 | * @return the removed picture or NULL if an error occurs |
| 415 | */ |
| 416 | static Picture * remove_long(H264Context *h, int i, int ref_mask){ |
| 417 | Picture *pic; |
| 418 | |
| 419 | pic= h->long_ref[i]; |
| 420 | if (pic){ |
| 421 | if(unreference_pic(h, pic, ref_mask)){ |
| 422 | assert(h->long_ref[i]->long_ref == 1); |
| 423 | h->long_ref[i]->long_ref= 0; |
| 424 | h->long_ref[i]= NULL; |
| 425 | h->long_ref_count--; |
| 426 | } |
| 427 | } |
| 428 | |
| 429 | return pic; |
| 430 | } |
| 431 | |
| 432 | void ff_h264_remove_all_refs(H264Context *h){ |
| 433 | int i; |
no test coverage detected