[FFmpeg-trac] #9343(avutil:new): ORing AVERROR_INPUT_CHANGED and AVERROR_OUTPUT_CHANGED gives AVERROR_INPUT_CHANGED

FFmpeg trac at avcodec.org
Fri Jul 23 06:32:00 EEST 2021


#9343: ORing AVERROR_INPUT_CHANGED and AVERROR_OUTPUT_CHANGED gives
AVERROR_INPUT_CHANGED
--------------------------------+--------------------------------------
             Reporter:  jrh     |                     Type:  defect
               Status:  new     |                 Priority:  normal
            Component:  avutil  |                  Version:  git-master
             Keywords:          |               Blocked By:
             Blocking:          |  Reproduced by developer:  0
Analyzed by developer:  0       |
--------------------------------+--------------------------------------
 The documentation for `AVERROR_INPUT_CHANGED` and `AVERROR_OUTPUT_CHANGED`
 states that the two can be ORed. But
 `AVERROR_INPUT_CHANGED|AVERROR_OUTPUT_CHANGED` gives a value equal to
 `AVERROR_INPUT_CHANGED`.

 /libavutil/error.h:

 {{{
 #define AVERROR_INPUT_CHANGED      (-0x636e6701) ///< Input changed
 between calls. Reconfiguration is required. (can be OR-ed with
 AVERROR_OUTPUT_CHANGED)
 #define AVERROR_OUTPUT_CHANGED     (-0x636e6702) ///< Output changed
 between calls. Reconfiguration is required. (can be OR-ed with
 AVERROR_INPUT_CHANGED)
 }}}

 Even though the numbers look as if ORing should work as intended, this is
 not the case because both are negative. The result is that "only input
 changed" and "both input and output changed" are indistinguishable.
-- 
Ticket URL: <https://trac.ffmpeg.org/ticket/9343>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker


More information about the FFmpeg-trac mailing list