diff options
author | Michael Niedermayer <michael@niedermayer.cc> | 2015-07-21 13:23:29 +0200 |
---|---|---|
committer | Michael Niedermayer <michael@niedermayer.cc> | 2015-07-22 19:31:52 +0200 |
commit | c40ecffd31d0e0be531425e48a98c1a8fcaaffa2 (patch) | |
tree | 0ba43d0eca37012a0185646605b2f39d83d93180 /libavformat/dump.c | |
parent | a906e86a8dbd70d1ca858abc498c25e536fa87a9 (diff) | |
download | ffmpeg-c40ecffd31d0e0be531425e48a98c1a8fcaaffa2.tar.gz |
Replace AV_PKT_DATA_QUALITY_FACTOR by AV_PKT_DATA_QUALITY_STATS
The stats are a superset of the quality factor, also allowing the picture type and encoder "PSNR" stats to be exported
This also replaces the native by fixed little endian order for the affected side data
AV_PKT_DATA_QUALITY_FACTOR is left as a synonym of AV_PKT_DATA_QUALITY_STATS
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Diffstat (limited to 'libavformat/dump.c')
-rw-r--r-- | libavformat/dump.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libavformat/dump.c b/libavformat/dump.c index bb7779daf9..acf6bf622e 100644 --- a/libavformat/dump.c +++ b/libavformat/dump.c @@ -377,8 +377,8 @@ static void dump_sidedata(void *ctx, AVStream *st, const char *indent) av_log(ctx, AV_LOG_INFO, "audio service type: "); dump_audioservicetype(ctx, &sd); break; - case AV_PKT_DATA_QUALITY_FACTOR: - av_log(ctx, AV_LOG_INFO, "quality factor: %d", *(int *)sd.data); + case AV_PKT_DATA_QUALITY_STATS: + av_log(ctx, AV_LOG_INFO, "quality factor: %d", AV_RL32(sd.data)); break; default: av_log(ctx, AV_LOG_WARNING, |