Advertisement
Guest User

Untitled

a guest
Apr 14th, 2013
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.35 KB | None | 0 0
  1. #include <stdio.h>
  2. #include <stdlib.h>
  3. #include <libavformat/avformat.h>
  4.  
  5.  
  6. int main() {
  7.         avcodec_init();
  8.         avcodec_register_all();
  9.  
  10.         AVFormatContext *oc = avformat_alloc_context();
  11.         oc->oformat = av_guess_format("dvd", NULL, NULL);
  12.  
  13.         av_set_parameters(oc, NULL); // <---- Segfault here
  14.  
  15.  
  16.         return 0;
  17. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement