- streaminfo2: formatting code using astyle

Signed-off-by: Thilo Graf <dbt@novatux.de>
This commit is contained in:
svenhoefer
2019-03-16 21:15:47 +01:00
committed by Thilo Graf
parent cd6086a317
commit c2b08afdad
2 changed files with 112 additions and 108 deletions

View File

@@ -165,7 +165,8 @@ void CStreamInfo2::analyzeStream(AVFormatContext *avfc, unsigned int idx)
return;
ret = avcodec_parameters_to_context(avctx, st->codecpar);
if (ret < 0) {
if (ret < 0)
{
avcodec_free_context(&avctx);
return;
}
@@ -819,7 +820,8 @@ void CStreamInfo2::paint (int /*mode*/)
}
}
struct row {
struct row
{
std::string key;
std::string val;
Font *f;

View File

@@ -79,13 +79,15 @@ class CStreamInfo2 : public CMenuTarget
unsigned int scaling;
unsigned int pmt_version;
int box_h, box_h2;
struct feSignal {
struct feSignal
{
unsigned long ber, old_ber, max_ber, min_ber;
unsigned long sig, old_sig, max_sig, min_sig;
unsigned long snr, old_snr, max_snr, min_snr;
} signal;
struct bitrate {
struct bitrate
{
unsigned int short_average, max_short_average, min_short_average;
} rate;