<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none;"> P {margin-top:0;margin-bottom:0;} </style>
</head>
<body dir="ltr">
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof">
Hello,</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof">
<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof">
I'm using AVFormatContext with a custom io_open callback, passing user data in the opaque field. This seems to work fine for most formats, and nested inputs from HLS, Dash, but not with IMF. According to documentation in avformat.h:</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof">
<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof">
<div style="font-family: "Droid Sans Mono", "monospace", monospace; font-weight: normal; font-size: 14px; line-height: 19px; color: rgb(204, 204, 204); background-color: rgb(31, 31, 31);">
<span><span style="color: rgb(106, 153, 85);" class="ContentPasted0">     * </span>
<span style="color: rgb(86, 156, 214);" class="ContentPasted0">@note</span><span style="color: rgb(106, 153, 85);" class="ContentPasted0"> Certain muxers and demuxers do nesting, i.e. they open one or more</span></span>
<div><span style="color: rgb(106, 153, 85);" class="ContentPasted0">     * additional internal format contexts. Thus the AVFormatContext pointer</span></div>
<div><span style="color: rgb(106, 153, 85);" class="ContentPasted0">     * passed to this callback may be different from the one facing the caller.</span></div>
<span><span style="color: rgb(106, 153, 85);" class="ContentPasted0">     * It will, however, have the same 'opaque' field.</span></span></div>
<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof">
However, it appears that imfdec does not pass thru the opaque field when opening up nested MXF track resources. As it works in other formats and is specified in AVFormat header, this appears to be a bug specific to IMF.</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof">
<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof">
Regards,</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof">
Jesse</div>
</body>
</html>