public AVFrame find_short(int frame_num,int[] idx){
  int i;
  for (i=0; i < this.short_ref_count; i++) {
    AVFrame pic=this.short_ref[i];
    if (pic.frame_num == frame_num) {
      idx[0]=i;
      return pic;
    }
  }
  return null;
}

public AVFrame find_short ( int frame_num , int [ ] idx ) { int i ; for ( i = 0 ; i < this . short_ref_count ; i ++ ) { AVFrame pic = this . short_ref [ i ] ; if ( pic . frame_num == frame_num ) { idx [ 0 ] = i ; return pic ; } } return null ; }
find a picture in the short term reference list by frame number .
