Guest User

Untitled

a guest
Feb 24th, 2012
96
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.33 KB | None | 0 0
  1. void avcodec_register(AVCodec *codec)
  2. {
  3.     AVCodec **p;
  4.     avcodec_init();
  5.     p = &first_avcodec;
  6.     while (*p != NULL) {
  7.     av_log(*p,1,"Name : %s CodecID 0x%x",(*p)->name,(*p)->id);
  8.     p = &(*p)->next;
  9. }
  10.     *p = codec;
  11.     codec->next = NULL;
  12.  
  13.     if (codec->init_static_data)
  14.         codec->init_static_data(codec);
  15. }
Advertisement
Add Comment
Please, Sign In to add comment