#9871: AccessViolationException setting seekable = 1
------------------------------------+------------------------------------
             Reporter:  sporn       |                    Owner:  (none)
                 Type:  defect      |                   Status:  new
             Priority:  normal      |                Component:  avformat
              Version:  git-master  |               Resolution:
             Keywords:              |               Blocked By:
             Blocking:              |  Reproduced by developer:  0
Analyzed by developer:  0           |
------------------------------------+------------------------------------
Comment (by mkver):

 I can't reproduce this (after converting the snippet into C). You will
 have to provide more details to allow us to reproduce this. A stacktrace
 would also be nice.

 Nevertheless, here are some comments: First of all, an AVIOContext created
 as above will already be seekable (after all, you are just writing an
 ordinary file). Second, seekable is not a boolean, but a bitfield, so the
 likely intended value is AVIO_SEEKABLE_NORMAL (which happens to be 1). 3.
 Using avio_close() is generally dangerous, because it frees the memory,
 but leaves a dangling pointer behind. Better use avio_closep(). Finally,
 the videoCodecContext in your example is unused.
-- 
Ticket URL: <https://trac.ffmpeg.org/ticket/9871#comment:3>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker
_______________________________________________
FFmpeg-trac mailing list
[email protected]
https://ffmpeg.org/mailman/listinfo/ffmpeg-trac

To unsubscribe, visit link above, or email
[email protected] with subject "unsubscribe".

Reply via email to