MCPcopy Create free account
hub / github.com/FFmpeg/FFmpeg / remove_long

Function remove_long

libavcodec/h264_refs.c:416–430  ·  view source on GitHub ↗

* 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 */

Source from the content-addressed store, hash-verified

414 * @return the removed picture or NULL if an error occurs
415 */
416static 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
432void ff_h264_remove_all_refs(H264Context *h){
433 int i;

Callers 2

ff_h264_remove_all_refsFunction · 0.85

Calls 1

unreference_picFunction · 0.85

Tested by

no test coverage detected