aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2013-01-19 13:34:41 +0100
committerMichael Niedermayer <michaelni@gmx.at>2013-01-19 13:34:41 +0100
commit56cc629a645e479c233750a60a35264b4aa9a651 (patch)
treea4a420cfbbbe97ab5ce913e62e64b10a290cd440
parent685321e4bd84fbe595cebc78cb92619e7df05a61 (diff)
downloadffmpeg-56cc629a645e479c233750a60a35264b4aa9a651.tar.gz
Revert "h264: allow cropping to AVCodecContext.width/height"
This reverts commit a2ae183a382f063c5403922b5151d865ce7252a2. This removes a duplicate hunk Found-by: Joakim Plate <elupus@ecce.se>
-rw-r--r--libavcodec/h264.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/libavcodec/h264.c b/libavcodec/h264.c
index 8c7ebcab55..97b46fdcd7 100644
--- a/libavcodec/h264.c
+++ b/libavcodec/h264.c
@@ -2623,12 +2623,6 @@ static int decode_slice_header(H264Context *h, H264Context *h0){
s->height = s->avctx->height;
}
- if (FFALIGN(s->avctx->width, 16) == s->width &&
- FFALIGN(s->avctx->height, 16) == s->height) {
- s->width = s->avctx->width;
- s->height = s->avctx->height;
- }
-
if (s->context_initialized
&& ( s->width != s->avctx->width || s->height != s->avctx->height
|| av_cmp_q(h->sps.sar, s->avctx->sample_aspect_ratio))) {