[FFmpeg-trac] #6117(undetermined:new): type mismatch of AC3EncodeContext in different translation units

FFmpeg trac at avcodec.org
Wed Feb 1 14:35:07 EET 2017


#6117: type mismatch of AC3EncodeContext in different translation units
-------------------------------------+-------------------------------------
             Reporter:  dkrupp       |                    Owner:
                 Type:  defect       |                   Status:  new
             Priority:  normal       |                Component:
              Version:  unspecified  |  undetermined
             Keywords:               |               Resolution:
             Blocking:               |               Blocked By:
Analyzed by developer:  0            |  Reproduced by developer:  0
-------------------------------------+-------------------------------------

Comment (by dkrupp):

 I did not reproduce the problem in run-time. Inspecting the code a bit
 more in detail I see that in AC3EncodeContext there are only pointers to
 the changing types: SampleType,CoefType and thus the size of and memory
 layout of the struct remains the same in the 2 TUs. So I do not expect
 run-time error in the current form of the struct.

 Still, this violates the one definition rule of C/C++ which may not cause
 run-time error in this very specific case.

--
Ticket URL: <https://trac.ffmpeg.org/ticket/6117#comment:2>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker


More information about the FFmpeg-trac mailing list