aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat
diff options
context:
space:
mode:
authorReynaldo H. Verdejo Pinochet <reynaldo@opendot.cl>2008-12-07 01:53:31 +0000
committerReynaldo H. Verdejo Pinochet <reynaldo@opendot.cl>2008-12-07 01:53:31 +0000
commit7100376f75cf2917974b6c514d8c32e5622f92f0 (patch)
tree29eeaeefc82a1a88a168e9a6b766677584ecd314 /libavformat
parentc687643c689c47ecfba6ba55b277ba8d8bdad272 (diff)
downloadffmpeg-7100376f75cf2917974b6c514d8c32e5622f92f0.tar.gz
COSMETICS
Originally committed as revision 16028 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat')
-rw-r--r--libavformat/mtv.c32
1 files changed, 15 insertions, 17 deletions
diff --git a/libavformat/mtv.c b/libavformat/mtv.c
index 9def92daf1..7bf0d84189 100644
--- a/libavformat/mtv.c
+++ b/libavformat/mtv.c
@@ -36,24 +36,23 @@
typedef struct MTVDemuxContext {
- unsigned int file_size; ///< filesize, not always right
- unsigned int segments; ///< number of 512 byte segments
- unsigned int audio_identifier; ///< 'MP3' on all files I have seen
- unsigned int audio_br; ///< bitrate of audio chanel (mp3)
- unsigned int img_colorfmt; ///< frame colorfmt rgb 565/555
- unsigned int img_bpp; ///< frame bits per pixel
- unsigned int img_width; //
- unsigned int img_height; //
- unsigned int img_segment_size; ///< size of image segment
- unsigned int video_fps; //
- unsigned int full_segment_size;
+ unsigned int file_size; ///< filesize, not always right
+ unsigned int segments; ///< number of 512 byte segments
+ unsigned int audio_identifier; ///< 'MP3' on all files I have seen
+ unsigned int audio_br; ///< bitrate of audio chanel (mp3)
+ unsigned int img_colorfmt; ///< frame colorfmt rgb 565/555
+ unsigned int img_bpp; ///< frame bits per pixel
+ unsigned int img_width; //
+ unsigned int img_height; //
+ unsigned int img_segment_size; ///< size of image segment
+ unsigned int video_fps; //
+ unsigned int full_segment_size;
} MTVDemuxContext;
static int mtv_probe(AVProbeData *p)
{
/* Magic is 'AMV' */
-
if(*(p->buf) != 'A' || *(p->buf+1) != 'M' || *(p->buf+2) != 'V')
return 0;
@@ -62,11 +61,10 @@ static int mtv_probe(AVProbeData *p)
static int mtv_read_header(AVFormatContext *s, AVFormatParameters *ap)
{
- MTVDemuxContext *mtv = s->priv_data;
- ByteIOContext *pb = s->pb;
- AVStream *st;
- unsigned int audio_subsegments;
-
+ MTVDemuxContext *mtv = s->priv_data;
+ ByteIOContext *pb = s->pb;
+ AVStream *st;
+ unsigned int audio_subsegments;
url_fskip(pb, 3);
mtv->file_size = get_le32(pb);