<html>
  <head>

    <meta http-equiv="content-type" content="text/html; charset=utf-8">
  </head>
  <body alink="#EE0000" bgcolor="#ffffff" link="#0B6CDA" text="#000000"
    vlink="#551A8B">
    Hello All,<br>
    <br>
    I am using the following function call to open the file for encoding
    video:<br>
    <br>
    avformat_alloc_output_context2(&<span style=" font-weight:600;">m_oc</span>,
    <span style=" font-weight:600;">m_fmt</span>, NULL, filePath.c_str());<br>
    <br>
    Then when I want to stop recording the video, I use this function to
    free it:<br>
    <br>
    avformat_free_context(<span style=" font-weight:600;">m_oc</span>);<br>
    <br>
    The issue is, if my program is still running and the user opens
    Windows Explorer, the file size is showing as zero.  Also, inside my
    program the user can browse the directory and delete videos.  If the
    user tries to delete a video that was created during the current
    session, the file will not delete.  The user can open it and play
    it, however.<br>
    <br>
    I am assuming there is another function call I need to make to
    properly close the file.  Can anyone tell me what call I am missing?<br>
    <br>
    <div class="moz-signature">-- <br>
      <meta http-equiv="content-type" content="text/html; charset=utf-8">
      <title></title>
      Sincerely,<span style="font-size:12.0pt;color:#0070C0"><br>
        Kevin J. Brooks<o:p></o:p></span><span
        style="font-size:12.0pt;color:#0070C0"><br>
        Senior Software Engineer<o:p></o:p></span><span
        style="font-size:14.0pt;color:black;mso-themecolor: text1"><br>
        R2C Support Services<o:p></o:p></span><span
        style="font-size:14.0pt;color:black;mso-themecolor: text1"><br>
        200 West Side Square Suite 604<o:p></o:p></span><span
        style="font-size:14.0pt;color:black;mso-themecolor: text1"><br>
        Huntsville, AL 35801</span><span
        style="font-size:14.0pt;color:black;mso-themecolor: text1"><br>
        Office: 256-684-8383 ext. 104<o:p></o:p></span> <br>
      <br>
      <img alt="" src="cid:part1.02050905.02010901@r2c-ss.com"
        height="281" width="281"><br>
    </div>
  </body>
</html>