1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2025-08-10 06:10:52 +02:00

avformat/hevcdec: cosmetics, whitespaces

This reduces the difference to the latest hevc demuxer

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
Dirk Farin
2013-10-12 11:55:44 +02:00
committed by Michael Niedermayer
parent 21b3563dcb
commit 2ac31773f3

View File

@@ -1,5 +1,5 @@
/*
* RAW H.265 video demuxer
* RAW HEVC video demuxer
* Copyright (c) 2013 Dirk Farin <dirk.farin@gmail.com>
*
* This file is part of FFmpeg.
@@ -22,10 +22,12 @@
#include "avformat.h"
#include "rawdec.h"
#include "libavcodec/hevc.h"
static int hevc_probe(AVProbeData *p)
{
uint32_t code = -1;
int vps=0, sps=0, pps=0, idr=0;
int vps = 0, sps = 0, pps = 0, irap = 0;
int i;
for (i = 0; i < p->buf_size - 1; i++) {
@@ -41,20 +43,20 @@ static int hevc_probe(AVProbeData *p)
return 0;
switch (type) {
case 32: vps++; break;
case 33: sps++; break;
case 34: pps++; break;
case NAL_VPS: vps++; break;
case NAL_SPS: sps++; break;
case NAL_PPS: pps++; break;
case 19:
case 20: idr++; break;
case 20: irap++; break;
}
}
}
// printf("vps=%d, sps=%d, pps=%d, idr=%d\n", vps, sps, pps, idr);
// printf("vps=%d, sps=%d, pps=%d, irap=%d\n", vps, sps, pps, irap);
if (vps && sps && pps && idr)
if (vps && sps && pps && irap)
return AVPROBE_SCORE_EXTENSION + 1; // 1 more than .mpg
return 0;
}
FF_DEF_RAWVIDEO_DEMUXER(hevc , "raw HEVC video", hevc_probe, "h265,265,hevc", AV_CODEC_ID_HEVC)
FF_DEF_RAWVIDEO_DEMUXER(hevc, "raw HEVC video", hevc_probe, "hevc,h265,265", AV_CODEC_ID_HEVC)