You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-07-11 14:30:22 +02:00
mpeg4video_parser: K&R formatting cosmetics
Signed-off-by: Diego Biurrun <diego@biurrun.de>
This commit is contained in:
committed by
Diego Biurrun
parent
435214a757
commit
c68d4c230a
@ -32,7 +32,8 @@ struct Mp4vParseContext {
|
|||||||
int first_picture;
|
int first_picture;
|
||||||
};
|
};
|
||||||
|
|
||||||
int ff_mpeg4_find_frame_end(ParseContext *pc, const uint8_t *buf, int buf_size){
|
int ff_mpeg4_find_frame_end(ParseContext *pc, const uint8_t *buf, int buf_size)
|
||||||
|
{
|
||||||
int vop_found, i;
|
int vop_found, i;
|
||||||
uint32_t state;
|
uint32_t state;
|
||||||
|
|
||||||
@ -89,7 +90,8 @@ static int av_mpeg4_decode_header(AVCodecParserContext *s1,
|
|||||||
|
|
||||||
init_get_bits(gb, buf, 8 * buf_size);
|
init_get_bits(gb, buf, 8 * buf_size);
|
||||||
ret = ff_mpeg4_decode_picture_header(s, gb);
|
ret = ff_mpeg4_decode_picture_header(s, gb);
|
||||||
if (s->width && (!avctx->width || !avctx->height || !avctx->coded_width || !avctx->coded_height)) {
|
if (s->width && (!avctx->width || !avctx->height ||
|
||||||
|
!avctx->coded_width || !avctx->coded_height)) {
|
||||||
ret = ff_set_dimensions(avctx, s->width, s->height);
|
ret = ff_set_dimensions(avctx, s->width, s->height);
|
||||||
if (ret < 0)
|
if (ret < 0)
|
||||||
return ret;
|
return ret;
|
||||||
@ -134,7 +136,6 @@ static int mpeg4video_parse(AVCodecParserContext *s,
|
|||||||
return next;
|
return next;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
AVCodecParser ff_mpeg4video_parser = {
|
AVCodecParser ff_mpeg4video_parser = {
|
||||||
.codec_ids = { AV_CODEC_ID_MPEG4 },
|
.codec_ids = { AV_CODEC_ID_MPEG4 },
|
||||||
.priv_data_size = sizeof(struct Mp4vParseContext),
|
.priv_data_size = sizeof(struct Mp4vParseContext),
|
||||||
|
Reference in New Issue
Block a user