summaryrefslogtreecommitdiff
path: root/libavcodec/dv_profile.c
diff options
context:
space:
mode:
authorPiotr Bandurski <ami_stuff@o2.pl>2012-05-15 20:39:08 +0200
committerMichael Niedermayer <michaelni@gmx.at>2012-05-16 03:10:16 +0200
commite5e20a3d31d5e35bf5724a27b7f07b5b06ae97e2 (patch)
tree21d97f8bb8a58343061e676f5da9b6880b8cda3f /libavcodec/dv_profile.c
parent1cbf7fb4345a3e5b7791d483241bf4759bde4ece (diff)
dv_profile: fix decoding of SoftLabDVCPRO codec (PAL mode)
fixes ticket #1307 Reviewed-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/dv_profile.c')
-rw-r--r--libavcodec/dv_profile.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libavcodec/dv_profile.c b/libavcodec/dv_profile.c
index 8359daebe1..4264098912 100644
--- a/libavcodec/dv_profile.c
+++ b/libavcodec/dv_profile.c
@@ -292,7 +292,8 @@ const DVprofile* avpriv_dv_frame_profile2(AVCodecContext* codec, const DVprofile
stype = frame[80 * 5 + 48 + 3] & 0x1f;
/* 576i50 25Mbps 4:1:1 is a special case */
- if (dsf == 1 && stype == 0 && frame[4] & 0x07 /* the APT field */) {
+ if ((dsf == 1 && stype == 0 && frame[4] & 0x07 /* the APT field */) ||
+ (stype == 31 && codec && codec->codec_tag==AV_RL32("SL25") && codec->coded_width==720 && codec->coded_height==576)) {
return &dv_profiles[2];
}