angler-fishThe Vulnerability History Project

lavf: replace AVStream.codec with AVStream.codecpar

      Currently, AVStream contains an embedded AVCodecContext instance, which
is used by demuxers to export stream parameters to the caller and by
muxers to receive stream parameters from the caller. It is also used
internally as the codec context that is passed to parsers.

In addition, it is also widely used by the callers as the decoding (when
demuxer) or encoding (when muxing) context, though this has been
officially discouraged since Libav 11.

There are multiple important problems with this approach:
    - the fields in AVCodecContext are in general one of
        * stream parameters
        * codec options
        * codec state
      However, it's not clear which ones are which. It is consequently
      unclear which fields are a demuxer allowed to set or a muxer allowed to
      read. This leads to erratic behaviour depending on whether decoding or
      encoding is being performed or not (and whether it uses the AVStream
      embe
    
commit 9200514ad8717c63f82101dc394f4378854325bf
+1 -1
+7 -7
+5 -5
+7 -6
+8 -8
+5 -5
+6 -6
+8 -7
+4 -4
+2 -2
+4 -4
+4 -4
+2 -2
+9 -9
+17 -18
+7 -8
+6 -5
+22 -22
+5 -5
+2 -2
+4 -4
+17 -17
+10 -10
+34 -34
+17 -17
+18 -18
+9 -9
+16 -16
+11 -11
+8 -8
+15 -15
+29 -29
+5 -5
+8 -8
+15 -15
+6 -6
+9 -15
+68 -67
+49 -49
+29 -29
+6 -6
+12 -12
+18 -18
+23 -23
+10 -10
+5 -5
+32 -32
+2 -2
+13 -13
+30 -30
+9 -9
+2 -2
+4 -4
+13 -13
+8 -8
+12 -22
+22 -21
+12 -13
+10 -10
+5 -5
+16 -16
+2 -2
+10 -10
+3 -3
+4 -4
+7 -7
+8 -8
+27 -27
+122 -127
+76 -76
+8 -8
+6 -6
+16 -17
+6 -6
+39 -39
+31 -31
+7 -7
+1 -1
+3 -3
+9 -9
+2 -2
+1 -1
+19 -19
+18 -18
+27 -27
+18 -18
+14 -14
+8 -8
-16
+19 -19
+16 -16
+15 -15
+2 -2
+5 -5
+6 -6
+12 -12
+8 -8
+4 -4
+16 -16
+59 -59
+97 -97
+11 -11
+13 -13
+174 -182
+2 -2
+18 -18
+261 -258
+1 -1
+6 -6
+3 -3
+11 -11
+11 -11
+10 -10
+2 -2
+13 -13
+51 -51
+27 -28
+2 -2
+5 -5
+11 -11
+32 -50
+37 -37
+18 -18
+58 -58
+46 -46
+9 -9
+2 -2
+13 -13
+22 -22
+36 -36
+36 -36
+1 -1
+40 -40
+7 -7
+14 -14
+8 -8
+23 -23
+6 -6
+1 -1
+12 -12
+13 -13
+11 -11
+4 -4
+25 -25
+14 -14
+11 -11
+4 -4
+13 -13
+9 -9
+17 -17
+4 -4
+6 -6
+12 -12
+4 -4
+8 -8
+4 -4
+3 -3
+40 -39
+65 -66
+22 -22
+57 -57
+23 -23
+36 -36
+7 -7
+7 -7
+14 -14
+4 -4
+3 -3
+4 -4
+4 -2
+1 -1
+3 -3
+10 -10
+15 -15
+3 -3
+7 -7
+1 -1
+9 -9
+14 -14
+2 -2
+8 -8
+16 -17
+22 -22
+1 -1
+2 -2
+2 -2
+8 -8
+1 -1
+2 -2
+30 -38
+2 -2
+4 -4
+87 -87
+19 -19
+3 -3
+28 -28
+12 -12
+32 -32
+13 -13
+13 -13
+21 -21
+18 -18
+7 -7
+15 -15
+9 -9
+5 -5
+1 -1
+2 -2
+1 -1
+18 -18
+45 -45
+9 -9
+12 -12
+14 -14
+20 -20
+12 -12
+5 -5
+2 -2
+91 -232
+8 -8
+5 -5
-3
+17 -17
+1 -1
+13 -13
+21 -21
+13 -13
+6 -6
+15 -15
+11 -11
+22 -22
+30 -30
+6 -6
+1 -1
+8 -8
+18 -18
+24 -24
+18 -18
+12 -12
+15 -15
+5 -5
+90 -90
+19 -19
+95 -95
+91 -91
+34 -34
+1 -1
+1 -1
+1 -1
+1 -1
+1 -1
expand_less