Advertisement
Guest User

Untitled

a guest
Oct 27th, 2012
57
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.80 KB | None | 0 0
  1. --- squeezeslave/src/slimaudio/slimaudio_decoder_aac.c 2012-09-29 22:15:39.994264503 -0400
  2. +++ squeezeslave.new/src/slimaudio/slimaudio_decoder_aac.c 2012-10-27 16:25:32.745423407 -0400
  3. @@ -176,13 +176,15 @@
  4. else
  5. {
  6. DEBUGF("aac: probe ok name:%s lname:%s\n", pAVInputFormat->name, pAVInputFormat->long_name);
  7. - pAVInputFormat->flags |= AVFMT_NOFILE;
  8. + //pAVInputFormat->flags |= AVFMT_NOFILE;
  9. }
  10.  
  11. - AVFormatContext* pFormatCtx;
  12. + AVFormatContext *pFormatCtx = avformat_alloc_context();
  13. AVCodecContext *pCodecCtx;
  14.  
  15. - iRC = av_open_input_stream(&pFormatCtx, AVIOCtx, "", pAVInputFormat, NULL);
  16. + //iRC = av_open_input_stream(&pFormatCtx, AVIOCtx, "", pAVInputFormat, NULL);
  17. + pFormatCtx->pb = AVIOCtx;
  18. + iRC = avformat_open_input(&pFormatCtx, "", pAVInputFormat, NULL);
  19.  
  20. if (iRC < 0)
  21. {
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement