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 /libavcodec/svq1enc.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 'libavcodec/svq1enc.c')
-rw-r--r-- | libavcodec/svq1enc.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/libavcodec/svq1enc.c b/libavcodec/svq1enc.c index cb3bc451b2..6d5ff01b51 100644 --- a/libavcodec/svq1enc.c +++ b/libavcodec/svq1enc.c @@ -618,10 +618,7 @@ FF_DISABLE_DEPRECATION_WARNINGS FF_ENABLE_DEPRECATION_WARNINGS #endif - sd = av_packet_new_side_data(pkt, AV_PKT_DATA_QUALITY_FACTOR, sizeof(int)); - if (!sd) - return AVERROR(ENOMEM); - *(int *)sd = pict->quality; + ff_side_data_set_encoder_stats(pkt, pict->quality, NULL, 0, s->pict_type); svq1_write_header(s, s->pict_type); for (i = 0; i < 3; i++) |