mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-03-03 11:07:41 +00:00
avformat/wc3movie: Move wc3_read_close() up
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
(cherry picked from commit 0c635f2ce6
)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
parent
0263257062
commit
9487575d53
@ -73,6 +73,16 @@ typedef struct Wc3DemuxContext {
|
|||||||
|
|
||||||
} Wc3DemuxContext;
|
} Wc3DemuxContext;
|
||||||
|
|
||||||
|
static int wc3_read_close(AVFormatContext *s)
|
||||||
|
{
|
||||||
|
Wc3DemuxContext *wc3 = s->priv_data;
|
||||||
|
|
||||||
|
if (wc3->vpkt.size > 0)
|
||||||
|
av_packet_unref(&wc3->vpkt);
|
||||||
|
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
static int wc3_probe(const AVProbeData *p)
|
static int wc3_probe(const AVProbeData *p)
|
||||||
{
|
{
|
||||||
if (p->buf_size < 12)
|
if (p->buf_size < 12)
|
||||||
@ -286,16 +296,6 @@ static int wc3_read_packet(AVFormatContext *s,
|
|||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
static int wc3_read_close(AVFormatContext *s)
|
|
||||||
{
|
|
||||||
Wc3DemuxContext *wc3 = s->priv_data;
|
|
||||||
|
|
||||||
if (wc3->vpkt.size > 0)
|
|
||||||
av_packet_unref(&wc3->vpkt);
|
|
||||||
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
AVInputFormat ff_wc3_demuxer = {
|
AVInputFormat ff_wc3_demuxer = {
|
||||||
.name = "wc3movie",
|
.name = "wc3movie",
|
||||||
.long_name = NULL_IF_CONFIG_SMALL("Wing Commander III movie"),
|
.long_name = NULL_IF_CONFIG_SMALL("Wing Commander III movie"),
|
||||||
|
Loading…
Reference in New Issue
Block a user