Revision 6059f13c

View differences:

libavcodec/utils.c
1140 1140
{
1141 1141
    return hwaccel ? hwaccel->next : first_hwaccel;
1142 1142
}
1143

  
1144
AVHWAccel *ff_find_hwaccel(enum CodecID codec_id, enum PixelFormat pix_fmt)
1145
{
1146
    AVHWAccel *hwaccel=NULL;
1147

  
1148
    while((hwaccel= av_hwaccel_next(hwaccel))){
1149
        if (   hwaccel->id      == codec_id
1150
            && hwaccel->pix_fmt == pix_fmt)
1151
            return hwaccel;
1152
    }
1153
    return NULL;
1154
}

Also available in: Unified diff