[mythtv-commits] Ticket #13186: Replace deprecated ffmpeg functions

MythTV noreply at mythtv.org
Thu Dec 14 21:04:29 UTC 2017


#13186: Replace deprecated ffmpeg functions
------------------------------+-----------------------------
 Reporter:  pbennett          |          Owner:  pbennett
     Type:  Developer Task    |         Status:  accepted
 Priority:  minor             |      Milestone:  30.0
Component:  MythTV - General  |        Version:  Master Head
 Severity:  medium            |     Resolution:
 Keywords:                    |  Ticket locked:  0
------------------------------+-----------------------------

Comment (by pbennett):

 Patch 006 deprecated AVStream::codec, avcodec_close,
 avcodec_get_context_defaults3

 Fixes AVStream::codec, avcodec_close, and avcodec_get_context_defaults3 in
 the rest of the mythtv programs and libraries (not plugins yet).

 Changes to avcodec_get_context_defaults3

 If avcodec_get_context_defaults3 occurs after
 avcodec_alloc_context3(codec), it is superfluous since
 avcodec_alloc_context3 already sets up the defaults. If it occurs in other
 cases it must change to avcodec_free_context and avcodec_alloc_context3
 since reusing an AVCodecContext is no longer supported.

 Also fixes one error introduced in mythavutil.cpp by the previous commit.

 This affects some areas that I cannot test or have not tested yet. These
 include Crystal HD and VDA output, transcoding, Airplay, nuppel video,
 MHEG, digital audio encoding.

--
Ticket URL: <https://code.mythtv.org/trac/ticket/13186#comment:11>
MythTV <http://www.mythtv.org>
MythTV Media Center


More information about the mythtv-commits mailing list