1. 03 Jun, 2019 2 commits
  2. 02 Jun, 2019 1 commit
  3. 03 Jun, 2019 3 commits
  4. 02 Jun, 2019 19 commits
  5. 01 Jun, 2019 2 commits
  6. 31 May, 2019 4 commits
  7. 30 May, 2019 4 commits
  8. 29 May, 2019 1 commit
  9. 28 May, 2019 4 commits
    • James Almer's avatar
      avcodec/cbs_mpeg2: fix leak of extra_information_slice buffer in cbs_mpeg2_read_slice_header() · d903c09d
      James Almer authored
      cbs_mpeg2_free_slice() calls av_buffer_unref() on extra_information_ref,
      meaning allocating with av_malloc() was not the intention.
      Signed-off-by: 's avatarJames Almer <jamrial@gmail.com>
      d903c09d
    • Andreas Rheinhardt's avatar
      cbs_mpeg2: Correct error codes · 1759a9e5
      Andreas Rheinhardt authored
      Up until now, things that are merely unsupported by cbs_mpeg2 have been
      declared to be invalid input. This has been changed.
      Signed-off-by: 's avatarAndreas Rheinhardt <andreas.rheinhardt@gmail.com>
      1759a9e5
    • Andreas Rheinhardt's avatar
      cbs_mpeg2: Fix storage type for frame_centre_*_offset · de588038
      Andreas Rheinhardt authored
      The frame_centre_horizontal/vertical_offset values contained in picture
      display extensions are actually signed values (i.e. it is possible to
      indicate that the display device should add black bars/pillars).
      
      The files sony-ct3.bs and tcela-6.bits (which are both used in fate
      tests for mpeg2_metadata) contain picture display extensions; the former
      even contains a negative frame_centre_vertical_offset. Fortunately, the
      old code did not damage the picture display extensions when one did a
      cycle of reading and writing. For the same reason the fate tests needn't
      be updated either.
      
      Furthermore these fields now use the trace output for matrices.
      Signed-off-by: 's avatarAndreas Rheinhardt <andreas.rheinhardt@gmail.com>
      de588038
    • Andreas Rheinhardt's avatar
      cbs_mpeg2: Improve checks for invalid values · 9c3f2a88
      Andreas Rheinhardt authored
      MPEG-2 contains several elements that mustn't be zero according to the
      specifications: horizontal/vertical_size_value, aspect_ratio_information,
      frame_rate_code, the quantiser matrices, the colour_description
      elements, picture_coding_type, the f_code[r][s] values and
      quantiser_scale_code. It is now checked that the invalid values don't
      occur.
      
      The colour_description elements are treated specially in this regard:
      Given that there are files in the wild which use illegal values for the
      colour_description elements (some of them created by mpeg2_metadata),
      they will be corrected to the value meaning "unknown" (namely 2) during
      reading. This has been done in such a way that trace_headers will
      nevertheless report the original value, together with a message about
      the fixup.
      
      Furthermore, the trace_headers output of user_data has been beautified.
      Signed-off-by: 's avatarAndreas Rheinhardt <andreas.rheinhardt@gmail.com>
      9c3f2a88