#7114(avcodec:new): Add options to set some AVCodecContext's field
#7114: Add options to set some AVCodecContext's field -----------------------------------+--------------------------------------- Reporter: jyavenard | Type: enhancement Status: new | Priority: normal Component: avcodec | Version: git-master Keywords: | Blocked By: Blocking: | Reproduced by developer: 0 Analyzed by developer: 0 | -----------------------------------+--------------------------------------- There's currently no options to set the following members of AVCodecContext via AVOptions, which are ABI dependent. extradata extradata_size opaque get_format codec_id that list isn't exhaustive obviously (but that's what we use today) which means you must hope that the binary definition of AVCodecContext hasn't changed between the header you use and the library you're linking to. One example would be if libavcodec was built with FF_API_CODEC_NAME set, all structure field would be shifted by 32 bytes. Seeing that the ABI of AVCodecContext isn't fixed, one can't guarantee the outcome of using an external libavcodec shared lib. -- Ticket URL: <https://trac.ffmpeg.org/ticket/7114> FFmpeg <https://ffmpeg.org> FFmpeg issue tracker
#7114: Add options to set some AVCodecContext's field -------------------------------------+----------------------------------- Reporter: jyavenard | Owner: Type: enhancement | Status: new Priority: normal | Component: avcodec Version: git-master | Resolution: Keywords: | Blocked By: Blocking: | Reproduced by developer: 0 Analyzed by developer: 0 | -------------------------------------+----------------------------------- Comment (by heleppkes):
which means you must hope that the binary definition of AVCodecContext hasn't changed between the header you use and the library you're linking to.
Cases where this is not the case are not supported and violate any concept of ABI in the first place. -- Ticket URL: <https://trac.ffmpeg.org/ticket/7114#comment:1> FFmpeg <https://ffmpeg.org> FFmpeg issue tracker
#7114: Add options to set some AVCodecContext's field ------------------------------------+----------------------------------- Reporter: jyavenard | Owner: Type: defect | Status: closed Priority: normal | Component: avcodec Version: git-master | Resolution: wontfix Keywords: | Blocked By: Blocking: | Reproduced by developer: 0 Analyzed by developer: 0 | ------------------------------------+----------------------------------- Changes (by cehoyos): * status: new => closed * type: enhancement => defect * resolution: => wontfix Comment: I don’t think this will get implemented. If you see a real-world issue, please report and explain! Messing around with FF_API_CODEC_NAME is equivalent with changing the sources. -- Ticket URL: <https://trac.ffmpeg.org/ticket/7114#comment:2> FFmpeg <https://ffmpeg.org> FFmpeg issue tracker
participants (1)
-
FFmpeg