summaryrefslogtreecommitdiffstats
path: root/libavformat
diff options
context:
space:
mode:
authorClément Bœsch <clement@stupeflix.com>2016-06-23 12:38:51 +0200
committerClément Bœsch <clement@stupeflix.com>2016-06-23 12:38:51 +0200
commitabb3cc46d595dcb186ae30ec7339a56cd9803f45 (patch)
tree6397a8cdb89841f13ef23c8f860fe5eac4c253ec /libavformat
parent5954730ba35ca223e7ba520ade9d589e158c1ede (diff)
parent0c4468dc185fa8b9e7d6add914595c5e928b24fd (diff)
downloadffmpeg-streaming-abb3cc46d595dcb186ae30ec7339a56cd9803f45.zip
ffmpeg-streaming-abb3cc46d595dcb186ae30ec7339a56cd9803f45.tar.gz
Merge commit '0c4468dc185fa8b9e7d6add914595c5e928b24fd'
* commit '0c4468dc185fa8b9e7d6add914595c5e928b24fd': stereo3d: Add API to get name from value or value from name Merged-by: Clément Bœsch <clement@stupeflix.com>
Diffstat (limited to 'libavformat')
-rw-r--r--libavformat/dump.c31
1 files changed, 2 insertions, 29 deletions
diff --git a/libavformat/dump.c b/libavformat/dump.c
index bf61fdc..d86792d 100644
--- a/libavformat/dump.c
+++ b/libavformat/dump.c
@@ -252,6 +252,7 @@ static void dump_replaygain(void *ctx, AVPacketSideData *sd)
static void dump_stereo3d(void *ctx, AVPacketSideData *sd)
{
AVStereo3D *stereo;
+ const char *name;
if (sd->size < sizeof(*stereo)) {
av_log(ctx, AV_LOG_INFO, "invalid data");
@@ -260,35 +261,7 @@ static void dump_stereo3d(void *ctx, AVPacketSideData *sd)
stereo = (AVStereo3D *)sd->data;
- switch (stereo->type) {
- case AV_STEREO3D_2D:
- av_log(ctx, AV_LOG_INFO, "2D");
- break;
- case AV_STEREO3D_SIDEBYSIDE:
- av_log(ctx, AV_LOG_INFO, "side by side");
- break;
- case AV_STEREO3D_TOPBOTTOM:
- av_log(ctx, AV_LOG_INFO, "top and bottom");
- break;
- case AV_STEREO3D_FRAMESEQUENCE:
- av_log(ctx, AV_LOG_INFO, "frame alternate");
- break;
- case AV_STEREO3D_CHECKERBOARD:
- av_log(ctx, AV_LOG_INFO, "checkerboard");
- break;
- case AV_STEREO3D_LINES:
- av_log(ctx, AV_LOG_INFO, "interleaved lines");
- break;
- case AV_STEREO3D_COLUMNS:
- av_log(ctx, AV_LOG_INFO, "interleaved columns");
- break;
- case AV_STEREO3D_SIDEBYSIDE_QUINCUNX:
- av_log(ctx, AV_LOG_INFO, "side by side (quincunx subsampling)");
- break;
- default:
- av_log(ctx, AV_LOG_WARNING, "unknown");
- break;
- }
+ av_log(ctx, AV_LOG_INFO, "%s", av_stereo3d_type_name(stereo->type));
if (stereo->flags & AV_STEREO3D_FLAG_INVERT)
av_log(ctx, AV_LOG_INFO, " (inverted)");
OpenPOWER on IntegriCloud