Ignore:
Timestamp:
12/08/20 01:35:11 (3 years ago)
Author:
obi
Message:

[libeplayer3] update to v68

File:
1 edited

Legend:

Unmodified
Added
Removed
  • titan/libeplayer3/container/wrapped_ffmpeg.c

    r43806 r44958  
    143143        if (!avCodecCtx)
    144144        {
    145             fprintf(stderr, "context3 alloc for stream %d failed\n", (int)stream->id);
     145            ffmpeg_err("context3 alloc for stream %d failed\n", (int)stream->id);
    146146            return NULL;
    147147        }
     
    149149        if (avcodec_parameters_to_context(avCodecCtx, stream->codecpar) < 0)
    150150        {
    151             fprintf(stderr, "parameters to context for stream %d failed\n", (int)stream->id);
     151            ffmpeg_err("parameters to context for stream %d failed\n", (int)stream->id);
    152152            avcodec_free_context(&avCodecCtx);
    153153            return NULL;
     
    159159#endif
    160160        store_avcodec_context(avCodecCtx, cAVIdx, stream->id);
    161        
     161
    162162        return avCodecCtx;
    163163    }
     
    188188        }
    189189    }
    190 #endif   
    191 }
     190#endif
     191}
     192
     193static void wrapped_register_all(void)
     194{
     195#if LIBAVCODEC_VERSION_INT < AV_VERSION_INT(58, 9, 100)
     196    avcodec_register_all();
     197    av_register_all();
     198#endif
     199}
     200
     201static int64_t wrapped_frame_get_best_effort_timestamp(const AVFrame *frame)
     202{
     203#if LIBAVCODEC_VERSION_INT < AV_VERSION_INT(58, 9, 100)
     204    return av_frame_get_best_effort_timestamp(frame);
     205#else
     206    return frame->best_effort_timestamp;
     207#endif
     208}
     209
     210
Note: See TracChangeset for help on using the changeset viewer.