Changes between Initial Version and Version 1 of Ticket #5781, comment 5


Ignore:
Timestamp:
Aug 20, 2016, 1:41:05 AM (3 years ago)
Author:
jamrial
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #5781, comment 5

    initial v1  
    99>
    1010> This looks like a secret trick, but it shouldn't be secret. Did I miss something?
    11 No, you didn't. The doxygen documentation in avcodec.h for avcodec_open2() doesn't mention it because an input AVStream is not required unless you're demuxing with lavf. I agree it should be mentioned somewhere, though.
     11No, you didn't. The doxygen documentation in avcodec.h for avcodec_open2() doesn't mention it because an input AVStream is not required unless you're demuxing with libavformat.
     12I agree it should be mentioned somewhere, though.
    1213
    1314Basically, since AVStream.AVCodecContext (which has all the stream's parameters already filled) shouldn't be used anymore, the manually allocated AVCodecContext needs to be filled with said parameters in some way, and as its doxy states that's what the above function does.