Browse Source

av_register_hwaccel() from Gwenole Beauchesne.

Originally committed as revision 17566 to svn://svn.ffmpeg.org/ffmpeg/trunk
tags/v0.5
Michael Niedermayer 16 years ago
parent
commit
c895618bb0
1 changed files with 11 additions and 0 deletions
  1. +11
    -0
      libavcodec/utils.c

+ 11
- 0
libavcodec/utils.c View File

@@ -1124,3 +1124,14 @@ void ff_log_ask_for_sample(void *avc, const char *msg)
"of this file to ftp://upload.ffmpeg.org/MPlayer/incoming/ "
"and contact the ffmpeg-devel mailing list.\n");
}

static AVHWAccel *first_hwaccel = NULL;

void av_register_hwaccel(AVHWAccel *hwaccel)
{
AVHWAccel **p = &first_hwaccel;
while (*p)
p = &(*p)->next;
*p = hwaccel;
hwaccel->next = NULL;
}

Loading…
Cancel
Save