diff options
Diffstat (limited to 'libavformat/lrcdec.c')
-rw-r--r-- | libavformat/lrcdec.c | 27 |
1 files changed, 3 insertions, 24 deletions
diff --git a/libavformat/lrcdec.c b/libavformat/lrcdec.c index 309014d630..fff39495f8 100644 --- a/libavformat/lrcdec.c +++ b/libavformat/lrcdec.c @@ -218,27 +218,6 @@ static int lrc_read_header(AVFormatContext *s) return 0; } -static int lrc_read_packet(AVFormatContext *s, AVPacket *pkt) -{ - LRCContext *lrc = s->priv_data; - return ff_subtitles_queue_read_packet(&lrc->q, pkt); -} - -static int lrc_read_seek(AVFormatContext *s, int stream_index, - int64_t min_ts, int64_t ts, int64_t max_ts, int flags) -{ - LRCContext *lrc = s->priv_data; - return ff_subtitles_queue_seek(&lrc->q, s, stream_index, - min_ts, ts, max_ts, flags); -} - -static int lrc_read_close(AVFormatContext *s) -{ - LRCContext *lrc = s->priv_data; - ff_subtitles_queue_clean(&lrc->q); - return 0; -} - const AVInputFormat ff_lrc_demuxer = { .name = "lrc", .long_name = NULL_IF_CONFIG_SMALL("LRC lyrics"), @@ -246,7 +225,7 @@ const AVInputFormat ff_lrc_demuxer = { .flags_internal = FF_FMT_INIT_CLEANUP, .read_probe = lrc_probe, .read_header = lrc_read_header, - .read_packet = lrc_read_packet, - .read_close = lrc_read_close, - .read_seek2 = lrc_read_seek + .read_packet = ff_subtitles_read_packet, + .read_close = ff_subtitles_read_close, + .read_seek2 = ff_subtitles_read_seek }; |